Documents

Get started with the community’s uploads

(()=>{"use strict";var e={558:(e,t,r)=>{t.SS=void 0;var o=r(717),n=function(){var e=[],t=[],r=void 0;return{enhancer:function(e){return r=e,function(e){return function(r){return o.compose.apply(void 0,t)(e)(r)}}},addMiddleware:function(){for(var o,n,a=arguments.length,i=Array(a),c=0;c{r.r(t),r.d(t,{__DO_NOT_USE__ActionTypes:()=>l,applyMiddleware:()=>h,bindActionCreators:()=>m,combineReducers:()=>g,compose:()=>v,createStore:()=>d,legacy_createStore:()=>u});var o=r(24);function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function a(e){for(var t=1;t{r.d(t,{FN:()=>ee,OR:()=>oe,xe:()=>te,mj:()=>re,iZ:()=>Z,g6:()=>ne,s3:()=>$,C9:()=>R,gr:()=>B,Wy:()=>J});var o=r(24),n={};function a(e,t){var r,o=function(){return delete n[r],e(...arguments)};return t?o():r=document.hidden?"".concat(setTimeout(o,0),"_"):"_".concat(window.requestAnimationFrame(o)),r&&(n[r]=e),r}function i(e){var[t,r]=e.split("_").map((e=>parseInt(e,10)));e&&delete n[e],r&&window.cancelAnimationFrame(parseInt(r,10)),t&&clearTimeout(parseInt(t,10))}document.addEventListener("visibilitychange",(function(){Object.entries(n).forEach((e=>{var[t,r]=e;i(t),a(r)}))}),!1);var c=r(181),s=r.n(c);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function p(e){for(var t=1;t100){this.wait.call(this,this.createInlineWorker.bind(this,e,t));break}}}createWebWorker(e,t){var r=d(this.doWork);this.webWorker=r,r.onmessage=t=>{this.cleanup(),r.terminate(),e(t.data)},r.onerror=e=>{this.cleanup(),r.terminate(),t(e.error)},r.postMessage(this.data)}promiseCallback(e,t){this.inlineReject=t,"string"==typeof this.doWork?this.wait(this.createWebWorker.bind(this,e,t)):this.wait(this.createInlineWorker.bind(this,e,t))}cleanup(){i(this.requestId),this.webWorker&&this.webWorker.terminate(),delete this.webWorker,delete this.requestId}postMessage(e){this.data=p(p({},this.data),e),this.webWorker&&this.webWorker.postMessage(this.data)}terminate(){this.cleanup(),this.inlineReject&&this.inlineReject("abort")}classify(e){return this.promise?this.postMessage(e):(this.data=e,this.promise=new(s())(this.promiseCallback.bind(this))),this}then(){return this.promise?this.promise.then(...arguments):s().reject().then(...arguments),this}catch(){return this.promise?this.promise.catch(...arguments):s().reject().catch(...arguments),this}}var g=r(213),f=r(544),m=r(745),v=/(^|@)\S+:\d+/,h=/^\s*at .*(\S+:\d+|\(native\))/m,b=/^(eval@)?(\[native code])?$/;function y(e){return e&&e.replace(/^\(/,"").replace(/\)$/,"")}const O={parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(h))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=y(e),r=/(?:\(.*)?:(\d+)?(?::(\d+))?\)?$/.exec(t),o=r&&r[1]||void 0,n=r&&r[2]||void 0,a=r&&r.index||void 0;return[t.slice(0,a),o&&parseInt(o,10),n&&parseInt(n,10)]},parseV8OrIE:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(h)}),this).map((function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),o=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),n=this.extractLocation(r?r[1]:o.pop());return{functionName:o.join(" ")||void 0,fileName:["eval",""].indexOf(n[0])>-1?void 0:n[0],lineNumber:n[1],columnNumber:n[2],source:e}}),this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter((function(e){return!e.match(b)}),this).map((function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":")||e.indexOf("data:text/")>=0)return{functionName:e};var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),o=r&&r[1]?r[1]:void 0,n=this.extractLocation(e.replace(t,""));return{functionName:o,fileName:n[0],lineNumber:n[1],columnNumber:n[2],source:e}}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),o=[],n=2,a=r.length;n/,"$2").replace(/\([^)]*\)/g,"")||void 0;return n.match(/\(([^)]*)\)/)&&(t=n.replace(/^[^(]+\(([^)]*)\)$/,"$1")),{functionName:a,args:void 0===t||"[arguments not available]"===t?void 0:t.split(","),fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:e}}),this)}};var w=r(620),j=r(640),P=r(406),_=r(926),k=r(166),S=r(321),E=r(736),x=r(49);function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function A(e){for(var t=1;t{var t=e&&e[g.HL]||e;return t&&C.has(t)&&C.get(t)||void 0};function U(){var e=new Error;if(g.fq)try{throw e}catch(c){e=c}for(var t,r,o=O.parse(e);t=o.pop();){var{fileName:n,source:a}=t;r=r||!!n;var i=n&&0!==n.indexOf(w.OSANO_IFRAME_URI)&&("http"===n.slice(0,4)||"//"===n.slice(0,2))&&n||(a&&a.indexOf("")>=0?r&&I:void 0);if(i)return[i]}return[]}var M=e=>{var{node:t=e,src:r}=e||L,o=t&&r?String(r).substring(0,20).trim().substring(0,5):"";return!o&&(null==t?void 0:t.textContent)||"data:"===o},V=e=>{var{node:t=e}=e||L;return!(!t||!M(e))||!(!t||!t[g.Bj]||t===t[g.Bj])&&V(t[g.Bj])},R=e=>{var{node:t=e}=e||L;return!(!t||!t[g.N9])||!(!t||!t[g.Bj]||t===t[g.Bj])&&R(t[g.Bj])};function F(e,t){if(!V(e)){var r=e&&e.ownerDocument?e.ownerDocument.currentScript:g.Av.currentScript;if(r)return[r,[]];var o=t||e&&e.ownerDocument===g.Av&&U()||[],n=o[o.length-1];return[n&&(0,k.Sl)(n)||void 0,o]}return[void 0,[]]}var $=(e,t)=>{var{node:r=e}=e||L;if(!V(e)){if(R(e))return!0;var[o,n]=F(r,t);return R(o)||(e=>{try{return(e||U()).filter((e=>e===I||N.has(e))).length>0||void 0}catch(t){return!1}})(n)}return!1},H=function(){return!0},B=e=>{if(e&&(0,m.DV)(e)){var t=Z(e),{src:r=E.Yn.call(e)}=t||e;r&&!M(t||e)&&N.add(r)}try{Object.defineProperty(e,g.N9,{configurable:!1,enumerable:!1,get:H})}catch(o){}return e},q=["img","script","iframe"];function J(e){if(e&&e.tagName&&!e[g.yb]&&!e[g.HL]&&q.includes(e.tagName.toLowerCase())){try{var[t,r]=F(e);Object.defineProperty(e,g.Bj,{configurable:!1,enumerable:!1,get:function(){return t}}),$(e,r)&&B(e)}catch(o){}try{Object.defineProperty(e,g.yb,{configurable:!1,enumerable:!1,get:H})}catch(o){}}}var W=e=>{var{classifications:t,value:r}=e,o=t.shift();if(void 0===o)return g.p7;var n=o[0],a=new RegExp(""+n,"gm");if(String(r).match(a)){var{classification:i=o[1]}=o[1]||{};return i}},z=function(e,t){var r=e.data.classifications,o=r.length;function n(a){var i=e.data.category||"";if(a)for(var c=0;c{if(t&&(t[g.N9]||t[g.Bj]&&t[g.Bj][g.N9]))return B(t),[e,!0];var r=(0,P.Z)(e,(0,_.Z)(t&&t.ownerDocument||g.Av));if(t&&e&&(!/^http(s)?:/.test(r.href)||g.LW.test(r.href)||g.i7.test(r.href)))return[e,!0];try{g.Eu.href=r.href}catch(o){return[e,!0]}return[e?String(r.href):e,!1]},X=(e,t,r)=>{var{entityType:o}=e||{},{node:n}=e,a=n&&n[g.HL]||n,i=Z(a)||A({},e),c=!1,s=!1,l="",p="",d="",m=/||/g;switch(o){case"iframe":d=S.lk.value.call(n,"src")||"",l=p=e.src||d||i.src||"";var[v,h]=Y(p,n);c=i.src!==v,s=!!p&&n&&!a.osano,m=g.i7,(0,f.OA)(r)&&!h||(e.ignore=!0),e.src=v,p=v;break;case"script":var b=n.parentElement;d=S.lk.value.call(n,"src")||E.Yn.call(n)||"",p=e.src||d||i.src||"",l=b&&i.originalValue||p;var[y,O]=Y(p,n);c=!(b&&d||i.src===y),s=!g.fq&&!!p&&!!n&&x.l.value.call(n,"async")&&!a.osano,m=g.LW,O&&(e.ignore=!0),e.src=y,p=b?l:y;break;case"cookie":p=e.name,d=e.name,l=e.value,c=i.name!==p,s=!1,m=g.s8}if(p=String(p),Object.entries(e).forEach((e=>{var[t,r]=e;if("ignore"===t)!1===r&&delete i["".concat(t)]||(i["".concat(t)]=r);else void 0!==r&&(i["".concat(t)]=r)})),(!i.classification||c&&p)&&(i.classification="",delete T[o][p],i.originalValue=l,i.async&&i.async.running&&(i.ignore||!s?(i.async.terminate(),delete i.async):i.async.postMessage({value:e.src,classifications:Object.entries(t)})),!i.async&&!i.ignore)){var{node:w}=i;if(w&&w.osano){var j=(0,f.lm)(r,w.osano);j&&(i.classification=j,T[o][p]=j)}var[P,_]=t["".concat(d)]?[t["".concat(d)],d]:((e,t)=>{g.Eu.href=e;var r=g.Eu.pathname.split("/").filter((e=>!!e)),o="".concat(g.Eu.protocol,"//").concat(g.Eu.hostname,"/");return r.reduce(((e,r)=>{var[o,n]=e;if(o)return[o,n];var a="".concat(n).concat(r,"/");return[t["".concat(a)],a]}),[t["".concat(e)]||t["".concat(o)],o])})(p,t);if(P){var{classification:k=P}=P;k?(i.classification=k,T[o][p]=k):delete t["".concat(_)]}if(!i.classification)if(s)i.async=new u(Q?G:W),i.async.classify({value:e.src,classifications:Object.entries(t)}).then((e=>(delete i.async,i.classification=e,T[o][p]=e,i))).catch((e=>{if(delete i.async,"abort"===e)i.classification="",delete T[o][p];else i.classification=g.p7,T[o][p]=g.p7;return i}));else{var D=((e,t,r)=>{var{name:o,src:n=o}=e,a=T[r][n];return void 0===a&&(a=z({data:{value:n,classifications:Object.entries(t)}},{postMessage:()=>{}}),T[r][n]=a),a})(e,t,o);i.classification=D,T[o][p]=D}}(!i.fromOsano||c&&p)&&(i.fromOsano=m.test(p)),"cookie"===o&&!i.fromOsano&&["",g.p7].includes(i.classification)&&(i.ignore=i.ignore||$());try{C.set(a,i)}catch(N){}return i},ee=(e,t)=>{var r="string"==typeof e?e.replace(/; +/g,";").split(";").reduce(((e,t,r)=>{var[o,...n]=t.split("="),a=n.join("=");if(0===r)return-1!==t.indexOf("=")||a?A(A({},e),{},{name:o,value:a}):A(A({},e),{},{name:"",value:o});switch(o.toLowerCase()){case"domain":case"path":case"secure":case"httponly":case"samesite":case"expires":case"max-age":return A(A({},e),{},{[o.toLowerCase()]:a||""})}return e}),{}):e,{name:o,value:n,Secure:a=!1,secure:i=a,path:c,domain:s,expires:l,"max-age":p,Samesite:d="lax",SameSite:u=d,samesite:g=u,ignore:m}=r,v={};return v.secure=""===i||!!i,void 0!==c&&(v.path=c.replace(/['"]/g,"")),void 0!==s&&(v.domain=s),void 0!==p?v["max-age"]=p:void 0!==l&&(v.expires=l),v.samesite=g,void 0!==m&&(v.ignore=m),X(A(A({name:o,value:n},v),{},{entityType:"cookie"}),(0,f.LA)(t),t)},te=(e,t)=>{var r=e;e instanceof Node&&(r={node:e});var{node:o}=r,n=S.lk.value.call(o,"src")||"",{src:a,classification:i,ignore:c}=r,s={node:o,classification:i,src:a||n,entityType:"iframe"};return void 0!==c&&(s.ignore=c),X(s,(0,f.GH)(t),t)},re=(e,t)=>{var r=e;if(e instanceof Node){if(!(0,m.iF)(e))return;r={node:e}}var{node:o}=r,n=S.lk.value.call(o,"src")||"",{src:a,classification:i,ignore:c}=r,s={node:o,classification:i,src:a||n,entityType:"script"};return void 0!==c&&(s.ignore=c),X(s,(0,f.XU)(t),t)},oe=(e,t)=>{var{node:r=e,tagName:o=r.tagName||"",entityType:n=o.toLowerCase()}=e||{};try{switch(n){case"iframe":return te(e,t);case"script":return re(e,t)}}catch(a){}},ne=(e,t)=>Z(e)&&oe({node:e,ignore:!1},t)},445:(e,t,r)=>{r.d(t,{OK:()=>g,cE:()=>p,QF:()=>d});var o=r(872),n=r(24);var a=r(213),i=["hideOptOut","notified","signatory"],c=["iab","cookies","iframes","scripts"];function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function l(e){for(var t=1;tl({type:flavor,lang:language||"en"},customerConfig||window.customerConfig||{}),d=void 0!==window.__CSP_NONCE?window.__CSP_NONCE:a.Av.currentScript&&a.Av.currentScript.nonce||void 0,u=(e,t)=>{if(!t)return e;var r=Object.keys(t);return l(l({},t),Object.entries(e).filter((e=>{var[t]=e;return!r.includes(t)})).reduce(((e,t)=>{var[r,o]=t;return e["".concat(r)]=o,e}),{}))},g=(e,t)=>{var{iab:{hideOptOut:r=!1,notified:n=!0,signatory:a=!0}={},cookies:s,iframes:p,scripts:d}=e,g=(0,o.Z)(e.iab,i),f=(0,o.Z)(e,c);return{config:l({cookies:u(s,null==t?void 0:t.cookies),iframes:u(p,null==t?void 0:t.iframes),scripts:u(d,null==t?void 0:t.scripts)},f),iab:l(l({},g),{},{us:{hideOptOut:r,notified:n,signatory:a}})}}},213:(e,t,r)=>{r.d(t,{eJ:()=>ne,sU:()=>Q,hl:()=>ee,bI:()=>be,zv:()=>_e,Dv:()=>ae,Tu:()=>Y,FP:()=>Se,sm:()=>me,Dn:()=>ce,jT:()=>se,Go:()=>le,BJ:()=>ie,pC:()=>pe,A1:()=>te,Bo:()=>de,go:()=>Ee,r$:()=>G,f1:()=>ke,HB:()=>ue,b2:()=>Pe,Np:()=>oe,wf:()=>$,s8:()=>ye,Bj:()=>M,i7:()=>we,HL:()=>R,lL:()=>F,LW:()=>je,yb:()=>U,N9:()=>V,lq:()=>K,v4:()=>ve,OE:()=>z,P_:()=>X,Uf:()=>H,ZF:()=>q,mt:()=>J,g6:()=>B,_N:()=>W,J0:()=>xe,j6:()=>Z,p7:()=>re,dO:()=>he,eQ:()=>ge,hm:()=>fe,Eu:()=>L,Zr:()=>C,fq:()=>m,yR:()=>Ae,fx:()=>y,Av:()=>T,Ff:()=>I,xp:()=>v});var o=r(620),n=r(640),a=r(24),i=r(375);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}var s=["ar","arc","ckb","dv","fa","ha","he","khw","ks","ps","ur","uz-af","yi"],l=new WeakMap,p=new WeakMap,d=new WeakMap;var u=r(406),g=r(926),f=new Map,m=!!window.document.documentMode,v=e=>{try{return e.EventTarget}catch(t){return}},h=document.createElement("iframe");document.head.appendChild(h);var b=h.contentWindow||window;var y={Document:b.Document,Element:b.Element,EventTarget:v(b),HTMLDocument:b.HTMLDocument,HTMLElement:b.HTMLElement,HTMLIFrameElement:b.HTMLIFrameElement,HTMLScriptElement:b.HTMLScriptElement,Navigator:b.Navigator,Node:b.Node,Storage:b.Storage,window:b};!m&&document.head.removeChild(h);var{Document:O,Element:w,EventTarget:j,HTMLDocument:P,HTMLElement:_,HTMLIFrameElement:k,HTMLImageElement:S,HTMLScriptElement:E,Navigator:x,Node:D,Storage:A}=y,N=(0,n.Z)("osano.cmp.domLoaded"),C=()=>f.get(N),T=document;f.set(N,!1),document.addEventListener("DOMContentLoaded",(function(){f.set(N,!0)}));var I=window,L=T.createElement("a"),Z=parseInt("%%TATTLE_RATIO%%",10),U=("".concat(T.location.protocol,"//").concat(T.location.host),(0,n.Z)("osano.cmp.stamp")),M=(0,n.Z)("osano.cmp.createdBy"),V=(0,n.Z)("osano.cmp.userscript"),R=(0,n.Z)("osano.cmp.originalNode"),F=(0,n.Z)("osano.cmp.replacementNode"),$=(0,n.Z)("osano.cmp.allowed"),H="osano_consentmanager",B="".concat(H,"_tattles-ignore"),q="".concat(H,"_tattles-cookie"),J="".concat(H,"_tattles-iframe"),W="".concat(H,"_tattles-script"),z="osano/blocked",G="MARKETING",Q="ANALYTICS",K="PERSONALIZATION",Y="ESSENTIAL",X="STORAGE",ee="BLACKLISTED",te="HIDDEN",re="UNCLASSIFIED",oe="OPT_OUT",ne="ACCEPT",ae="DENY",ie="consent",ce={[Q]:"analytics_storage",[G]:"ad_storage"},se="default",le="update",pe={[ne]:"granted",[ae]:"denied"},de=o.IFRAME_TIMEOUT||10,ue=10,ge="VALIDATE_IFRAME",fe="VALIDATE_IFRAME_RESPONSE",me="GET_STORAGE",ve="RECEIVE_STORAGE",he="UPDATE_STORAGE",be="CLEAR_STORAGE",ye=new RegExp("^".concat(H)),Oe=(0,u.Z)(o.OSANO_IFRAME_URI,(0,g.Z)(document)),we=new RegExp("^(?:https?:)?(?://)?(?:".concat(Oe.host).concat(Oe.pathname,"|").concat(o.OSANO_DSAR_URI,")(([#|?].*)|(?!.*))?$")),je=new RegExp("".concat(o.OSANO_SCRIPT_URI,"(?:/[^?#]*)?/osano(?:-[a-z]*(?:\\.legacy|\\.modern)?)?.js(?:[#|?].*)?$")),Pe=33177600,_e=Pe,ke=new Date(864e13).getTime(),Se={BLOCKING:"osano-cm-blocking",INIT:"osano-cm-initialized",NEW_CONSENT:"osano-cm-consent-new",CONSENT_CHANGED:"osano-cm-consent-changed",CONSENT_SAVED:"osano-cm-consent-saved",LOCALE_UPDATED:"osano-cm-locale-updated",SCRIPT_BLOCKED:"osano-cm-script-blocked",COOKIE_BLOCKED:"osano-cm-cookie-blocked",IFRAME_BLOCKED:"osano-cm-iframe-blocked",CONSENT_ACCEPT_MARKETING:"osano-cm-marketing",CONSENT_ACCEPT_ANALYTICS:"osano-cm-analytics",CONSENT_ACCEPT_PERSONALIZATION:"osano-cm-personalization",CONSENT_ACCEPT_STORAGE:"osano-cm-storage",CCPA_OPT_OUT:"osano-cm-opt-out",UI_CHANGED_STATE:"osano-cm-ui-changed"},Ee=new class{setup(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",r={};Object.entries(e).forEach((e=>{var[locale,t]=e;r["".concat(locale)]=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"en";return l.get(this)["".concat(locale)]=(0,i.TS)(l.get(this)["".concat(locale)]||{},e),this}override(e){var locale=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";return p.get(this)["".concat(locale)]=e,this}set locale(locale){d.set(this,locale)}get locale(){return d.get(this)}get isRTL(){return s.includes(this.locale)}replace(e,t){return t?l.get(this)["".concat(t)]=e||{}:l.set(this,{[this.locale]:e||{}}),this}template(e){return(t,r)=>this.translate(e,t,r)}translate(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,locale="string"==typeof t?t:t.locale||this.locale,o="string"==typeof r?r:"".concat(locale,".").concat(e),n=l.get(this)["".concat(locale)],a=p.get(this)["".concat(locale)];return a&&(0,i.U2)(a,e)||(0,i.U2)(n,e)||(locale.length>2?this.translate(e,locale.slice(0,2),o):o)}isLocaleAvailable(locale){return!!o.LANGUAGES.includes(locale)}isLocaleLoaded(locale){var e=l.get(this)["".concat(locale)];return"object"==typeof e&&Object.keys(e).length>0}isEmpty(){return 0===Object.keys(l.get(this)).length}},xe={None:0,Dialog:1,Drawer:2},De="fr",Ae={re:De,gp:De,mq:De,gy:De,yt:De,mf:De}},488:(e,t,r)=>{r.d(t,{J:()=>o,n:()=>n});var o={PUSH:1,POP:-1,REPLACE:0},n={CONSENT:"consent",DO_NOT_SELL:"doNotSell",LEGAL:"legal",VENDOR_CONSENT:"vendorConsent"}},316:(e,t,r)=>{function o(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.r(t),r.d(t,{default:()=>vi,getStyleConstant:()=>fi});var n,a=r(24),i=r(213),c=window,s=c.trustedTypes,l=s?s.createPolicy("lit-html",{createHTML:e=>e}):void 0,p="lit$".concat((Math.random()+"").slice(9),"$"),d="?"+p,u="<".concat(d,">"),g=document,f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return g.createComment(e)},m=e=>null===e||"object"!=typeof e&&"function"!=typeof e,v=Array.isArray,h=e=>v(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]),b=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,y=/-->/g,O=/>/g,w=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),j=/'/g,P=/"/g,_=/^(?:script|style|textarea|title)$/i,k=e=>function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),n=1;n{for(var r,o=e.length-1,n=[],a=2===t?"":"",i=b,c=0;c"===g[0]?(i=null!=r?r:b,f=-1):void 0===g[1]?f=-2:(f=i.lastIndex-g[2].length,d=g[1],i=void 0===g[3]?w:'"'===g[3]?P:j):i===P||i===j?i=w:i===y||i===O?i=b:(i=w,r=void 0);var v=i===w&&e[c+1].startsWith("/>")?" ":"";a+=i===b?s+u:f>=0?(n.push(d),s.slice(0,f)+"$lit$"+s.slice(f)+p+v):s+p+(-2===f?(n.push(void 0),c):v)}var h=a+(e[o]||"")+(2===t?"":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==l?l.createHTML(h):h,n]};class C{constructor(e,t){var r,{strings:o,_$litType$:n}=e;this.parts=[];var a=0,i=0,c=o.length-1,l=this.parts,[u,g]=N(o,n);if(this.el=C.createElement(u,t),A.currentNode=this.el.content,2===n){var m=this.el.content,v=m.firstChild;v.remove(),m.append(...v.childNodes)}for(;null!==(r=A.nextNode())&&l.length0){r.textContent=s?s.emptyScript:"";for(var S=0;S2&&void 0!==arguments[2]?arguments[2]:e,c=arguments.length>3?arguments[3]:void 0;if(t===E)return t;var s=void 0!==c?null===(r=i._$Co)||void 0===r?void 0:r[c]:i._$Cl,l=m(t)?void 0:t._$litDirective$;return(null==s?void 0:s.constructor)!==l&&(null===(o=null==s?void 0:s._$AO)||void 0===o||o.call(s,!1),void 0===l?s=void 0:(s=new l(e))._$AT(e,i,c),void 0!==c?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[c]=s:i._$Cl=s),void 0!==s&&(t=T(e,s._$AS(e,t.values),s,c)),t}class I{constructor(e,t){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var t,{el:{content:r},parts:o}=this._$AD,n=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:g).importNode(r,!0);A.currentNode=n;for(var a=A.nextNode(),i=0,c=0,s=o[0];void 0!==s;){if(i===s.index){var l=void 0;2===s.type?l=new L(a,a.nextSibling,this,e):1===s.type?l=new s.ctor(a,s.name,s.strings,this,e):6===s.type&&(l=new F(a,this,e)),this.u.push(l),s=o[++c]}i!==(null==s?void 0:s.index)&&(a=A.nextNode(),i++)}return n}p(e){var t=0;for(var r of this.u)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class L{constructor(e,t,r,o){var n;this.type=2,this._$AH=x,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cm}get parentNode(){var e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e){e=T(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),m(e)?e===x||null==e||""===e?(this._$AH!==x&&this._$AR(),this._$AH=x):e!==this._$AH&&e!==E&&this.g(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):h(e)?this.k(e):this.g(e)}O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._$AB;return this._$AA.parentNode.insertBefore(e,t)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==x&&m(this._$AH)?this._$AA.nextSibling.data=e:this.T(g.createTextNode(e)),this._$AH=e}$(e){var t,{values:r,_$litType$:o}=e,n="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=C.createElement(o.h,this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===n)this._$AH.p(r);else{var a=new I(n,this),i=a.v(this.options);a.p(r),this.T(i),this._$AH=a}}_$AC(e){var t=D.get(e.strings);return void 0===t&&D.set(e.strings,t=new C(e)),t}k(e){v(this._$AH)||(this._$AH=[],this._$AR());var t,r=this._$AH,o=0;for(var n of e)o===r.length?r.push(t=new L(this.O(f()),this.O(f()),this,this.options)):t=r[o],t._$AI(n),o++;o0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,r=arguments.length>1?arguments[1]:void 0;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,r);t&&t!==this._$AB;){var o=t.nextSibling;t.remove(),t=o}}setConnected(e){var t;void 0===this._$AM&&(this._$Cm=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class Z{constructor(e,t,r,o,n){this.type=1,this._$AH=x,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=n,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=x}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,n=this.strings,a=!1;if(void 0===n)e=T(this,e,t,0),(a=!m(e)||e!==this._$AH&&e!==E)&&(this._$AH=e);else{var i,c,s=e;for(e=n[0],i=0;i1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==t?t:x)!==E){var r=this._$AH,o=e===x&&r!==x||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,n=e!==x&&(r===x||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}}handleEvent(e){var t,r;"function"==typeof this._$AH?this._$AH.call(null!==(r=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==r?r:this.element,e):this._$AH.handleEvent(e)}}class F{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){T(this,e)}}var $={P:"$lit$",A:p,M:d,C:1,L:N,R:I,D:h,V:T,I:L,H:Z,N:V,U:R,B:U,F},H=c.litHtmlPolyfillSupport;null==H||H(C,L),(null!==(n=c.litHtmlVersions)&&void 0!==n?n:c.litHtmlVersions=[]).push("2.5.0");var B,q=(e,t,r)=>{var o,n,a=null!==(o=null==r?void 0:r.renderBefore)&&void 0!==o?o:t,i=a._$litPart$;if(void 0===i){var c=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:null;a._$litPart$=i=new L(t.insertBefore(f(),c),c,void 0,null!=r?r:{})}return i._$AI(e),i},J=r(544),W=i.go.template("aria.newWindow"),z=i.go.template("aria.external"),G=i.go.template("aria.externalNewWindow");var Q=r(872);const K={block:"__",modifier:"--",space:"-",value:"_"};function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function X(e){for(var t=1;t{var{block:t,element:r,modifiers:o={},prefix:n="",syntax:a={},verbose:i=!1,className:c=[]}=e;if(!t&&!r)throw new Error("You must specify a block or an element when using BEM syntax");var s=c?Array.isArray(c)?c:"object"==typeof c?Object.keys(c):c.split(" "):[],l=X(X({},K),a),p=n?n.replace(/^['"]/,"").replace(/['"]$/,""):"";t&&(s.push(r?"".concat(p).concat(t).concat(l.block).concat(r):"".concat(p).concat(t)),(o.block?Object.keys(o.block):[]).forEach((e=>{var n=!(!o.block["".concat(e)]||""===o.block["".concat(e)])&&o.block["".concat(e)];if("true"===n||n===!!n){if(n){var a="".concat(p).concat(t).concat(l.modifier).concat(e);s.push(a),i&&r&&s.push("".concat(a).concat(l.block).concat(r))}}else{var c="".concat(p).concat(t).concat(l.modifier).concat(e).concat(l.value).concat(n);s.push(c),i&&r&&s.push("".concat(c).concat(l.block).concat(r))}})));r&&(s.push("".concat(p).concat(r)),(o.element?Object.keys(o.element):[]).forEach((e=>{var n=!(!o.element["".concat(e)]||""===o.element["".concat(e)])&&o.element["".concat(e)];"true"===n||n===!!n?n&&(s.push("".concat(p).concat(r).concat(l.modifier).concat(e)),i&&t&&s.push("".concat(p).concat(t).concat(l.block).concat(r).concat(l.modifier).concat(e))):(s.push("".concat(p).concat(r).concat(l.modifier).concat(e).concat(l.value).concat(n)),i&&t&&s.push("".concat(p).concat(t).concat(l.block).concat(r).concat(l.modifier).concat(e).concat(l.value).concat(n)))})));return s.map((e=>e.toString().replace(/\s\s+/g," ").replace(/[\s!"#$%&'()*+,./:<=>?@[\\\]^`{|}~]/g,l.space)))},te=function(){for(var e=arguments.length,t=new Array(e),r=0;r(e["".concat(t)]=!0,e)),{})};const re=ee;var oe=1,ne=2,ae=e=>function(){for(var t=arguments.length,r=new Array(t),o=0;o2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,t){var r,o,[n]=t;if(void 0===this.nt){for(var a in this.nt=new Set,void 0!==e.strings&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e)))),n)n[a]&&!(null===(r=this.st)||void 0===r?void 0:r.has(a))&&this.nt.add(a);return this.render(n)}var i=e.element.classList;for(var c in this.nt.forEach((e=>{e in n||(i.remove(e),this.nt.delete(e))})),n){var s=!!n[c];s===this.nt.has(c)||(null===(o=this.st)||void 0===o?void 0:o.has(c))||(s?(i.add(c),this.nt.add(c)):(i.remove(c),this.nt.delete(c)))}return E}}),le=e=>null!=e?e:x,pe=["block","label","disabled","onClick","className","modifiers","ariaLabel","tabIndex"];function de(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function ue(e){for(var t=1;t '," "])),se(u.root),n,le(a),le(s),l,r)}var fe,me=r(435);function ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function he(e){for(var t=1;t{var{dispatch:t}=e;return()=>{t(me.ZP.acceptAllConsent()),t(me.ZP.saveConsent()),t(me.ZP.hideDialog()),t(me.ZP.showWidget())}},Oe={element:{type:"accept"}},we=i.go.template("buttons.acceptAll");function je(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Pe(e){for(var t=1;t{var{dispatch:t}=e;return()=>{t(me.ZP.acceptAllConsent()),t(me.ZP.saveConsent()),t(me.ZP.hideDialog()),t(me.ZP.showWidget())}},Se={element:{type:"accept"}},Ee=i.go.template("buttons.accept");function xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function De(e){for(var t=1;t{var{dispatch:t}=e;return()=>{t(me.ZP.denyAllConsent()),t(me.ZP.saveConsent()),t(me.ZP.hideDialog()),t(me.ZP.showWidget())}},Ce={element:{type:"denyAll"}},Te=i.go.template("buttons.denyAll");function Ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Le(e){for(var t=1;t{var{dispatch:t}=e;return()=>{t(me.ZP.denyAllConsent()),t(me.ZP.saveConsent()),t(me.ZP.hideDialog()),t(me.ZP.showWidget())}},Me={element:{type:"deny"}},Ve=i.go.template("buttons.deny");function Re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Fe(e){for(var t=1;t{var{dispatch:t}=e;return()=>{t(me.ZP.saveConsent()),t(me.ZP.hideDialog()),t(me.ZP.showWidget())}},Be={element:{type:"save"}},qe=i.go.template("buttons.save");var Je=["ariaDescribedBy","block","className","href","target","label","onClick","tabIndex","title","type"];function We(e){var{ariaDescribedBy:t,block:r,className:n="",href:a,target:i,label:c,onClick:s,tabIndex:l=0,title:p,type:d}=e,u=(0,Q.Z)(e,Je),{prefix:g="osano-cm-"}=u,f={root:te({prefix:g,block:r,element:"link",className:n,modifiers:{element:{type:d}}})};return S($e||($e=o(['',""])),l,le(a),le(i),se(f.root),s,le(p),le(t),c)}var ze;i.go.template("buttons.denyAll");function Ge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Qe(e){for(var t=1;tt=>{t(me.ZP.showLegal(Xe.J.PUSH,e))})(r));var t=document.getElementById(l);return(0,Ye.rP)(t||e.target).scrollTop=t?t.offsetTop:0,!1};return S(Ke||(Ke=o(["",""])),We(function(e){for(var t=1;t{t(me.ZP.showVendorConsent(Xe.J.PUSH,e))})),!1};return S(nt||(nt=o(["",""])),We(function(e){for(var t=1;t',""])),se(O.root),t,se(O.input),t,d,l,p,le(g),le(v),le(h),f,l,le(r),le(a),le(!a&&i?i:void 0),se(O.switch),le(n?"heading":void 0),le(n),se(O.label),s)}function mt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function vt(e){for(var t=1;t{var{category:t,store:r}=e;return e=>{var o=e.target.checked;r.dispatch(me.ZP.setConsent(t,o?i.eJ:i.Dv))}};function yt(e){var{category:t,prefix:r,store:{getState:o}}=e,n=o(),a=(0,J.Qc)(n),c=(0,J.mr)(n,t),s=(0,J.LP)(n,t),l=a&&"".concat(r,"drawer-toggle--category_").concat(t,"--description"),p=i.go.translate("categories.".concat(t,".label"))||"",d=i.go.translate("categories.".concat(t,".label"))||"";return ft(vt(vt({},e),{},{descriptionId:l,label:p,title:d||p,checked:c,disabled:s,onChange:bt(e)}))}function Ot(e){var{store:{getState:t},label:r}=e,n=t(),a=(0,dt.v4)("arialabelclose"),{linkColor:i,closeButtonColor:c=i}=(0,J.XN)(n);return S(ht||(ht=o([' ',' '])),a,a,r,c,c)}var wt,jt,Pt=function(e){var{className:t,block:r,prefix:o="osano-cm-"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return{prefix:o,block:r,element:e,className:t,modifiers:{element:n}}},_t=function(){return te(Pt(...arguments))},kt=function(){return re(Pt(...arguments)).join(" ")},St=r(375),{I:Et}=$,xt=(e,t)=>void 0===t?void 0!==(null==e?void 0:e._$litType$):(null==e?void 0:e._$litType$)===t,Dt=()=>document.createComment(""),At=(e,t,r)=>{var o,n=e._$AA.parentNode,a=void 0===t?e._$AB:t._$AA;if(void 0===r){var i=n.insertBefore(Dt(),a),c=n.insertBefore(Dt(),a);r=new Et(i,c,e,e.options)}else{var s,l=r._$AB.nextSibling,p=r._$AM,d=p!==e;if(d)null===(o=r._$AQ)||void 0===o||o.call(r,e),r._$AM=e,void 0!==r._$AP&&(s=e._$AU)!==p._$AU&&r._$AP(s);if(l!==a||d)for(var u=r._$AA;u!==l;){var g=u.nextSibling;n.insertBefore(u,a),u=g}}return r},Nt=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;return e._$AI(t,r),e},Ct={},Tt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ct;return e._$AH=t},It=e=>e._$AH,Lt=e=>{var t;null===(t=e._$AP)||void 0===t||t.call(e,!1,!0);for(var r=e._$AA,o=e._$AB.nextSibling;r!==o;){var n=r.nextSibling;r.remove(),r=n}},Zt=e=>{e._$AR()},Ut=(e,t,r)=>{for(var o=new Map,n=t;n<=r;n++)o.set(e[n],n);return o},Mt=ae(class extends ie{constructor(e){if(super(e),e.type!==ne)throw Error("repeat() can only be used in text expressions")}ht(e,t,r){var o;void 0===r?r=t:void 0!==t&&(o=t);var n=[],a=[],i=0;for(var c of e)n[i]=o?o(c,i):i,a[i]=r(c,i),i++;return{values:a,keys:n}}render(e,t,r){return this.ht(e,t,r).values}update(e,t){var r,[o,n,a]=t,i=It(e),{values:c,keys:s}=this.ht(o,n,a);if(!Array.isArray(i))return this.ut=s,c;for(var l,p,d=null!==(r=this.ut)&&void 0!==r?r:this.ut=[],u=[],g=0,f=i.length-1,m=0,v=c.length-1;g<=f&&m<=v;)if(null===i[g])g++;else if(null===i[f])f--;else if(d[g]===s[m])u[m]=Nt(i[g],c[m]),g++,m++;else if(d[f]===s[v])u[v]=Nt(i[f],c[v]),f--,v--;else if(d[g]===s[v])u[v]=Nt(i[g],c[v]),At(e,u[v+1],i[g]),g++,v--;else if(d[f]===s[m])u[m]=Nt(i[f],c[m]),At(e,i[g],i[f]),f--,m++;else if(void 0===l&&(l=Ut(s,m,v),p=Ut(d,g,f)),l.has(d[g]))if(l.has(d[f])){var h=p.get(s[m]),b=void 0!==h?i[h]:null;if(null===b){var y=At(e,i[g]);Nt(y,c[m]),u[m]=y}else u[m]=Nt(b,c[m]),At(e,i[g],b),i[h]=null;m++}else Lt(i[f]),f--;else Lt(i[g]),g++;for(;m<=v;){var O=At(e,u[v+1]);Nt(O,c[m]),u[m++]=O}for(;g<=f;){var w=i[g++];null!==w&&Lt(w)}return this.ut=s,Tt(e,u),E}}),Vt=["children","term","id","render","termClass","descriptionClass"];function Rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Ft(e){for(var t=1;t'," "," "])),se(p.term),n,r,Mt(t,St.yR,(e=>S(jt||(jt=o(['
',"
"])),n,se(p.description),a?a(Ft(Ft({},s),{},{block:l},e)):e))))}const Ht=ae(class extends ie{constructor(){super(...arguments),(0,a.Z)(this,"part",null),(0,a.Z)(this,"children",null),(0,a.Z)(this,"mapper",null),(0,a.Z)(this,"index",0)}commitChild(e){0===this.index&&Zt(this.part);var t=At(this.part);Nt(t,e)}draw(){var{children:e,mapper:t}=this;window.requestAnimationFrame((r=>{this&&this.children===e&&this.mapper===t&&this.loopChildren(r)}))}loopChildren(e){for(;this.index10)return void this.draw()}}update(e,t){var[r,o]=t;return r===this.children&&o===this.mapper||(this.part=e,this.children=r,this.mapper=o,this.index=0,this.loopChildren(Date.now())),E}render(){return E}});const Bt=ae(class extends ie{constructor(e){super(e),this.loaded=!1}update(e,t){var{element:r}=e,[o,...n]=t;return this.loaded?E:(o.apply(void 0,[r,...n]),this.loaded=!0)}render(){return this.loaded}});var qt=new WeakMap;class Jt extends ie{constructor(e){super(e)}static onScroll(e){e.stopPropagation();var t=qt.get(e.target)||{};null!=t&&t.activeView&&(t.scrollPositions["".concat(t.activeView)]=e.target.scrollTop)}static saveScrollState(e,t){var r=qt.get(e)||{activeView:"",scrollPositions:{}},o=r.activeView!==t;if(o){var n=r.activeView||t;r.activeView=t,r.scrollPositions["".concat(n)]=e.scrollTop||0}return qt.set(e,r),o}update(e,t){var[r]=t,{element:o}=e;if(Jt.saveScrollState(o,r)){var n,a=qt.get(o),i=null!==(n=a.scrollPositions["".concat(r)])&&void 0!==n?n:0;window.cancelAnimationFrame(a.nextScroll),a.nextScroll=window.requestAnimationFrame((()=>{o.scrollTop=i}))}return o.addEventListener("scroll",Jt.onScroll),""}render(){return E}}const Wt=ae(Jt);var zt,Gt,Qt={},Kt=ae(class extends ie{constructor(){super(...arguments),this.ot=Qt}render(e,t){return t()}update(e,t){var[r,o]=t;if(Array.isArray(r)){if(Array.isArray(this.ot)&&this.ot.length===r.length&&r.every(((e,t)=>e===this.ot[t])))return E}else if(this.ot===r)return E;return this.ot=Array.isArray(r)?Array.from(r):r,this.render(r,o)}}),Yt=["block","children","itemId","itemRenderer"];function Xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function er(e){for(var t=1;t30?Kt(r,(()=>S(zt||(zt=o(["",""])),Ht(r,(e=>a(er(er({},i),"object"==typeof e?e:{[n]:e}))))))):Mt(r,(e=>a(er(er({},i),{},{block:t},"object"==typeof e?e:{[n]:e}))))}var rr,or=["id","element","className","itemClassName","title","ariaLive","role"];function nr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function ar(e){for(var t=1;t '," "])),se(a.root),t(sr(sr({},n),{},{block:pr})))}var ur=["id","element","className","itemClassName","title","ariaLive","role"];function gr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function fr(e){for(var t=1;t '," "])),le(t),le(n),s,le(i),le(c),tr(ar(ar({},l),{},{block:r,className:a,itemRenderer:$t})))}(vr(vr({},e),{},{className:r,element:hr})):function(e){var{id:t,element:r,className:n="",itemClassName:a="",title:i,ariaLive:c,role:s="list"}=e,l=(0,Q.Z)(e,ur);return S(lr||(lr=o(['
    ',"
"])),le(t),n,s,le(i),le(c),tr(fr(fr({},l),{},{block:r,className:a,itemRenderer:dr})))}(vr(vr({},e),{},{className:r,element:hr}))}var yr,Or,wr,jr,Pr,_r,kr,Sr,Er,xr,Dr,Ar=(e,t,r)=>{var o=(0,J.ct)(e).toLowerCase();return i.go.translate("".concat(t,".").concat(o),void 0,r)},Nr=["block"],Cr=["block"],Tr=["block","disabled","className"],Ir=["block"],Lr=["block"],Zr=["id","block","disabled","className"],Ur=["id","block","className"];function Mr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Vr(e){for(var t=1;t{var{dispatch:t}=e;return()=>{t(me.ZP.hideDialog()),t(me.ZP.showDrawer())}},eo=e=>{var{dispatch:t}=e;return()=>{t(me.ZP.hideDialog()),t(me.ZP.showVendorConsent(Xe.J.REPLACE))}},to=e=>{var{block:t,className:r,prefix:n,store:a}=e,i=a.getState();if(!(0,J.nt)(i))return"";var c={root:te({prefix:n,block:t,element:"close",className:r})},s=(0,J.ks)(i)?Ne(a):(e=>{var{dispatch:t,getState:r}=e;return()=>{var e=r();!(0,J.fy)(e)&&(0,J.MT)(e)&&(t(me.ZP.acceptAllConsent()),t(me.ZP.saveConsent())),t(me.ZP.hideDialog()),t(me.ZP.showWidget())}})(a);return S(yr||(yr=o([' "])),se(c.root),s,Ot({store:a,label:zr()}))},ro=e=>{var t=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e)),{prefix:r,store:n}=t,{getState:a}=n,i=a(),c=Ar(i,"buttons.dialog.openDrawer",Qr());return S(Or||(Or=o(["",""])),ge(Vr(Vr({},e),{},{className:"".concat(r,"manage"),label:c,onClick:Xr(n),modifiers:{element:{type:"manage"}}})))},oo=e=>{var{block:t}=e,r=(0,Q.Z)(e,Nr),{store:n}=r,{getState:a}=n,i=a(),c=(0,at.jp)(i);return S(wr||(wr=o(["",""])),!c&&(0,J.Lk)(i)?ro(e):function(e){var{prefix:t,store:r}=e;return S(Ze||(Ze=o(["",""])),ge(Fe(Fe({},e),{},{className:"".concat(t,"save"),label:qe(),onClick:He(r),modifiers:Be})))}(Vr(Vr({},r),{},{block:t})))},no=e=>{var{block:t}=e,r=(0,Q.Z)(e,Cr),{store:n}=e,{getState:a}=n,i=a();if(!(0,J.ks)(i))return"";var c=Ar(i,"buttons.dialog.denyAll",Gr());return S(jr||(jr=o(["",""])),function(e){var{prefix:t,store:r}=e;return S(_e||(_e=o(["",""])),ge(De(De({label:Te()},e),{},{className:"".concat(t,"denyAll"),onClick:Ne(r),modifiers:Ce})))}(Vr(Vr({},r),{},{block:t,label:c})))},ao=e=>{var{block:t,disabled:r,className:n=""}=e,a=(0,Q.Z)(e,Tr),{prefix:i,store:c}=a,{getState:s}=c,l=s(),p="buttons",d=r||!(0,J.Z9)(l),u={root:te({prefix:i,block:t,element:p,modifiers:{element:{disabled:d}},className:n})};return(0,J.MT)(l)?(0,J.rq)(l)?S(Pr||(Pr=o(['
',"
"])),se(u.root),ro(Vr(Vr({},a),{},{block:p}))):"":(0,at.jp)(l)||(0,J.S6)(l)?S(_r||(_r=o(['
'," "," ","
"])),se(u.root),oo(Vr(Vr({},a),{},{block:p})),function(e){var{prefix:t,store:r}=e;return S(fe||(fe=o(["",""])),ge(he(he({},e),{},{className:"".concat(t,"accept-all"),label:we(),onClick:ye(r),modifiers:Oe})))}(Vr(Vr({},a),{},{block:p})),no(Vr(Vr({},a),{},{block:p}))):S(kr||(kr=o(['
'," "," "," ","
"])),se(u.root),function(e){var{prefix:t,store:r}=e;return S(be||(be=o(["",""])),ge(Pe(Pe({},e),{},{className:"".concat(t,"accept"),label:Ee(),onClick:ke(r),modifiers:Se})))}(Vr(Vr({},a),{},{block:p})),function(e){var{prefix:t,store:r}=e;return S(Ae||(Ae=o(["",""])),ge(Le(Le({},e),{},{className:"".concat(t,"deny"),label:Ve(),onClick:Ue(r),modifiers:Me})))}(Vr(Vr({},a),{},{block:p})),no(Vr(Vr({},a),{},{block:p})),(0,J.rq)(l)?ro(Vr(Vr({},a),{},{block:p})):"")},io=e=>{var{line:t}=e;return t},co="dialog";function so(e){var{id:t=(0,dt.v4)(co),block:r,className:n=""}=e,a=(0,Q.Z)(e,Ur),{prefix:c="osano-cm-",store:{getState:s}}=a,l=s(),p=(0,at.jp)(l),d=(0,J.GW)(l),u=!(0,J.Z9)(l),g=p?(0,J.NB)(l):(0,J.d7)(l),f=(0,J.XN)(l),{dialogType:m,displayPosition:v}=f,h="".concat(t,"__label"),b={root:te({prefix:c,block:r,element:co,modifiers:{element:{hidden:u,position:v,type:m,context:(0,J.S0)(l)&&"amp"}},className:n}),content:te({prefix:c,block:co,element:"content"})};return S(Dr||(Dr=o([' "])),t,h,se(b.root),to(Vr(Vr({},a),{},{block:"dialog"})),se(b.content),(e=>{var{id:t,block:r,disabled:n,className:a=""}=e,i=(0,Q.Z)(e,Zr),{prefix:c,store:{getState:s}}=i,l=s(),p=(0,at.jp)(l),d=(0,J.GW)(l),u={root:te({prefix:c,block:r,className:a,element:"message",modifiers:{element:{disabled:n}}})};return S(xr||(xr=o([' '," "," "," "])),t,se(u.root),p?Jr():d?Rr():qr(),(0,J.MT)(l)?Hr():(0,J.qg)(l)?Br():"",(0,J.nt)(l)&&(0,J.ks)(l)?Wr():"")})(Vr(Vr({},a),{},{block:"content",id:h})),d?(e=>{var{block:t}=e,r=(0,Q.Z)(e,Lr),{prefix:n}=r,a="usage-list",i={root:te({prefix:n,block:t,element:a})};return S(Er||(Er=o(['

'," ","

"])),se(i.root),Fr(),br(Vr(Vr({},r),{},{block:a,children:$r().split(/\r?\n/).map((e=>({line:e}))),render:io})))})(Vr(Vr({},a),{},{block:"content"})):"",function(e){var{prefix:t,store:r}=e,n=r.getState(),a=(0,J.Kg)(n),c=i.go.template("buttons.".concat(a)),s=i.go.template("messaging.".concat(a)),l="".concat(t,"storage-policy"),p=c(void 0,s()),d=(0,J.Cc)(n);return S(ze||(ze=o(["",""])),We(Qe(Qe({},e),{},{ariaDescribedBy:"".concat(t,"aria.newWindow"),className:l,label:p,href:d,target:"_blank"})))}(Vr(Vr({},a),{},{block:"content"})),p||(0,J.Sl)(l)?(e=>{var{block:t}=e,r=(0,Q.Z)(e,Ir),{prefix:n,store:a,drawerId:i}=r,c=a.getState(),s="drawer-links",l={root:te({prefix:n,block:t,element:s})},p=(0,at.jp)(c);return S(Sr||(Sr=o(['

'," ","

"])),se(l.root),We(Vr(Vr({},r),{},{block:s,type:"manage",label:Kr(),href:"#".concat(i),onClick:Xr(a)})),p?We(Vr(Vr({},r),{},{block:s,type:"vendor-list",label:Yr(),onClick:eo(a)})):"")})(Vr(Vr({},a),{},{block:"content",id:t})):"",p||(0,J.Bb)(l)?br(Vr(Vr({},a),{},{tabIndex:u?-1:0,block:"dialog",children:g.map((e=>({category:e,id:"".concat(c,"dialog-toggle--category_").concat(e)}))),itemId:"category",role:"group",render:yt})):"",ao(Vr(Vr({},a),{},{block:"dialog"})))}var lo,po,uo,go,fo,mo=()=>(e,t)=>{e(me.ZP.revertConsent()),e(me.ZP.hideDrawer()),setTimeout((()=>{e(me.ZP.hideDoNotSell())}),400);var r=t();(0,J.fy)(r)?e(me.ZP.showWidget()):e(me.ZP.showDialog())},vo=ae(class extends ie{constructor(e){super(e),this.et=new WeakMap}render(e){return[e]}update(e,t){var[r]=t;if(xt(this.it)&&(!xt(r)||this.it.strings!==r.strings)){var o=It(e).pop(),n=this.et.get(this.it.strings);if(void 0===n){var a=document.createDocumentFragment();(n=q(x,a)).setConnected(!1),this.et.set(this.it.strings,n)}Tt(n,[o]),At(n,void 0,o)}if(xt(r)){if(!xt(this.it)||this.it.strings!==r.strings){var i=this.et.get(r.strings);if(void 0!==i){var c=It(i).pop();Zt(e),At(e,void 0,c),Tt(e,[c])}}this.it=r}else this.it=void 0;return this.render(r)}}),ho=["block","name","expiry","provider","purpose"],bo=["block","name","provider","purpose"],yo=["category","disclosures","onToggle","className","label","tabIndex"];function Oo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function wo(e){for(var t=1;t{var{type:t}=e;return"no-results"===t?S(uo||(uo=o(["",""])),Ao()):S(go||(go=o(["",""])),vo("script"===t?(e=>{var{block:t,name:r,provider:n,purpose:a}=e,i=(0,Q.Z)(e,bo),{prefix:c="osano-cm-"}=i,s="script-disclosure",l=kt(s,{prefix:c,block:t}),p={termClass:kt("title",{prefix:c,block:s}),descriptionClass:kt("description",{prefix:c,block:s})};return S(po||(po=o(["",""])),br(wo(wo({},i),{},{block:t,className:l,children:[wo(wo({},p),{},{term:So(),children:[r||" "]}),wo(wo({},p),{},{term:Eo(),children:[n||" "]}),wo(wo({},p),{},{term:xo(),children:[a||" "]})],type:"description",headingLevel:3,title:r})))})(e):(e=>{var{block:t,name:r,expiry:n,provider:a,purpose:i}=e,c=(0,Q.Z)(e,ho),{prefix:s="osano-cm-"}=c,l="cookie-disclosure",p=kt(l,wo(wo({},c),{},{prefix:s,block:t})),d={termClass:kt("title",{prefix:s,block:l}),descriptionClass:kt("description",{prefix:s,block:l})};return S(lo||(lo=o(["",""])),br(wo(wo({},c),{},{block:t,className:p,children:[wo(wo({},d),{},{term:jo(),children:[r||" "]}),wo(wo({},d),{},{term:Po(),children:[a||" "]}),wo(wo({},d),{},{term:_o(),children:[n||" "]}),wo(wo({},d),{},{term:ko(),children:[i||" "]})],type:"description"})))})(e)))},Co="disclosure";function To(e){var{category:t,disclosures:r=[],onToggle:n=(()=>{}),className:a="",label:i,tabIndex:c=0}=e,s=(0,Q.Z)(e,yo),{prefix:l,store:{dispatch:p,getState:d}}=s,u=d(),g="".concat(l).concat(t,"_disclosures"),f=(0,J.MR)(u)&&!(0,J.AP)(u,t),m=!(0,J.zM)(u,t),v={root:_t(Co,wo(wo({},s),{},{className:a}),{collapse:m,loading:f}),toggle:_t("toggle",wo(wo({},s),{},{block:Co}))},h=e=>{if(e.preventDefault(),"keypress"===e.type){var r=e.charCode||e.keyCode;if(32!==r&&13!==r)return!1}return p((e=>{var{category:t,open:r}=e;return e=>{e(me.ZP.toggleDisclosure(t,r))}})({category:t})),n(t,!m),!1};return S(fo||(fo=o(['
',"
","
"])),se(v.root),se(v.toggle),h,h,c,!m,g,i,Do(),Do(),br(wo(wo({},s),{},{id:g,block:"disclosure",children:r,render:No,ariaLive:m?"none":"polite"})))}var Io,Lo,Zo,Uo=r(218),Mo=["category","block","hasDisclosures"];function Vo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Ro(e){for(var t=1;t({purposeId:e,type:"purposes"}))),v=(0,J.Fl)(p,t),h=(0,at.jp)(p),b="description",y={description:te({prefix:c,block:r,element:b})};return S(Io||(Io=o(["",'

',"

","
",""])),ft(Ro(Ro({},a),{},{ariaLevel:"2",id:"".concat(c,"drawer-toggle--category_").concat(t),descriptionId:d,category:t,block:r,label:u,title:g||u,checked:(0,J.mr)(p,t),disabled:(0,J.LP)(p,t),onChange:e=>s(((e,t)=>r=>o=>{var n=r.target.checked;o(me.ZP.setConsent(e,n?i.eJ:i.Dv,t))})(t,(0,J.Tc)(p))(e)),className:re({prefix:c,block:r,element:"drawer-toggle"}).join(" ")})),se(y.description),d,f.map(((e,t)=>S(Lo||(Lo=o(["","",""])),t>0?S(Zo||(Zo=o(["

"]))):null,e))),h?br(Ro(Ro({},a),{},{block:b,children:[{term:$o(),children:m}],type:"description",itemId:"purposeId",render:ot})):"",n?To(Ro(Ro({},a),{},{block:r,category:t,disclosures:v,label:u})):"")}var Bo=["id","block"];function qo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Jo(e){for(var t=1;t{var{force:r,prefix:o,element:n}=t,a=e.nextElementSibling,i=void 0===r?""!==a.style.cssText:!r,c="".concat(o).concat(n,"--expanded");i?(a.parentNode.classList.remove(c),a.style.cssText=""):(a.parentNode.classList.add(c),a.style.cssText="max-height:".concat(a.scrollHeight,"px;"),a.scrollHeight||setTimeout((()=>{try{a.style.cssText="max-height:".concat(a.scrollHeight,"px;transition-property:none;")}catch(e){}}),1))},Yo="expansion-panel";function Xo(e){var{body:t="",header:r,id:n=(0,dt.v4)("expansionPanel"),tabIndex:a=0}=e,i=(0,Q.Z)(e,Qo),{prefix:c="osano-cm-",store:s}=i,{dispatch:l,getState:p}=s,d=p(),u=(0,J.p3)(d,n),g={prefix:c,block:Yo},f={root:_t(Yo,e,{expanded:u}),body:_t("body",g),toggle:_t("toggle",g)},m=e=>{if(e.preventDefault(),e.stopPropagation(),"keypress"===e.type){var t=e.charCode||e.keyCode;if(32!==t&&13!==t)return!1}return l(((e,t)=>r=>{r(me.ZP.toggleExpansionPanel(e,t))})(n)),Ko(e.target,{prefix:c,element:Yo}),!1};return S(Go||(Go=o(['
','
"])),se(f.root),se(f.toggle),m,m,a,u,n,r,n,Bt(Ko,{force:u,prefix:c,element:Yo}),r,n,se(f.body),n,u?"polite":"none",t)}var en,tn=r(169),rn=["block","description","descriptionLegal","name","specialFeatureId"];function on(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function nn(e){for(var t=1;t'," "," "])),ft(nn(nn({},s),{},{id:"".concat(u,"drawer-toggle--specialFeature_").concat(c),block:t,label:a,title:a,checked:(0,at.yl)(d,{specialFeatureId:c}),onChange:e=>l((e=>t=>r=>{var o=t.target.checked;r((0,tn.jq)(e,o?i.eJ:i.Dv))})(c)(e)),className:re({prefix:u,block:t,element:"drawer-toggle"}).join(" ")})),se(g.description),r,Xo(nn(nn({},s),{},{id:"".concat(u,"special-feature-disclosure--").concat(c),header:an(),body:n})))}var sn,ln=["id","active","block","className"];function pn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function dn(e){for(var t=1;t({category:e}))):(0,J.CP)(d).map((e=>({category:e}))),...(0,J.sx)(d)?g:[],...u?Object.keys(i.go.translate("iab.specialFeatures")).map((e=>({specialFeatureId:e,name:i.go.translate("iab.specialFeatures.".concat(e,".name")),description:i.go.translate("iab.specialFeatures.".concat(e,".description")),descriptionLegal:i.go.translate("iab.specialFeatures.".concat(e,".descriptionLegal")),id:"osano-cm-tcf-v2-specialFeatures--specialFeature_".concat(e),render:cn}))):[]],m="view",v={root:te({prefix:s,block:n,element:m,className:a,modifiers:{element:{active:r,type:"consent"}}}),poweredBy:te({prefix:s,block:m,element:"powered-by"})};return S(sn||(sn=o(['
'," "," ",'
',"
"])),se(v.root),function(e){var{id:t,block:r}=e,n=(0,Q.Z)(e,Bo),{prefix:a,store:{getState:c}}=n,s={description:te({prefix:a,block:r,element:"description"})},l=c(),p=(0,at.jp)(l),d=(0,J.Cc)(l),u=(0,J.go)(l),g=(0,J.Kg)(l),f=i.go.template("buttons.".concat(g)),m=i.go.template("messaging.".concat(g));return S(Fo||(Fo=o(['

','

'," "," ","

"])),le(t),se(s.description),(0,J.Tc)(l)?zo():Wo(),se(s.description),u?We(Jo(Jo({},n),{},{block:"content",className:"osano-cm-storage-policy",label:f(void 0,m()),href:d,target:"_blank"})):"",p?lt(Jo({block:"description"},n)):"",p?ot(Jo({block:"description"},n)):"")}(dn(dn({},c),{},{prefix:s,id:t,block:m})),br(dn(dn({},c),{},{prefix:s,block:m,children:f,render:Ho,itemClassName:re({prefix:s,element:"drawer-item"}).join(" ")})),ge(dn(dn({},c),{},{prefix:s,block:m,className:"osano-cm-save",label:gn(),onClick:()=>l((e=>{e(me.ZP.saveConsent()),e(me.ZP.hideDrawer()),setTimeout((()=>{e(me.ZP.hideDoNotSell())}),400),e(me.ZP.showWidget())}))})),se(v.poweredBy),We(dn(dn({},c),{},{prefix:s,block:"powered-by",label:fn(),ariaDescribedBy:"".concat(s,"aria.external"),href:"https://www.osano.com/?utm_campaign=cmp&utm_source=cmp-dialog&utm_medium=drawer"})))}var vn={preventScroll:!0};function hn(e){return null!==e.offsetParent}var bn,yn=function(e){return(e||document).querySelectorAll('button, a[href]:not([rel="ignore"]), input:not([type="hidden"]):not([type="file"]), select, textarea, [tabindex]:not([tabindex="-1"]):not([role="first"]):not([role="last"])')},On=function(e,t){if(null!==e){var r=document.activeElement,o=Array.from(yn(e)).filter(hn)[0];try{o.focus(vn)}catch(l){t&&t.focus(vn)}return r}},wn={first:"last",last:"first"},jn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(){var t=Array.from(yn(this.parentNode)),r=wn["".concat(e)]||"first",o="last"===r?t.length-1:0,n="last"===r?-1:1,a=t[parseInt(o,10)];if(a){if(a.getAttribute("role")===r&&(a=t[o+n]),a.getAttribute("role")===e)return;try{a.focus()}catch(l){}}}};function Pn(e){var{role:t}=e;return S(bn||(bn=o(["",""])),function(e){var{onFocus:t,role:r}=e;return S(un||(un=o([''])),r,t)}({role:t,onFocus:jn(t)}))}var _n,kn,Sn,En=["block","element","type","itemId"],xn=["id","active","className"];function Dn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function An(e){for(var t=1;t{var{block:t,element:r,type:n,itemId:a}=e,c=(0,Q.Z)(e,En),{prefix:s,store:{dispatch:l,getState:p}}=c,d={description:_t(r,e)},u=i.go.translate("iab.".concat(n,"s.").concat(a,".name")),g=i.go.translate("iab.".concat(n,"s.").concat(a,".description")),f=i.go.translate("iab.".concat(n,"s.").concat(a,".descriptionLegal"));return S(_n||(_n=o(['

','

',"

",""])),se(d.description),g,se(d.description),f,"purpose"===n?S(kn||(kn=o(['

',"

"])),se(d.description),ft(An(An({},c),{},{ariaLabel:"".concat(u," - ").concat(Tn()),ariaDescription:"".concat(g," ").concat(f),onChange:e=>{return l((t=a,e=>r=>{var o=e.target.checked;r((0,tn.nu)(t,o?i.eJ:i.Dv))})(e));var t},id:"".concat(s).concat(r,"-toggle--").concat(r,"_").concat(a),block:t,label:Tn(),type:"opt-out",checked:(0,at.NX)(p(),{purposeId:a})}))):"")},Ln=e=>Object.keys(i.go.translate("iab.".concat(e,"s"))).map((t=>({element:e,term:i.go.translate("iab.".concat(e,"s.").concat(t,".name")),id:"osano-cm-tcf-v2-".concat(e,"s--").concat(e,"_").concat(t),itemId:t,children:[{type:e,itemId:t}]})));function Zn(e){var{id:t,active:r,className:n=""}=e,a=(0,Q.Z)(e,xn),i="view",c=Ln("purpose"),s=Ln("specialPurpose"),l=Ln("feature"),p=Ln("specialFeature"),d=An(An({},a),{},{type:"description",block:i,render:In}),u={root:_t(i,An(An({},a),{},{className:n}),{active:r,type:"legal"}),description:_t("description",d)};return S(Sn||(Sn=o(['

',"

","","","","
"])),se(u.root),le(t),se(u.description),Cn(),br(An(An({},d),{},{children:c})),br(An(An({},d),{},{children:s})),br(An(An({},d),{},{children:l})),br(An(An({},d),{},{children:p})))}var Un,Mn,Vn=["category","block","vendorId"];function Rn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Fn(e){for(var t=1;t({purposeId:e,type:"purposes"}),oa=e=>({purposeId:e,type:"specialPurposes"}),na=e=>({purposeId:e,type:"features"}),aa=e=>({purposeId:e,type:"specialFeatures"}),ia=(e,t,r)=>t.length?[{term:e(),children:t.map(r)}]:[];function ca(e){var{category:t="",block:r,vendorId:n}=e,a=(0,Q.Z)(e,Vn),{store:{dispatch:c,getState:s}}=a,l=s(),{name:p,purposes:d,legIntPurposes:u,flexiblePurposes:g,specialPurposes:f,features:m,specialFeatures:v,policyUrl:h,cookieMaxAgeSeconds:b,usesNonCookieAccess:y,deviceStorageDisclosureUrl:O}=(0,at.GM)(l,{vendorId:n}),{prefix:w}=a,j=d.filter((e=>!g.includes(e))),P=Math.max(b||0,0)/60/60/24;return S(Un||(Un=o([""," ","","",""])),function(e){var{id:t,level:r,title:n}=e;return n?S(Nn||(Nn=o(['
',"
"])),le(t),le(r),n):""}({level:2,title:p}),ft(Fn(Fn({},a),{},{id:"".concat(w,"drawer-toggle--vendor_").concat(n),category:t,block:r,label:p,title:p,checked:!(0,at.wY)(l,{vendorId:n}),onChange:e=>c((e=>t=>r=>{var o=t.target.checked;r((0,tn.f5)(e,o?i.eJ:i.Dv))})(n)(e)),className:kt("drawer-toggle",e)})),We(Fn(Fn({},a),{},{block:r,className:kt("vendor-link",e),label:Qn(),href:h,ariaDescribedBy:"".concat(w,"aria.externalNewWindow"),target:"_blank"})),Xo(Fn(Fn({},a),{},{block:r,id:"".concat(w,"vendor-disclosure--").concat(n),header:Gn(),body:br(Fn(Fn({},a),{},{block:"disclosures",className:kt("disclosures",Fn(Fn({},e),{},{block:"expansion-panel"})),children:[{term:Yn(),children:[{type:"string",disclosure:"".concat(P," ").concat(1===P?Xn():ea())},...y?[{type:"string",disclosure:S(Mn||(Mn=o(["",""])),Kn())}]:[]]},...ia(Hn,u,ra),...ia(Bn,j,ra),...ia(qn,g,ra),...ia(Jn,f,oa),...ia(Wn,m,na),...ia(zn,v,aa),...O?[{term:ta(),children:[{type:"link",href:O,label:O,ariaDescribedBy:"".concat(w,"aria.externalNewWindow"),title:"".concat(p," ").concat(Gn()),target:"_blank"}]}]:[]],type:"description",render:e=>{var{type:t,disclosure:r}=e;return"string"===t?r:"link"===t?We(e):ot(e)}}))})))}var sa=["id","active","className"];function la(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function pa(e){for(var t=1;t

',"

"," "])),se(d.root),le(t),se(d.description),fa(),vo(br(pa(pa({},a),{},{block:s,children:p,render:ca,itemId:"vendorId",itemClassName:kt({prefix:i,element:"drawer-item"})}))))}var va=["activeView"],ha=["id"],ba=["className","id"];function ya(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Oa(e){for(var t=1;te.stopPropagation(),Da=e=>{switch(e){case Xe.n.CONSENT:case Xe.n.DO_NOT_SELL:return mn;case Xe.n.LEGAL:return Zn;case Xe.n.VENDOR_CONSENT:return ma}return()=>S(da||(da=o([""])))},Aa=e=>{var{dispatch:t}=e;return()=>t((e=>{e(me.ZP.goBack())}))},Na=e=>{var{id:t}=e,r=(0,Q.Z)(e,ha),{store:n}=e,{getState:a}=n,i="info-dialog-header",c=a(),s=(0,J.oC)(c),l=(0,J.eV)(c),p={root:_t(i,e),close:_t("close",Oa(Oa({},e),{},{block:i})),header:_t("header",Oa(Oa({},e),{},{block:i}))},d=Ea["".concat(s["".concat(l)])]||function(){return""},u=Ea["".concat(s["".concat(l-1)])]||function(){return""};return S(ua||(ua=o(['"])),se(p.root),le(t),se(p.header),d(),se(p.close),(e=>{var{dispatch:t}=e;return()=>t(mo())})(n),Ot(Oa(Oa({},r),{},{block:i,label:Sa()})),l>0?ge(Oa(Oa({},r),{},{block:i,className:"osano-cm-back",label:wa,ariaLabel:"← ".concat(u()),onClick:Aa(n)})):"")},Ca="info";function Ta(e){var{className:t="",id:r}=e,n=(0,Q.Z)(e,ba),{prefix:a,store:{dispatch:i,getState:c}}=n,s=c(),l=!(0,J.Qc)(s),p=(0,J.XN)(s),d=(0,J.oC)(s).map(((e,t)=>({name:e,index:t,id:"".concat(a).concat(e,"--view"),view:Da(e)}))),u=(0,J.eV)(s),{infoDialogPosition:g}=p,f="".concat(r,"__label"),m={wrapper:_t("info-dialog",Oa(Oa({},e),{},{className:t}),{hidden:l}),root:_t(Ca,Oa(Oa({},n),{},{block:"info-dialog"}),{position:g,do_not_sell:(0,J.Tc)(s),open:!l}),view:_t("info-views",Oa(Oa({},n),{},{block:Ca}),{hidden:l,position:"".concat(u)})},v=d[parseInt(u,10)],h=Oa(Oa({},n),{},{tabIndex:l?-1:0,activeView:v&&v.name,block:"info-views"});return S(ga||(ga=o(['"])),r,f,le(v&&v.id),l,se(m.wrapper),(()=>i(mo())),Pn({role:"first"}),se(m.root),xa,Wt(null==v?void 0:v.name),Na(Oa(Oa({},n),{},{block:Ca,id:f})),se(m.view),Kt([d],(()=>Mt(d,(e=>{var{name:t}=e;return t}),(e=>{var{activeView:t}=e,r=(0,Q.Z)(e,va);return e=>{var{view:o,index:n,id:a,name:i}=e;return vo(o(Oa(Oa({},r),{},{index:n,id:a,active:t===i})))}})(h)))),Pn({role:"last"}))}var Ia=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(0===e.indexOf("rgb"))try{var r=e.replace(/[^\d,.]/g,"").split(",").map((e=>{var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid color value");return t}));return r}catch(s){return Ia(t,"rgba(0,0,0,1)")}var o="".concat(e||"").toLowerCase().replace(/[^0-9a-f]/,"");if(3===o.length||4===o.length)o=o.split("").map((e=>"".concat(e).concat(e))).join("");else if(6!==o.length&&8!==o.length)return Ia(t,"rgba(0,0,0,1)");for(var n=[],a=0;a(~~(255*e)%256+256)%256,Za=(e,t,r)=>(Math.round(299*e)+Math.round(587*t)+Math.round(114*r))/1e3>=128?0:1,Ua=(e,t,r)=>La(.21*e+.72*t+.07*r),Ma=(e,t)=>{var r=Math.abs(t)!==t?-1:1,o=Math.abs(t)<=1,n=Math.abs(t);n=Math.floor(Math.min(255,Math.max(-255,o?Math.round(255*n):n)))*r;var[a,i,c]="string"==typeof e?Ia(e):e;return(a+=n)>255?a=255:a<0&&(a=0),(c+=n)>255?c=255:c<0&&(c=0),(i+=n)>255?i=255:i<0&&(i=0),"#".concat(function(){for(var e=arguments.length,t=new Array(e),r=0;r"".concat(e).concat("00".concat(t.toString(16)).slice(-2))),"")}(a,i,c))},Va=(e,t)=>Ma(e,-t),Ra=(e,t)=>Ma(e,t);var Fa,$a={},Ha=e=>{var t,r,o=$a["".concat(e)]||[Ia(e)];return o[1]=null!==(t=o[1])&&void 0!==t?t:Za.apply(null,o[0]),o[2]=null!==(r=o[2])&&void 0!==r?r:Ua.apply(null,o[0]),$a["".concat(e)]=o,o},Ba=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.08,[,r]=Ha(e);return(t<0?!r:r)?Ra(e,Math.abs(t)):Va(e,Math.abs(t))};var qa,Ja=["block","id"],Wa=i.go.template("messaging.widgetAltText"),za=e=>{var{store:t}=e;return()=>{t.dispatch((e=>{e(me.ZP.hideWidget()),e(me.ZP.showDrawer())}))}},Ga="widget";var Qa=r(248),Ka=r(330),Ya=r(620);var Xa,ei;function ti(e){var{dom:t,drawerId:r,dialogId:o,widgetId:n}=e;return e=>a=>c=>{var s=a(c),{type:l,payload:p}=c,d=e.getState(),u=(0,J.Wf)(d),g=(0,J.Fr)(d);switch(l){case me.V5.render:t.render();break;case me.V5.ready:switch(p){case"blocking":case"consent":case"dom":if((0,J.dk)(d)){var f=(0,J.fM)(d)||!(0,J.fy)(d);requestAnimationFrame((()=>{f?e.dispatch(me.ZP.showDialog()):e.dispatch(me.ZP.showWidget())}))}}break;case me.V5.saveConsent:(0,J.fy)(d)&&requestAnimationFrame((()=>{e.dispatch(me.ZP.hideDialog())}));break;case me.V5.toggleDisclosure:var{category:m}=p;!(0,J.MR)(d)&&!(0,J.AP)(d,m)&&(e.dispatch(me.ZP.fetchDisclosuresBegin(m)),function(e){var{customerId:t,configId:r,category:o,language="en"}=e,n={language,category:o};return Ka.Z.get("".concat(Ya.DISCLOSURE_URI,"/customer/").concat(t,"/config/").concat(r),n)}({customerId:u,configId:g,category:m}).then((t=>{var r=t||[];return e.dispatch(me.ZP.fetchDisclosuresSuccess(r,m)),t})).catch((t=>{e.dispatch(me.ZP.fetchDisclosuresFailure(t,m))})));break;case me.V5.hideDialog:clearTimeout(ei);break;case me.V5.showDialog:(0,J.VG)(d)&&(ei&&clearTimeout(ei),ei=(e=>(e.dispatch(me.ZP.timeoutBegin()),setTimeout((()=>{(0,J.fy)(e.getState())||(e.dispatch(me.ZP.acceptAllConsent()),e.dispatch(me.ZP.saveConsent())),(0,J.fM)(e.getState())&&(e.dispatch(me.ZP.timeoutComplete()),e.dispatch(me.ZP.showWidget())),(0,J.JU)(e.getState())||e.dispatch(me.ZP.hideDialog())}),1e3*(0,J.BK)(e.getState()))))(e)),Xa&&Xa.focus(),Xa=On(i.Av.getElementById(o));break;case me.V5.showWidget:On(i.Av.getElementById(n),Xa),Xa=void 0;break;case me.V5.showVendorConsent:case me.V5.showLegal:case me.V5.showDrawer:Xa&&Xa.focus(),Xa=On(i.Av.getElementById(r))}return s}}var ri=r(798),oi=r(460);var ni=r(445),ai=r(469);function ii(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function ci(e){for(var t=1;tt},innerHTML:ci(ci({enumerable:!0,configurable:!0},r.innerHTML),{},{set:function(e){pi.innerHTML=e;for(var r=t.firstChild;r;){var o=r.nextSibling;t.removeChild(r),r=o}for(r=pi.firstChild;r;){var n=r.nextSibling;t.appendChild(r),r=n}}})})}}function ui(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function gi(e){for(var t=1;twindow.getComputedStyle(i.Av.querySelector(".osano-cm-window")).getPropertyValue("--".concat(e));Object.defineProperty(document,"createElement",gi(gi({},ri.IP),{},{value:function(){for(var e=arguments.length,t=new Array(e),r=0;r{var{getState:e}=r,{prefix:t="osano-cm-"}=e(),a="window";return S(si||(si=o([" "," "," "," "," "])),function(e){var{prefix:t}=e;return S(B||(B=o(['"])),"".concat(t,"aria.newWindow"),W(),"".concat(t,"aria.external"),z(),"".concat(t,"aria.externalNewWindow"),G())}({config:n,prefix:t,store:r}),so({id:s,block:a,config:n,prefix:t,store:r,drawerId:l}),function(e){var{block:t,id:r}=e,n=(0,Q.Z)(e,Ja),{prefix:a="osano-cm-",store:{getState:i}}=n,c=i(),{widgetPosition:s}=(0,J.XN)(c),l=!(0,J.Z9)(c),p=!(0,J.Qc)(c),d=(0,J.Kx)(c),u={root:te({prefix:a,block:t,element:Ga,modifiers:{element:{hidden:d||!p||!l,position:s}}}),outline:te({prefix:a,block:Ga,element:"outline"}),dot:te({prefix:a,block:Ga,element:"dot"})};return S(qa||(qa=o([' '])),r,se(u.root),Wa(),Wa(),za(e),r,se(u.outline),se(u.outline),se(u.dot))}({id:p,block:a,config:n,prefix:t,store:r}),Ta({id:l,block:a,config:n,prefix:t,store:r}))},container:a,dynamicMiddleware:t,middleware:ti({dom:this,dialogId:s,widgetId:p,drawerId:l}),styleContainer:c,store:r})}setup(){var e=mi.get(this)||{},{dynamicMiddleware:t,store:r}=e;if(t&&t.addMiddleware(this.middleware),!e.unsubscribe){var o=r.subscribe(this.render.bind(this));mi.set(this,gi(gi({},e),{},{unsubscribe:o}))}return this}teardown(){var e=mi.get(this)||{},{dynamicMiddleware:t}=e;return t.removeMiddleware(this.middleware),e.unsubscribe&&(e.unsubscribe(),delete e.unsubscribe,mi.set(this,gi({},e))),this}render(){if(null!==i.Av.body){var{template:e,container:t,styleContainer:r,store:n}=mi.get(this);if((0,J.dk)(n.getState())){var{getState:a}=n,c=a(),{prefix:s="osano-cm-"}=c,l=re({prefix:s,block:"window",modifiers:{block:{context:(0,J.S0)(c)&&"amp"}}}).join(" ");return t.className!==l&&(t.className=l),t.parentNode&&t.parentNode===i.Av.body||(i.Av.body.firstChild?oi.q.value.call(i.Av.body,t,i.Av.body.firstChild):Qa.q.value.call(i.Av.body,t)),r.parentNode&&r.parentNode===i.Av.head||(i.Av.head.firstChild?oi.q.value.call(i.Av.head,r,i.Av.head.firstChild):Qa.q.value.call(i.Av.head,r)),ai.qI.value.call(t,"dir",i.go.isRTL?"rtl":"ltr"),q((e=>{var t=e.getState(),{buttonBackgroundColor:r,buttonForegroundColor:n,buttonDenyBackgroundColor:a,buttonDenyForegroundColor:c,dialogBackgroundColor:s,dialogForegroundColor:l,infoDialogBackgroundColor:p,infoDialogForegroundColor:d,infoDialogOverlayColor:u,linkColor:g,toggleOffBackgroundColor:f,toggleButtonOffColor:m,toggleOnBackgroundColor:v,toggleButtonOnColor:h,widgetColor:b,widgetFillColor:y,widgetOutlineColor:O}=(0,J.XN)(t),w="rgba(".concat(Ia(p).slice(0,3).join(","),",0)");return S(Fa||(Fa=o([" "," .osano-cm-window { direction: ","; text-align: ","; } .osano-cm-dialog { background: ","; color: ","; } .osano-cm-dialog__close { color: ","; stroke: ","; } .osano-cm-dialog__close:focus { background-color: ","; border-color: ","; stroke: ","; } .osano-cm-dialog__close:hover { stroke: ","; } .osano-cm-dialog__close:focus:hover { stroke: ","; } .osano-cm-info-dialog { background: ","; } .osano-cm-header, .osano-cm-info-dialog-header { background: ","; background: linear-gradient( 180deg, "," 2.5em, "," 100% ); } .osano-cm-info { background: ","; color: ","; } .osano-cm-close { background-color: transparent; border-color: transparent; } .osano-cm-info-dialog-header__close { color: ","; stroke: ","; } .osano-cm-info-dialog-header__close:focus { background-color: ","; border-color: ","; stroke: ","; } .osano-cm-info-dialog-header__close:hover { stroke: ","; } .osano-cm-info-dialog-header__close:focus:hover { stroke: ","; } .osano-cm-disclosure__list:first-of-type::after { background-color: ","; } .osano-cm-disclosure__toggle, .osano-cm-expansion-panel__toggle { color: ","; } .osano-cm-disclosure__toggle:hover, .osano-cm-disclosure__toggle:active, .osano-cm-expansion-panel__toggle:hover, .osano-cm-expansion-panel__toggle:active { color: ","; } .osano-cm-disclosure__toggle:focus, .osano-cm-expansion-panel__toggle:focus { color: ","; } .osano-cm-button { background-color: ","; border-color: ","; color: ","; } .osano-cm-button--type_deny { background-color: ","; border-color: ","; color: ","; } .osano-cm-button:focus, .osano-cm-button:hover { background-color: ","; } .osano-cm-button--type_deny:focus, .osano-cm-button--type_deny:hover { background-color: ","; } .osano-cm-link { color: ","; } .osano-cm-link:hover, .osano-cm-link:active { color: ","; } .osano-cm-link:focus { color: ","; } .osano-cm-toggle__switch { background-color: ","; } .osano-cm-toggle__switch::after { background-color: ","; border-color: ","; } .osano-cm-toggle__switch::before { border-color: transparent; } .osano-cm-toggle__input:checked + .osano-cm-toggle__switch { background-color: ","; border-color: ","; } .osano-cm-toggle__input:checked + .osano-cm-toggle__switch::after { background-color: ","; border-color: ","; } .osano-cm-toggle__input:focus + .osano-cm-toggle__switch, .osano-cm-toggle__input:hover + .osano-cm-toggle__switch { background-color: ","; border-color: ","; } .osano-cm-toggle__input:focus + .osano-cm-toggle__switch::before { border-color: ","; } .osano-cm-toggle__input:checked:focus + .osano-cm-toggle__switch, .osano-cm-toggle__input:checked:hover + .osano-cm-toggle__switch { background-color: ","; border-color: ","; } .osano-cm-toggle__input:checked:focus + .osano-cm-toggle__switch::before { border-color: ","; } .osano-cm-toggle__input:disabled + .osano-cm-toggle__switch, .osano-cm-toggle__input:disabled:focus + .osano-cm-toggle__switch, .osano-cm-toggle__input:disabled:hover + .osano-cm-toggle__switch { background-color: ","; border-color: ","; } .osano-cm-toggle__input:disabled + .osano-cm-toggle__switch::after, .osano-cm-toggle__input:disabled:focus + .osano-cm-toggle__switch::after, .osano-cm-toggle__input:disabled:hover + .osano-cm-toggle__switch::after { background-color: ","; border-color: ","; } .osano-cm-toggle__input:disabled + .osano-cm-toggle__switch::before, .osano-cm-toggle__input:disabled:focus + .osano-cm-toggle__switch::before, .osano-cm-toggle__input:disabled:hover + .osano-cm-toggle__switch::before { border-color: transparent; } .osano-cm-toggle__input:disabled:checked + .osano-cm-toggle__switch, .osano-cm-toggle__input:disabled:checked:focus + .osano-cm-toggle__switch, .osano-cm-toggle__input:disabled:checked:hover + .osano-cm-toggle__switch { background-color: ","; border-color: ","; } .osano-cm-toggle__input:disabled:checked + .osano-cm-toggle__switch::after, .osano-cm-toggle__input:disabled:checked:focus + .osano-cm-toggle__switch::after, .osano-cm-toggle__input:disabled:checked:hover + .osano-cm-toggle__switch::after { background-color: ","; border-color: ","; } .osano-cm-toggle__input:disabled:checked + .osano-cm-toggle__switch::before, .osano-cm-toggle__input:disabled:checked:focus + .osano-cm-toggle__switch::before, .osano-cm-toggle__input:disabled:checked:hover + .osano-cm-toggle__switch::before { border-color: transparent; } .osano-cm-widget__outline { fill: ","; stroke: ","; } .osano-cm-widget__dot { fill: ","; } "])),'.osano-cm-window{font-smooth:always;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothingz:auto;--fade-transition-time:700ms;--slide-transition-time:400ms;display:block;font-family:Helvetica,Arial,Hiragino Sans GB,STXihei,Microsoft YaHei,WenQuanYi Micro Hei,Hind,MS Gothic,Apple SD Gothic Neo,NanumBarunGothic,sans-serif;font-size:16px;left:0;line-height:1;position:absolute;top:0;width:100%;z-index:2147483638}.osano-cm-window--context_amp{height:100%}.osano-visually-hidden{height:1px;left:-10000px;margin:-1px;opacity:0;overflow:hidden;position:absolute;width:1px}.osano-cm-button{border-radius:.25em;border-style:solid;border-width:thin;cursor:pointer;flex:1 1 auto;font-size:1em;font-weight:700;line-height:1;margin:.125em;min-width:6em;padding:.5em .75em;transition-duration:.2s;transition-property:background-color;transition-timing-function:ease-out}.osano-cm-button--type_icon{border-radius:50%;height:1em;line-height:0;min-width:1em;width:1em}.osano-cm-button:focus,.osano-cm-button:hover{outline:none}.osano-cm-close{stroke-width:1px;border-radius:50%;border-style:solid;border-width:2px;box-sizing:initial;cursor:pointer;height:20px;margin:.5em;min-height:20px;min-width:20px;order:0;outline:none;overflow:hidden;padding:0;text-decoration:none;transform:rotate(0deg);transition-duration:.2s;transition-property:transform,color,background-color,stroke,stroke-width;transition-timing-function:ease-out;width:20px;z-index:2}.osano-cm-close:focus,.osano-cm-close:hover{stroke-width:2px;transform:rotate(90deg)}.osano-cm-link{cursor:pointer;text-decoration:underline;transition-duration:.2s;transition-property:color;transition-timing-function:ease-out}.osano-cm-link:active,.osano-cm-link:hover{outline:none}.osano-cm-link:focus{font-weight:700;outline:none}.osano-cm-link--type_feature,.osano-cm-link--type_purpose,.osano-cm-link--type_specialFeature,.osano-cm-link--type_specialPurpose{cursor:help;display:block;-webkit-text-decoration:dashed;text-decoration:dashed}.osano-cm-link--type_denyAll{display:block;text-align:right}[dir=rtl] .osano-cm-link--type_denyAll{text-align:left}.osano-cm-link--type_vendor{display:block}.osano-cm-vendor-link{font-size:.75em}.osano-cm-list-item{margin:0}.osano-cm-list-item--type_term{border-top-style:solid;border-top-width:1px;font-size:.875rem;font-weight:400;margin-bottom:.25em;margin-top:.5em;padding:.5em .75rem 0;position:relative;top:-1px}.osano-cm-list-item--type_description{font-size:.75rem;font-weight:lighter;padding:0 .75rem}.osano-cm-list{list-style-position:outside;list-style-type:none;margin:0;padding:0}.osano-cm-list__list-item{text-indent:0}.osano-cm-list--type_description{margin:0 -1em}.osano-cm-list:first-of-type .osano-cm-list__list-item:first-of-type{border-top-width:0;margin-top:0;padding-top:0}.osano-cm-toggle{align-items:center;display:flex;flex-direction:row-reverse;justify-content:flex-start;margin:.25em 0;pointer-events:auto;position:relative}.osano-cm-toggle__label{margin:0 .5em 0 0}[dir=rtl] .osano-cm-toggle__label{margin:0 0 0 .5em}.osano-cm-toggle__switch{border-radius:14px;border-style:solid;border-width:2px;box-sizing:initial;color:#0000;display:block;flex-shrink:0;height:18px;line-height:0;margin:0;position:relative;text-indent:-9999px;transition-duration:.2s;transition-property:background-color;transition-timing-function:ease-out;width:40px}.osano-cm-toggle__switch:hover{cursor:pointer}.osano-cm-toggle__switch:after{border-radius:9px;border-width:0;height:18px;left:0;top:0;width:18px}.osano-cm-toggle__switch:before{border-radius:16px;border-width:2px;bottom:-6px;box-sizing:border-box;left:-6px;right:-6px;top:-6px}.osano-cm-toggle__switch:after,.osano-cm-toggle__switch:before{border-style:solid;content:"";margin:0;position:absolute;transform:translateX(0);transition-duration:.3s;transition-property:transform,left,border-color;transition-timing-function:ease-out}.osano-cm-toggle__switch:after:active,.osano-cm-toggle__switch:before:active{transition-duration:.1s}.osano-cm-toggle__switch:after:active{width:26px}.osano-cm-toggle__switch:before:active{width:34px}[dir=rtl] .osano-cm-toggle__switch:after{left:100%;transform:translateX(-100%)}.osano-cm-toggle__input{height:1px;left:-10000px;margin:-1px;opacity:0;overflow:hidden;position:absolute;width:1px}[dir=rtl] .osano-cm-toggle__input{left:0;right:-10000px}.osano-cm-toggle__input:disabled{cursor:default}.osano-cm-toggle--type_checkbox .osano-cm-toggle__switch{border-radius:4px;border-style:solid;border-width:1px;height:22px;width:22px}.osano-cm-toggle--type_checkbox .osano-cm-toggle__switch:after{background-color:#0000!important;border-bottom-width:2px;border-left-width:2px;border-radius:0;content:none;height:6px;left:3px;top:3px;transform:rotate(-45deg);transition-property:color;transition-timing-function:ease-out;width:12px}.osano-cm-toggle--type_opt-out .osano-cm-toggle__switch{border-radius:4px;border-style:solid;border-width:1px;height:22px;width:22px}.osano-cm-toggle--type_opt-out .osano-cm-toggle__switch:after,.osano-cm-toggle--type_opt-out .osano-cm-toggle__switch:before{background-color:#0000!important;border-bottom-width:1px;border-radius:0;border-top-width:1px;content:none;height:0;left:-3px;top:7px;transition-property:color;transition-timing-function:ease-out;width:12px}.osano-cm-toggle--type_opt-out .osano-cm-toggle__switch:after{transform:translate(50%,50%) rotate(-45deg)}.osano-cm-toggle--type_opt-out .osano-cm-toggle__switch:before{transform:translate(50%,50%) rotate(45deg)}.osano-cm-toggle__input:checked+.osano-cm-toggle__switch:after{left:100%;transform:translateX(-100%)}[dir=rtl] .osano-cm-toggle__input:checked+.osano-cm-toggle__switch:after{left:0;transform:translateX(0)}.osano-cm-toggle__input:disabled+.osano-cm-toggle__switch{cursor:default}.osano-cm-toggle--type_checkbox .osano-cm-toggle__input:checked+.osano-cm-toggle__switch:after{content:"";left:3px;top:3px;transform:rotate(-45deg)}.osano-cm-toggle--type_opt-out .osano-cm-toggle__input:checked+.osano-cm-toggle__switch:after,.osano-cm-toggle--type_opt-out .osano-cm-toggle__input:checked+.osano-cm-toggle__switch:before{content:"";left:-3px;top:7px}.osano-cm-toggle--type_opt-out .osano-cm-toggle__input:checked+.osano-cm-toggle__switch:after{transform:translate(50%,50%) rotate(-45deg)}.osano-cm-toggle--type_opt-out .osano-cm-toggle__input:checked+.osano-cm-toggle__switch:before{transform:translate(50%,50%) rotate(45deg)}.osano-cm-toggle--type_checkbox .osano-cm-toggle__input:disabled+.osano-cm-toggle__switch,.osano-cm-toggle--type_opt-out .osano-cm-toggle__input:disabled+.osano-cm-toggle__switch{opacity:.3}.osano-cm-widget{background:none;border:none;bottom:12px;cursor:pointer;height:40px;opacity:.9;outline:none;padding:0;position:fixed;transition:transform .1s linear 0s,opacity .4s linear 0ms,visibility 0ms linear 0ms;visibility:visible;width:40px;z-index:2147483636}.osano-cm-widget--position_right{right:12px}.osano-cm-widget--position_left{left:12px}.osano-cm-widget:focus{outline:solid;outline-offset:.2rem}.osano-cm-widget:focus,.osano-cm-widget:hover{opacity:1;transform:scale(1.1)}.osano-cm-widget--hidden{opacity:0;transition-delay:0ms,0ms,.4s;visibility:hidden}.osano-cm-widget--hidden:focus,.osano-cm-widget--hidden:hover{opacity:0;transform:scale(1)}.osano-cm-dialog{align-items:center;box-sizing:border-box;font-size:1em;line-height:1.25;overflow:auto;padding:1.5em;position:fixed;transition-delay:0ms,0ms;transition-duration:.7s,0ms;transition-property:opacity,visibility;visibility:visible;z-index:2147483637}.osano-cm-dialog--hidden{opacity:0;transition-delay:0ms,.7s;visibility:hidden}.osano-cm-dialog--type_bar{box-sizing:border-box;display:flex;flex-direction:column;left:0;right:0}.osano-cm-dialog--type_bar .osano-cm-button{flex:none;margin:.125em auto;width:80%}@media screen and (min-width:768px){.osano-cm-dialog--type_bar{flex-direction:row}.osano-cm-dialog--type_bar .osano-cm-button{flex:1 1 100%;margin:.25em .5em;width:auto}}.osano-cm-dialog--type_box{flex-direction:column;max-height:calc(100vh - 2em);max-width:20em;width:calc(100vw - 2em)}.osano-cm-dialog__close{position:absolute;right:0;top:0}.osano-cm-dialog__list{margin:.5em 0 0;padding:0}.osano-cm-dialog__list .osano-cm-item{display:flex;margin-top:0}.osano-cm-dialog__list .osano-cm-item:last-child{margin-bottom:0}.osano-cm-dialog__list .osano-cm-toggle{flex-direction:row}[dir=rtl] .osano-cm-dialog__list .osano-cm-toggle{flex-direction:row-reverse}.osano-cm-dialog__list .osano-cm-label{white-space:nowrap}[dir=ltr] .osano-cm-dialog__list .osano-cm-label{margin-left:.375em}[dir=rtl] .osano-cm-dialog__list .osano-cm-label{margin-right:.375em}.osano-cm-dialog__buttons{display:flex;flex-wrap:wrap}.osano-cm-dialog--type_bar .osano-cm-dialog__content{flex:5;margin-bottom:.25em;width:100%}@media screen and (min-width:768px){.osano-cm-dialog--type_bar .osano-cm-dialog__content{max-height:30vh}}.osano-cm-dialog--type_box .osano-cm-dialog__content{display:flex;flex-direction:column;flex-grow:.0001;transition:flex-grow 1s linear}.osano-cm-dialog--type_bar .osano-cm-dialog__list{display:flex;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;margin:.75em auto}@media screen and (min-width:376px){.osano-cm-dialog--type_bar .osano-cm-dialog__list{flex-direction:row}}@media screen and (min-width:768px){.osano-cm-dialog--type_bar .osano-cm-dialog__list{margin:.5em 0 0 auto}[dir=rtl] .osano-cm-dialog--type_bar .osano-cm-dialog__list{margin:.5em auto 0 0}}[dir=ltr] .osano-cm-dialog--type_bar .osano-cm-dialog__list .osano-cm-item{margin-right:.5em}[dir=rtl] .osano-cm-dialog--type_bar .osano-cm-dialog__list .osano-cm-item{margin-left:.5em}.osano-cm-dialog--type_bar .osano-cm-dialog__list .osano-cm-label{padding-top:0}.osano-cm-dialog--type_bar .osano-cm-dialog__buttons{flex:1;justify-content:flex-end;margin:0;width:100%}@media screen and (min-width:768px){.osano-cm-dialog--type_bar .osano-cm-dialog__buttons{margin:0 0 0 .5em;max-width:30vw;min-width:16em;position:-webkit-sticky;position:sticky;top:0;width:auto}[dir=rtl] .osano-cm-dialog--type_bar .osano-cm-dialog__buttons{margin:0 .5em 0 0}}.osano-cm-dialog--type_box .osano-cm-dialog__buttons{margin:.5em 0 0}.osano-cm-dialog--type_bar.osano-cm-dialog--position_top{top:0}.osano-cm-dialog--type_bar.osano-cm-dialog--position_bottom{bottom:0}.osano-cm-dialog--type_box.osano-cm-dialog--position_top-left{left:1em;top:1em}.osano-cm-dialog--type_box.osano-cm-dialog--position_top-right{right:1em;top:1em}.osano-cm-dialog--type_box.osano-cm-dialog--position_bottom-left{bottom:1em;left:1em}.osano-cm-dialog--type_box.osano-cm-dialog--position_bottom-right{bottom:1em;right:1em}.osano-cm-dialog--type_box.osano-cm-dialog--position_center{left:50%;top:50%;transform:translate(-50%,-50%)}.osano-cm-dialog--context_amp{height:100%;position:relative}.osano-cm-content__message{margin-bottom:1em;padding-bottom:1.5em;word-break:break-word}.osano-cm-drawer-links{margin:.5em 0 0}.osano-cm-drawer-links__link{display:block}.osano-cm-storage-policy{display:inline-block}.osano-cm-usage-list__list{list-style-position:inside;list-style-type:disc}:export{fadeTransitionTime:.7s;slideTransitionTime:.4s}.osano-cm-info-dialog{height:100vh;left:0;position:fixed;top:0;transition-delay:0ms,0ms;transition-duration:.2s,0ms;transition-property:opacity,visibility;visibility:visible;width:100vw;z-index:2147483638}.osano-cm-info-dialog--hidden{opacity:0;transition-delay:0ms,.2s;visibility:hidden}.osano-cm-info{animation:delay-overflow .4s;bottom:0;box-shadow:0 0 2px 2px #ccc;box-sizing:border-box;max-width:20em;overflow-x:visible;overflow-y:visible;position:fixed;top:0;transition-duration:.4s;transition-property:transform;width:100%}.osano-cm-info--position_left{left:0;transform:translate(-100%)}.osano-cm-info--position_right{right:0;transform:translate(100%)}.osano-cm-info--open{animation:none;overflow-x:hidden;overflow-y:auto;transform:translate(0)}.osano-cm-info--do_not_sell{animation:none;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;left:50%;position:fixed;right:auto;top:50%;transform:translate(-50%,-50%);transition:none}.osano-cm-info-views{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap;height:100%;transition-duration:.4s;transition-property:transform;width:100%}[dir=rtl] .osano-cm-info-views{flex-direction:row-reverse}.osano-cm-info-views__view{box-sizing:border-box;flex-shrink:0;width:100%}.osano-cm-info-views--position_0>:not(:first-of-type){max-height:100%;overflow:hidden}.osano-cm-info-views--position_1{transform:translateX(-100%)}.osano-cm-info-views--position_1>:not(:nth-of-type(2)){max-height:100%;overflow:hidden}.osano-cm-info-views--position_2{transform:translateX(-200%)}.osano-cm-info-views--position_2>:not(:nth-of-type(3)){max-height:100%;overflow:hidden}.osano-cm-info--do_not_sell .osano-cm-info-views{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}.osano-cm-view{height:0;padding:0 .75em 1em;transition-delay:.4s;transition-duration:0ms;transition-property:height,visibility;visibility:hidden;width:100%}.osano-cm-view__button{font-size:.875em;margin:1em 0 0;width:100%}.osano-cm-view--active{height:auto;transition-delay:0ms;visibility:visible}.osano-cm-header{margin:0 0 -1em;padding:1em 0;position:-webkit-sticky;position:sticky;top:0;z-index:1}.osano-cm-description{font-size:.75em;font-weight:300;line-height:1.375;margin:1em 0 0}.osano-cm-description:first-child{margin:0}.osano-cm-description:last-of-type{margin-bottom:1em}.osano-cm-drawer-toggle .osano-cm-label{font-size:.875em;line-height:1.375em;margin:0 auto 0 0}[dir=rtl] .osano-cm-drawer-toggle .osano-cm-label{margin:0 0 0 auto}.osano-cm-info-dialog-header{align-items:center;display:flex;flex-direction:row-reverse;left:auto;min-height:3.25em;position:-webkit-sticky;position:sticky;top:0;width:100%;z-index:1}[dir=rtl] .osano-cm-info-dialog-header{flex-direction:row}.osano-cm-info-dialog-header__header{align-items:center;display:flex;flex:1 1 auto;font-size:1em;justify-content:flex-start;margin:0;order:1;padding:1em .75em}.osano-cm-info-dialog-header__description{font-size:.75em;line-height:1.375}.osano-cm-back,.osano-cm-info-dialog-header__close{position:relative}.osano-cm-back{flex:0 1 auto;margin:0 0 0 .5em;min-width:0;order:2;width:auto;z-index:2}[dir=rtl] .osano-cm-back{margin:0 .5em 0 0}.osano-cm-powered-by{align-items:center;display:flex;flex-direction:column;font-weight:700;justify-content:center;margin:1em 0}.osano-cm-powered-by__link{font-size:.625em;outline:none;text-decoration:none}.osano-cm-powered-by__link:focus,.osano-cm-powered-by__link:hover{text-decoration:underline}@keyframes delay-overflow{0%{overflow-x:hidden;overflow-y:auto}}.osano-cm-expansion-panel{border-bottom:1px solid #0000001a;display:block;font-size:.75em;margin:0 -1.5em 1em;padding:1.5em 1.5em 0}.osano-cm-expansion-panel--expanded{border-bottom:none}.osano-cm-expansion-panel--empty,.osano-cm-expansion-panel--empty:not([open]){border-bottom:1px solid #0000001a;padding-bottom:0}.osano-cm-expansion-panel__body{background-color:#0000001a;line-height:1.25;list-style:none;margin:0 -1.5em;max-height:0;overflow:hidden;padding:0 1.5em;transition-delay:0ms,0ms,0ms,.3s;transition-duration:.3s,.3s,.3s,0s;transition-property:max-height,padding-top,padding-bottom,visibility;transition-timing-function:ease-out;visibility:hidden}.osano-cm-expansion-panel__toggle{cursor:pointer;display:block;line-height:1.25;margin:0 auto 1em 0;outline:none;position:relative}.osano-cm-expansion-panel__toggle:active,.osano-cm-expansion-panel__toggle:focus,.osano-cm-expansion-panel__toggle:hover{outline:none}[dir=rtl] .osano-cm-expansion-panel__toggle{margin:0 0 1em auto}.osano-cm-expansion-panel--expanded .osano-cm-expansion-panel__body{padding:1.25em 1.5em 1em;transition-delay:0ms,0ms,0ms,0ms;visibility:visible}.osano-cm-cookie-disclosure__title,.osano-cm-script-disclosure__title{border:0;clear:both;display:block;flex:0 1 30%;font-size:1em;font-weight:700;line-height:1.375;margin:0 0 .5em;padding:0}.osano-cm-cookie-disclosure__description,.osano-cm-script-disclosure__description{flex:0 1 70%;font-size:1em;line-height:1.375;margin:0 0 .5em;padding:0}.osano-cm-disclosure{border-bottom:none;display:block;font-size:.75em;margin:0 -1.5em 1em;padding:1.5em 1.5em 0}.osano-cm-disclosure--collapse{border-bottom:1px solid #0000001a;padding-bottom:1em}.osano-cm-disclosure--empty,.osano-cm-disclosure--empty:not([open]){border-bottom:1px solid #0000001a;padding-bottom:0}.osano-cm-disclosure__list{background-color:#0000001a;line-height:1.25;list-style:none;margin:0 -1.5em;padding:1.25em 1.5em 1em}.osano-cm-disclosure__list:empty{border:none;padding:0 1.5em}.osano-cm-disclosure__list:first-of-type{margin-top:1em;padding:1.25em 1.5em 1em}.osano-cm-disclosure__list:first-of-type:empty{padding:1.75em 1.5em .75em}.osano-cm-disclosure__list:not(:first-of-type):not(:empty){border-top:1px solid #0000001a}.osano-cm-disclosure__list:empty+.osano-cm-disclosure__list:not(:empty){border:none;padding:0 1.5em}.osano-cm-disclosure__list:not(:empty)~.osano-cm-disclosure__list:empty+.osano-cm-disclosure__list:not(:empty){border-top:1px solid #0000001a}.osano-cm-disclosure__list>.osano-cm-list-item{line-height:1.25}.osano-cm-disclosure__list>.osano-cm-list-item:not(:first-of-type){border-top:1px solid #0000001a;margin:1em -1.25em 0;padding:1em 1.25em 0}.osano-cm-disclosure__toggle{cursor:pointer;display:block;font-weight:700;line-height:1.25;margin:0 auto 0 0;outline:none;position:relative}.osano-cm-disclosure__toggle:focus,.osano-cm-disclosure__toggle:hover{text-decoration:underline}[dir=rtl] .osano-cm-disclosure__toggle{margin:0 0 0 auto}.osano-cm-disclosure--loading .osano-cm-disclosure__list{height:0;line-height:0;max-height:0}.osano-cm-disclosure--loading .osano-cm-disclosure__list>*{display:none}.osano-cm-disclosure--loading .osano-cm-disclosure__list:after{animation-duration:1s;animation-iteration-count:infinite;animation-name:osano-load-scale;animation-timing-function:ease-in-out;border-radius:100%;content:"";display:block;height:1em;position:relative;top:-.125em;transform:translateY(-50%);width:1em}.osano-cm-disclosure--collapse .osano-cm-disclosure__list{display:none}.osano-cm-disclosure--collapse .osano-cm-disclosure__list:after{content:none}.osano-cm-cookie-disclosure,.osano-cm-script-disclosure{display:flex;flex-wrap:wrap;margin:0}.osano-cm-cookie-disclosure__description:last-of-type,.osano-cm-cookie-disclosure__title:last-of-type,.osano-cm-script-disclosure__description:last-of-type,.osano-cm-script-disclosure__title:last-of-type{margin-bottom:0}@keyframes osano-load-scale{0%{transform:translateY(-50%) scale(0)}to{opacity:0;transform:translateY(-50%) scale(1)}}',i.go.isRTL?"rtl":"ltr",i.go.isRTL?"right":"left",s,l,l,l,l,l,s,Ba(l),Ba(s),u,p,p,w,p,d,d,d,d,d,p,Ba(d),Ba(p),g,g,g,Ba(g),r,n,n,a,c,c,Ba(r,.08),Ba(a,.08),g,g,Ba(g),f,m,m,v,v,h,h,Ba(f),Ba(f),Ba(f),Ba(v),Ba(v),Ba(v),Ba(f,.25),Ba(f,.25),Ba(m,.25),Ba(m,.25),Ba(v,.25),Ba(v,.25),Ba(h,.25),Ba(h,.25),y,O,b)})(n),r),q(e(),t),this}}}}},169:(e,t,r)=>{r.d(t,{R4:()=>s,T4:()=>p,_U:()=>l,f5:()=>i,ht:()=>d,jq:()=>c,k7:()=>u,nu:()=>a});var o=r(915),n="OsanoCMP_IAB-EU",a=(0,o.mq)("".concat(n,"/SET_PURPOSE_CONSENT"),(0,o.vz)("purposeId","acceptOrDeny")),i=(0,o.mq)("".concat(n,"/SET_VENDOR_CONSENT"),(0,o.vz)("vendorId","acceptOrDeny")),c=(0,o.mq)("".concat(n,"/SET_SPECIAL_FEATURE_CONSENT"),(0,o.vz)("specialFeatureId","acceptOrDeny")),s=(0,o.mq)("".concat(n,"/SET_GDPR_APPLIES"),o.Zd),l=(0,o.mq)("".concat(n,"/UPDATE_PURPOSE_LIST"),(0,o.vz)("purposeList","language")),p=(0,o.mq)("".concat(n,"/UPDATE_VENDOR_LIST_BEGIN"),o.Gm),d=(0,o.mq)("".concat(n,"/UPDATE_VENDOR_LIST_SUCCESS"),o.Zd),u=(0,o.mq)("".concat(n,"/UPDATE_VENDOR_LIST_FAILURE"),o.Zd)},218:(e,t,r)=>{r.d(t,{BC:()=>a,ER:()=>d,Jj:()=>l,VV:()=>c,ZS:()=>u,i3:()=>g,iA:()=>p,kp:()=>f,l3:()=>i,lF:()=>s,rc:()=>n});var o=r(213),n=new Set(["at","be","bg","cy","cz","de","dk","ee","es","fi","fr","gb","gp","gr","gy","hr","hu","ie","is","it","li","lt","lu","lv","mc","mf","mq","mt","nl","no","pl","pt","re","ro","se","si","sk","th","uk","yt"]),a={TC_LOADED:"tcloaded",CMP_UI_SHOWN:"cmpuishown",USER_ACTION_COMPLETE:"useractioncomplete"},i={STUB:"stub",LOADING:"loading",LOADED:"loaded",ERROR:"error"},c={VISIBLE:"visible",HIDDEN:"hidden",DISABLED:"disabled"},s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",l=new Map([["A",0],["B",1],["C",2],["D",3],["E",4],["F",5],["G",6],["H",7],["I",8],["J",9],["K",10],["L",11],["M",12],["N",13],["O",14],["P",15],["Q",16],["R",17],["S",18],["T",19],["U",20],["V",21],["W",22],["X",23],["Y",24],["Z",25],["a",26],["b",27],["c",28],["d",29],["e",30],["f",31],["g",32],["h",33],["i",34],["j",35],["k",36],["l",37],["m",38],["n",39],["o",40],["p",41],["q",42],["r",43],["s",44],["t",45],["u",46],["v",47],["w",48],["x",49],["y",50],["z",51],["0",52],["1",53],["2",54],["3",55],["4",56],["5",57],["6",58],["7",59],["8",60],["9",61],["-",62],["_",63]]),p=6,d=24,u=[1,2,3,4,5,6,7,8,9,10],g={[o.sU]:[8,10],[o.P_]:[1],[o.r$]:[2,7,9],[o.lq]:[3,4,5,6]},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return parseInt(t,10)<=2?Object.entries(g).reduce(((t,r)=>{var[n,a]=r;return a.forEach((r=>{t["".concat(r)]=e["".concat(n)]===o.eJ})),t}),{}):{}}},249:(e,t,r)=>{r.d(t,{G3:()=>f,GM:()=>h,Lv:()=>y,NX:()=>E,Ue:()=>j,_R:()=>w,ao:()=>b,b4:()=>d,bh:()=>i,bj:()=>u,dH:()=>v,dh:()=>s,do:()=>l,fi:()=>O,hf:()=>P,jE:()=>g,jp:()=>x,lr:()=>_,m6:()=>p,wY:()=>S,x4:()=>m,yl:()=>k});var o=r(218),n=r(544),a=r(375),i=e=>(0,a.U2)(e,"iab.eu",{}),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return(0,a.U2)(i(e),["v".concat(parseInt(t,10))],{})},s=e=>{return!!(0,a.U2)(i(e),"gdprApplies",(t=(0,n.so)(e),o.rc.has(t)));var t},l=(e,t)=>{var{dataString:r,tcString:o}=t;return(0,a.U2)(e,["iab",r],o)},p=e=>((0,a.U2)(i(e),"publisherCC")||(0,n.so)(e)||"US").toUpperCase(),d=()=>[...o.ZS],u=(e,t)=>(0,a.U2)(c(e,t),"purposeOptouts")||{},g=(e,t)=>{var r=(0,n.dA)(e)||(0,n.Q1)(e),a=u(e,t);return Object.entries((0,o.kp)(r,t)).reduce(((e,t)=>{var[r,o]=t;return e["".concat(r)]=o&&!a["".concat(r)],e}),{})},f=(e,t)=>{var r=g(e,t),o={},n=u(e,t);return Object.entries(r).forEach((e=>{var[t]=e;n["".concat(t)]||(o["".concat(t)]=!0)})),delete o["".concat(1)],o},m=(e,t)=>(0,a.U2)(c(e,t),"specialFeatureOptins")||{},v=(e,t)=>(0,a.U2)(c(e,t),"vendors")||{},h=(e,t)=>{var{apiVersion:r,vendorId:o}=t;return(0,a.U2)(v(e,r),"".concat(o))||{}},b=(e,t)=>Object.keys(v(e,t)).map((e=>parseInt(e,10)))||[],y=(e,t)=>(0,a.U2)(c(e,t),"vendorOptouts")||{},O=(e,t)=>{var r=v(e,t),a=y(e,t),i=(0,o.kp)((0,n.dA)(e)||(0,n.Q1)(e),t),c=u(e,t);return Object.entries(r).reduce(((e,t)=>{var[r,{purposes:o=[],legIntPurposes:n=[],flexiblePurposes:s=[],specialPurposes:l=[]}={}]=t;a["".concat(r)]||(o.every((e=>i["".concat(e)]))||n.some((e=>!c["".concat(e)]))||s.some((e=>i["".concat(e)]||!c["".concat(e)]))||l.length>0)&&(e["".concat(r)]=!a["".concat(r)]);return e}),{})},w=(e,t)=>{var r=y(e,t),o=u(e,t),n=v(e,t),a={};return Object.entries(n).forEach((e=>{var[t,{legIntPurposes:n=[]}={}]=e;r["".concat(t)]||n.some((e=>!o["".concat(e)]))&&(a["".concat(t)]=!0)})),a},j=(e,t)=>(0,a.U2)(c(e,t),"vendorListVersion",133),P=e=>({iab:{v2:{p:u(e,"2.0"),v:y(e,"2.0")},euconsent:l(e,{dataString:"euconsent"})}}),_=(e,t)=>!!l(e,{dataString:t}),k=(e,t)=>{var{apiVersion:r,specialFeatureId:o}=t;return!!m(e,r)["".concat(o)]},S=(e,t)=>{var{apiVersion:r,vendorId:o}=t;return!!y(e,r)["".concat(o)]},E=(e,t)=>{var{apiVersion:r,purposeId:o}=t;return!!u(e,r)["".concat(o)]},x=e=>s(e)&&!!(0,a.U2)(i(e),"enabled",(e=>!!(0,a.U2)(e,"config.iabEnabled"))(e))},798:(e,t,r)=>{r.d(t,{IP:()=>u,lk:()=>p,zv:()=>d});var o=r(213),n=r(800),a=r(458),i=r(934),c=r(55),s=r(507),l=Object.getOwnPropertyDescriptor(Document.prototype,"createElement")||Object.getOwnPropertyDescriptor(HTMLDocument.prototype,"createElement"),p=Object.getOwnPropertyDescriptor(o.fx.Document.prototype,"createElement")||Object.getOwnPropertyDescriptor(o.fx.HTMLDocument.prototype,"createElement"),d=function(e){var t=e.tagName.toLowerCase(),r=(0,a.US)(e),s=l.value.call(o.Av,t),p=(0,i.bh)(r);Object.entries(p).forEach((t=>{var[r,o]=t;for(var[a,i]of o)for(var[l,p]of i)n.q.value.call(s,r,a,l,...p),c.q.value.call(e,r,a,l,...p);o.clear()}));try{Object.defineProperty(s,o.HL,{configurable:!1,enumerable:!1,get:()=>r})}catch(d){}try{Object.defineProperty(e,o.lL,{configurable:!1,enumerable:!1,get:()=>s})}catch(d){}return s},u={configurable:!0,enumerable:l.enumerable,writable:!0,value:function(){for(var e=arguments.length,t=new Array(e),r=0;r{r.d(t,{ZP:()=>p,lk:()=>s,qI:()=>c});var o=r(958),n=r(458),a=r(213),i=r(745),c=Object.getOwnPropertyDescriptor(Element.prototype,"getAttribute"),s=Object.getOwnPropertyDescriptor(a.fx.Element.prototype,"getAttribute");function l(e){if(this&&this.nodeType===Node.ELEMENT_NODE){switch(this.tagName){case"SCRIPT":var t=i.Qz["".concat(e)];if("src"===e||t)return this[e];break;case"IFRAME":if(!(0,o.Jc)())break;var r=o.Qz["".concat(e)];if("src"===e||r)return this[e]}return c.value.call(this,e)}}const p={configurable:c.configurable,enumerable:c.enumerable,writable:c.writable,value(e){return l.call((0,n.M5)(this),e)}}},49:(e,t,r)=>{r.d(t,{l:()=>n});var o=r(213),n=(Object.getOwnPropertyDescriptor(Element.prototype,"hasAttribute"),Object.getOwnPropertyDescriptor(o.fx.Element.prototype,"hasAttribute"))},496:(e,t,r)=>{r.d(t,{ZP:()=>p,lk:()=>s});var o=r(958),n=r(458),a=r(213),i=r(745),c=Object.getOwnPropertyDescriptor(Element.prototype,"removeAttribute"),s=Object.getOwnPropertyDescriptor(a.fx.Element.prototype,"removeAttribute");function l(e){if(this&&this.nodeType===Node.ELEMENT_NODE){switch(this.tagName){case"SCRIPT":switch(e){case"async":case"defer":this["".concat(e)]=!1;break;case"src":this["".concat(e)]="";break;default:i.Qz["".concat(e)]&&(this["".concat(e)]="")}break;case"IFRAME":if(!(0,o.Jc)())break;if("src"===e)this["".concat(e)]="";else o.Qz["".concat(e)]&&(this["".concat(e)]="")}return c.value.call(this,e)}}const p={configurable:c.configurable,enumerable:c.enumerable,writable:c.writable,value(e){var t=(0,n.M5)(this);return t!==this&&l.call(t,e),l.call(this,e)}}},469:(e,t,r)=>{r.d(t,{ZP:()=>p,lk:()=>s,qI:()=>c});var o=r(958),n=r(458),a=r(213),i=r(745),c=Object.getOwnPropertyDescriptor(Element.prototype,"setAttribute"),s=Object.getOwnPropertyDescriptor(a.fx.Element.prototype,"setAttribute");function l(e,t){if(this&&this.nodeType===Node.ELEMENT_NODE){switch(this.tagName){case"SCRIPT":switch(e){case"async":case"defer":return this["".concat(e)]=!0,c.value.call(this,e,t);case"src":return void(this["".concat(e)]=t);case"data-osano":case"osano":throw new Error("All inline classifications must be provided in the markup");default:return i.Qz["".concat(e)]?void(this["".concat(e)]=t):c.value.call(this,e,t)}case"IFRAME":if(!(0,o.Jc)())break;switch(e){case"src":return void(this.src=t);case"data-osano":case"osano":throw new Error("All inline classifications must be provided in the markup");default:return o.Qz["".concat(e)]?void(this["".concat(e)]=t):c.value.call(this,e,t)}}return c.value.call(this,e,t)}}const p={configurable:c.configurable,enumerable:c.enumerable,writable:c.writable,value(e,t){var r=(0,n.M5)(this);return r!==this&&l.call(r,e,t),l.call(this,e,t)}}},800:(e,t,r)=>{r.d(t,{q:()=>o});var o=Object.hasOwnProperty.call(Node.prototype,"addEventListener")?Object.getOwnPropertyDescriptor(Node.prototype,"addEventListener"):Object.getOwnPropertyDescriptor(EventTarget.prototype,"addEventListener")},934:(e,t,r)=>{r.d(t,{bh:()=>g,r$:()=>b});var o=r(213),n=r(507),a=r(800),i=Object.hasOwnProperty.call(Node.prototype,"dispatchEvent")?Object.getOwnPropertyDescriptor(Node.prototype,"dispatchEvent"):Object.getOwnPropertyDescriptor(EventTarget.prototype,"dispatchEvent"),c=r(544),s=r(958),l=r(745),p=r(55),d=r(458),u=new WeakMap;function g(e){var t=u.has(e)?u.get(e):{};return u.set(e,t),t}function f(e,t){var r=g(e);return r["".concat(t)]=r["".concat(t)]||new Map}function m(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i1?t-1:0),n=1;n1?t-1:0),n=1;n{var o={configurable:a.q.configurable,enumerable:a.q.enumerable,value:function(){for(var e=arguments.length,t=new Array(e),o=0;o{r.d(t,{q:()=>o});var o=Object.hasOwnProperty.call(Node.prototype,"removeEventListener")?Object.getOwnPropertyDescriptor(Node.prototype,"removeEventListener"):Object.getOwnPropertyDescriptor(EventTarget.prototype,"removeEventListener")},54:(e,t,r)=>{r.d(t,{q:()=>o});var o=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"onerror")},585:(e,t,r)=>{r.d(t,{q:()=>o});var o=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"onload")},958:(e,t,r)=>{r.d(t,{cI:()=>y,Ge:()=>O,Qz:()=>b,Jc:()=>P,DV:()=>w,r$:()=>j});var o=r(24),n=r(458),a=r(507),i=r(435),c=r(181),s=r.n(c),l=(r(321),r(544)),p=Object.getOwnPropertyDescriptor(HTMLIFrameElement.prototype,"src");function d(e){var t=p.get.call(this);return e!==t&&n.Jk.call(this,e)!==t&&p.set.call(this,e),e}var u=(e,t)=>(r,o)=>{var{node:c,originalValue:s}=e;return s!==t&&n.Jk.call(c,s)!==n.Jk.call(c,t)||((0,l.QR)(o(),e)||(0,a.s3)(e)?(d.call(c,t),r(i.ZP.allowIFrame(e))):r(i.ZP.blockIFrame(e))),e};function g(e){return{configurable:p.configurable,enumerable:p.enumerable,get(){var t=(0,a.xe)(this,e.getState());return n.nF.call(this,t.src)},set(t){return((e,t)=>(r,o)=>{var n=(0,a.xe)({node:e,src:t,ignore:!1},o()),{async:i}=n;return i?i.then((()=>u(n,t)(r,o))):s().resolve(u(n,t)(r,o))})(this,t)(e.dispatch,e.getState),t}}}var f=r(213),m=Object.getOwnPropertyDescriptor(HTMLIFrameElement.prototype,"height");function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}var h=!1,b={height:{defaultValue:"0",descriptor:m}},y=e=>{if(h){var{node:t,src:r}=e;t[f.wf]=!0,(0,n.bm)(t,b),r&&d.call(t,r)}},O=e=>{if(h){var{node:t,ignore:r}=e;if(r)return y(e);t&&(0,n.Sd)(t,b),d.call(t,"")}},w=e=>e&&1===e.nodeType&&"IFRAME"===e.tagName,j=(e,t)=>{h=!0;try{Object.defineProperties(e.prototype,function(e){for(var t=1;t{r.d(t,{q:()=>o});var o=Object.getOwnPropertyDescriptor(Node.prototype,"appendChild")},460:(e,t,r)=>{r.d(t,{q:()=>o});var o=Object.getOwnPropertyDescriptor(Node.prototype,"insertBefore")},690:(e,t,r)=>{r.d(t,{q:()=>o});var o=Object.getOwnPropertyDescriptor(Node.prototype,"parentElement")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")},144:(e,t,r)=>{r.d(t,{l:()=>a,q:()=>n});var o=r(213),n=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"),a=Object.getOwnPropertyDescriptor(o.fx.Node.prototype,"parentNode")},714:(e,t,r)=>{r.d(t,{ZP:()=>a,qI:()=>n});var o=r(458),n=Object.getOwnPropertyDescriptor(Node.prototype,"removeChild");const a={configurable:n.configurable,enumerable:n.enumerable,value(e){return n.value.call(this,(0,o.M5)(e))},writable:n.writable}},370:(e,t,r)=>{r.d(t,{q:()=>o});var o=Object.getOwnPropertyDescriptor(Node.prototype,"replaceChild")},745:(e,t,r)=>{r.d(t,{cI:()=>A,Ge:()=>N,Qz:()=>x,DV:()=>C,r$:()=>I,iF:()=>T});var o=r(24),n=r(213),a=r(458),i=r(736),c=Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype,"type");function s(e){return!e||["text/javascript","application/javascript","module",n.OE,"application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript"].some((t=>e.split(";")[0]===t))}var l={defaultValue:n.OE,descriptor:c,shouldPrevent:s,useSetAttribute:!0},p=r(800),d=r(248),u=r(507),g=Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype,"async");function f(e){return{configurable:g.configurable,enumerable:g.enumerable,get:g.get,set(t){return g.set.call(this,t),(0,u.g6)(this,e.getState()),t}}}var m=Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype,"defer");function v(e){return{configurable:m.configurable,enumerable:m.enumerable,get:m.get,set(t){return m.set.call(this,t),(0,u.g6)(this,e.getState()),t}}}var h=r(798),b=r(321),y=r(54),O=r(585),w=r(690),j=r(714),P=r(55),_=r(370),k=r(469),S=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}var x={type:l},D=e=>{if(e.target&&e.target[n.lL]||b.qI.value.call(e.target,"type")===n.OE)return e.preventDefault(),!1},A=e=>{var{node:t,src:r,originalValue:o=r}=e;if(t){if(t[n.wf]=!0,!t[n.lL]){if(b.qI.value.call(t,"type")!==n.OE)return(0,a.bm)(t,x),o&&i.IS.call(t,o),t;var c=t?t.ownerDocument:n.Av,s=t&&(w.q?w.q.get.call(t):t.parentElement)||c.body||c.head,l=(0,h.zv)(t);O.q.set.call(l,t.onload),y.q.set.call(l,t.onerror),O.q.set.call(t,void 0),y.q.set.call(t,void 0),S.set.call(l,t.textContent);for(var p=t.attributes,u=p.length-1;u>=0;u--){var{name:g,value:f}=p[parseInt(u,10)];if("nonce"===g)f=t.nonce,k.qI.value.call(l,g,f);else x["".concat(g)]||k.qI.value.call(l,g,f)}for(var[m,v]of((0,a.bm)(l,x),Object.entries(t)))l["".concat(m)]=v;o&&i.IS.call(l,o),P.q.value.call(l,"beforescriptexecute",D);try{_.q.value.call(s,l,t)}catch(A){try{t&&s&&j.qI.value.call(s,t)}catch(A){}d.q.value.call(s,l)}(0,a.bm)(t,x);var E=b.qI.value.call(t,"src");return E&&i.IS.call(l,E),l}k.qI.value.call(t,"type",n.OE)}},N=e=>{var{node:t,ignore:r,shouldRemoveOnBlock:o}=e;if(r)return A(e);t&&((0,a.Sd)(t,x),p.q.value.call(t,"beforescriptexecute",D),o&&t.parentElement&&t.parentElement.removeChild(t))},C=e=>e&&Object.isPrototypeOf.call(HTMLScriptElement.prototype,e),T=e=>C(e)&&s(b.qI.value.call(e,"type")),I=(e,t)=>{try{Object.defineProperties(e.prototype,function(e){for(var t=1;t{r.d(t,{IS:()=>f,Yn:()=>g,ZP:()=>v});var o=r(458),n=r(507),a=r(435),i=r(181),c=r.n(i),s=r(321),l=r(544),p=r(213),d=r(469),u=Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype,"src");Object.getOwnPropertyDescriptor(p.fx.HTMLScriptElement.prototype,"src");function g(){if("string"==typeof s.lk.value.call(this,"src")){var e=u.get.call(this);if(e)return o.nF.call(this,e)}return""}function f(e){return u.set.call(this,e),d.lk.value.call(this,"src",e),e}var m=(e,t)=>(r,i)=>{var{node:c,originalValue:s}=e;return s!==t&&o.Jk.call(c,s)!==o.Jk.call(c,t)||r((0,l.QR)(i(),e)||(0,n.s3)(e)?a.ZP.allowScript(e):a.ZP.blockScript(e)),e};function v(e){return{configurable:u.configurable,enumerable:u.enumerable,get(){var t=(0,n.mj)(this,e.getState());return void 0===t?u.get.call(this):o.nF.call(this,t.src)},set(t){return((e,t)=>(r,o)=>{var a=(0,n.mj)({node:e,src:t,ignore:!1},o());if(void 0===a)return c().resolve(a);var{async:i}=a;return i?i.then((()=>m(a,t)(r,o))):c().resolve(m(a,t)(r,o))})(this,t)(e.dispatch,e.getState),t}}}},458:(e,t,r)=>{r.d(t,{C4:()=>f,Jk:()=>j,Ls:()=>O,M5:()=>u,Sd:()=>y,US:()=>g,UW:()=>w,VP:()=>m,bm:()=>b,nF:()=>P,o5:()=>_});var o=r(213),n=r(507),a=r(406),i=r(926),c=r(49),s=r(544),l=r(144),p=r(496),d=r(469);function u(e){var t;try{t=l.l.get.call(e)}catch(r){}return e&&!t&&e[o.lL]||e}function g(e){return e&&e[o.HL]||e}function f(e){return{configurable:e.configurable,enumerable:e.enumerable,value:function(){for(var t=arguments.length,r=new Array(t),o=0;o1&&(r[1]=u(r[1]));var a=e.value.apply(this,r);return(0,n.Wy)(a),a},writable:e.writable}}function m(e,t){if(void 0!==e){var r=!e.value,o=r&&!e.set,n={configurable:e.configurable,enumerable:e.enumerable};return r?(n.get=function(){return e.get.call(u(this))},o||(n.set=function(r){var o=u(this);return t&&o!==this&&e.set.call(this,r),e.set.call(o,r)})):(n.writable=e.writable,n.value=function(){for(var r=u(this),o=arguments.length,n=new Array(o),a=0;ae),shouldPrevent:p=(()=>!0)}=r,d=v.has(e)?v.get(e):{},u=p(n),g=!1;return void 0!==d["".concat(t)]||a||(g=(n=l(s.get.call(e)))===o.OE||!c.l.value.call(e,t)),u&&void 0!==n&&(d["".concat(t)]=[n,s,g],v.set(e,d)),u?i:n}function b(e,t){var{node:r}=(0,n.iZ)(e)||{node:e},o=v.get(r)||{};e&&Object.entries(t||{}).forEach((t=>{var[r,n]=t,{descriptor:a}=n,[i,c,s]=o["".concat(r)]||[];if(void 0!==i)if(s)p.lk.value.call(e,r);else try{a.set.call(e,i)}catch(l){d.lk.value.call(e,r,i)}})),e===r&&v.delete(r)}function y(e,t){Object.entries(t||{}).forEach((t=>{var[r,o]=t,{descriptor:n}=o,a=h(e,r,o);if(e)try{n.set.call(e,a)}catch(i){d.lk.value.call(e,r,a)}}))}function O(e,t){var{getState:r}=e;return Object.entries(t||{}).reduce(((e,t)=>{var[o,a]=t,{descriptor:i,useSetAttribute:c}=a;return e["".concat(o)]={configurable:i.configurable,enumerable:i.enumerable,get(){var e=r(),t=(0,n.iZ)(this);if(!(0,s.QR)(e,t)){var a=v.get(this);if(a&&a["".concat(o)])return a["".concat(o)][0]}return i.get.call(this)},set(e){var t=r(),l=(0,n.iZ)(this)||(0,n.OR)(this,t),p=(0,s.QR)(t,l),u=h(this,o,a,e,!0),g=p?e:u;try{i.set.call(this,g),c&&d.lk.value.call(this,o,g)}catch(f){d.lk.value.call(this,o,g)}}},e}),{})}function w(e){try{e.preventDefault()}catch(t){}try{e.stopPropagation()}catch(t){}try{e.stopImmediatePropagation()}catch(t){}return!1}function j(e){return(0,a.Z)(e,(0,i.Z)(this.ownerDocument||o.Av)).href}function P(e){return"http"===String(e).substring(0,4)||"//"===String(e).substring(0,2)?j.call(this,e):e}function _(e){return{configurable:!0,enumerable:!0,value:function(){for(var t=arguments.length,r=new Array(t),o=0;o{r.d(t,{$o:()=>p});var o=r(799),n=window,a="_".concat((new Date).getTime());var i=Object.getOwnPropertyDescriptor(window,"localStorage"),c=new o.ZP,s=function(){try{var e=window.localStorage;return e.setItem(a,"1"),e.removeItem(a),!0}catch(t){return!1}}(),l=s&&window.localStorage||c,p=()=>{try{return s&&i.get.call(n)||c}catch(e){}return l}},799:(e,t,r)=>{r.d(t,{LS:()=>i,ZP:()=>l,cl:()=>c});var o=new WeakMap,n=e=>(o.has(e)||o.set(e,{}),o.get(e));function a(e){var t=n(this);return Object.hasOwnProperty.call(t,e)?t["".concat(e)]:null}function i(e,t){n(this)["".concat(e)]=String(t)}function c(e){delete n(this)["".concat(e)]}function s(){o.has(this)&&o.set(this,{})}class l{constructor(){o.set(this,{})}getItem(e){return a.call(this,e)}setItem(e,t){return i.call(this,e,t)}removeItem(e){return c.call(this,e)}clear(){return s.call(this)}toString(){return"[object Storage]"}}},640:(e,t,r)=>{r.d(t,{Z:()=>o});const o=function(e){if("function"!=typeof e)return!1;var t={object:!0,symbol:!0},r=e("test symbol");try{e(r)}catch(o){return!1}return!!t[typeof e.iterator]&&(!!t[typeof e.toPrimitive]&&!!t[typeof e.toStringTag])}(window.Symbol)?window.Symbol:e=>"".concat(e,"_").concat(Math.round(1e4*Math.random()))},435:(e,t,r)=>{r.d(t,{V5:()=>c,ZP:()=>s});var o=r(24),n=r(915);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}var i={init:n.Zd,ready:n.Zd,readyApi:(0,n.vz)("apiName","options"),updateLocale:(0,n.vz)("language","json"),updateConfig:n.Zd,fetchDisclosuresBegin:n.Zd,fetchDisclosuresFailure:(0,n.vz)("error","category"),fetchDisclosuresSuccess:(0,n.vz)("disclosures","category"),setExtUsrData:n.Zd,setConsent:(0,n.vz)("category","acceptOrDeny","isDoNotSellView"),allowCookie:n.Zd,blockCookie:n.Zd,allowIFrame:n.Zd,blockIFrame:n.Zd,allowScript:n.Zd,blockScript:n.Zd,acceptAllConsent:n.Gm,denyAllConsent:n.Gm,saveConsent:(0,n.vz)("consentTimestamp","skipRecord"),revertConsent:n.Gm,clearConsent:n.Zd,recordConsent:(0,n.vz)("uuid","consented"),timeoutBegin:n.Gm,timeoutComplete:n.Gm,render:n.Gm,showDialog:n.Gm,hideDialog:n.Gm,showDrawer:n.Gm,hideDrawer:n.Gm,showWidget:n.Gm,hideWidget:n.Gm,showDoNotSell:n.Gm,hideDoNotSell:n.Gm,hideAll:n.Gm,goBack:n.Gm,showLegal:n.Zd,hideLegal:n.Zd,showVendorConsent:n.Zd,hideVendorConsent:n.Zd,toggleDisclosure:(0,n.vz)("category","open"),toggleExpansionPanel:(0,n.vz)("id","open")},c=(0,n.w_)([...Object.keys(i)],"OsanoCMP");const s=(0,n.Zi)(function(e){for(var t=1;t{r.d(t,{Dl:()=>f,Gm:()=>c,Zd:()=>s,Zi:()=>g,mq:()=>u,vz:()=>l,w_:()=>d});var o=r(24),n=r(375);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function i(e){for(var t=1;t{},s=e=>({payload:e}),l=function(){for(var e=arguments.length,t=new Array(e),r=0;r"string"!=typeof e)))throw new Error("Redux Utils :: 'namedParameters' arguments must be of type 'String'");return function(){for(var e=arguments.length,r=new Array(e),n=0;ni(i({},e),{},{[t]:r[parseInt(o,10)]})),i({},o))}}},p=(e,t)=>t?Object.entries(e).reduce(((e,r)=>{var[o,n]=r;return e["".concat(o)]="".concat(t,"/").concat(n),e}),{}):e,d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=e.reduce(((e,t)=>"string"==typeof t?i(i({},e),{},{["".concat((0,n.eV)(t))]:"".concat((0,n.fu)(t).toUpperCase())}):e),{});return p(r,t)},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;if(e){var r=function(){return i({type:e},t(...arguments))};return Object.defineProperty(r,"type",{get:function(){return e},configurable:!1,enumerable:!1}),r}},g=(e,t)=>Object.keys(e).reduce(((r,o)=>{var n=u(t["".concat(o)],e["".concat(o)]);return n?i(i({},r),{},{[o]:n}):r}),{}),f=(e,t)=>function(r){var{type:o,payload:n,meta:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=void 0===r?e:r,c=t["".concat(o)];return"function"!=typeof c?i:c(i,n,a)}},461:(e,t,r)=>{r.d(t,{Lq:()=>O,ZP:()=>w,E3:()=>f});var o=r(24),n=r(213),a=r(488),i=r(544),c=r(435),s=r(620),l=r(915),p=r(375);const d=function(){for(var e=arguments.length,t=Array(e),r=0;r2?r-2:0),i=2;i{var{classification:r}=t||{};if(!t||!r)return e;var o=e["".concat(r)]||[];return e["".concat(r)]=o,o.push(g({type:"cookie"},t)),e},v=e=>t=>{var r=(0,i.H$)(t);return g(g({},t),{},{consent:g(g({},t.consent),r.reduce(((r,o)=>{var a=function(e,r){switch(e){case n.Tu:return n.eJ;case n.Np:return(0,i.Q4)(t,r===n.eJ?n.Dv:n.eJ)}return r===n.eJ?n.eJ:n.Dv}(o,e);return a&&(r["".concat(o)]=a),r}),{}))})},h=(e,t)=>{var{hidden:r,view:o,direction:c}=t,s=(0,p.TS)(g({},e),{ui:{currentScreen:n.J0.Drawer,drawer:{hidden:!!r}}}),l=[...(0,i.oC)(e)],d=(0,i.eV)(e);switch(c){case a.J.POP:l.splice(l.lastIndexOf(o)+1,l.length),d=Math.max(0,l.lastIndexOf(o)-1);break;case a.J.PUSH:l.splice(d+1,l.length,o),d=l.length-1;break;case a.J.REPLACE:l.splice(0,l.length,o),d=0}return s.ui.drawer.views=l,s.ui.drawer.currentIndex=d,s},b=(e,t)=>{var r=(0,p.TS)(g({},e),t);return(0,i.ov)(r)&&(r.config.type={timer:!0,analyticsAlways:!0,categories:!1,rejectAll:!1,firstLayerUsage:!1,managePreferences:!1,canDismissDialog:!0}),(0,i.fy)(r)||(r.consent["".concat(n.sU)]=(0,i.Fd)(r)?n.eJ:n.Dv),r},y=(0,l.Dl)(f,{[c.V5.ready]:(e,t)=>g(g({},e),{},{ready:g(g({},e.ready),{},{[t]:!0})}),[c.V5.readyApi]:(e,t)=>{var{apiName:r,options:o={}}=t;return"shopify"===r?g(g({},e),{},{api:g(g({},e.api),{},{["".concat(r)]:o})}):e},[c.V5.timeoutBegin]:e=>g(g({},e),{},{timeoutRunning:!0}),[c.V5.timeoutComplete]:e=>g(g({},e),{},{timeoutRunning:!1}),[c.V5.init]:b,[c.V5.updateConfig]:(e,t)=>b(e,{config:t}),[c.V5.updateLocale]:function(e){var{language}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return language?g(g({},e),{},{config:g(g({},e.config),{},{lang:language})}):e},[c.V5.setExtUsrData]:(e,t)=>g(g({},e),{},{extUsrData:"".concat(t)||e.extUsrData}),[c.V5.showDialog]:e=>(0,p.TS)(g({},e),{ui:{currentScreen:n.J0.Dialog,dialog:{hidden:!1}}}),[c.V5.hideDialog]:e=>(0,p.TS)(g({},e),{ui:{currentScreen:n.J0.None,dialog:{hidden:!0}},timeoutRunning:!1}),[c.V5.showWidget]:e=>(0,p.TS)(g({},e),{ui:{widget:{hidden:!1}}}),[c.V5.hideWidget]:e=>(0,p.TS)(g({},e),{ui:{widget:{hidden:!0}}}),[c.V5.showDrawer]:e=>h(e,{view:a.n.CONSENT,direction:a.J.REPLACE}),[c.V5.hideDrawer]:e=>(0,p.TS)(g({},e),{ui:{currentScreen:n.J0.None,drawer:{hidden:!0}}}),[c.V5.showDoNotSell]:e=>h(e,{view:a.n.DO_NOT_SELL,direction:a.J.REPLACE}),[c.V5.hideDoNotSell]:e=>g(g({},e),{},{ui:g(g({},e.ui),{},{currentScreen:n.J0.None,drawer:{currentIndex:0,hidden:!0}})}),[c.V5.goBack]:e=>{var t,r,o,n,i=(null==e||null===(t=e.ui)||void 0===t||null===(r=t.drawer)||void 0===r?void 0:r.views)||[],c=(null==e||null===(o=e.ui)||void 0===o||null===(n=o.drawer)||void 0===n?void 0:n.currentIndex)||0;return h(e,{view:i[parseInt(c,10)]||a.n.CONSENT,direction:a.J.POP})},[c.V5.showLegal]:(e,t)=>h(e,{view:a.n.LEGAL,direction:t}),[c.V5.hideLegal]:e=>h(e,{view:a.n.LEGAL,direction:a.J.POP}),[c.V5.showVendorConsent]:(e,t)=>h(e,{view:a.n.VENDOR_CONSENT,direction:t}),[c.V5.hideVendorConsent]:e=>h(e,{view:a.n.VENDOR_CONSENT,direction:a.J.POP}),[c.V5.hideAll]:e=>(0,p.TS)(g({},e),{ui:{dialog:{hidden:!0},drawer:{hidden:!0},widget:{hidden:!0}},timeoutRunning:!1}),[c.V5.setConsent]:(e,t)=>{var{category:r,acceptOrDeny:o,isDoNotSellView:a}=t,c=(0,i.H$)(e),s=a||(0,i.sx)(e);function l(t,r,o){switch(t){case n.Tu:return n.eJ;case n.Np:return(0,i.Q4)(e,r);case n.r$:if(s){if(o&&o["".concat(n.Np)]===n.eJ)return n.Dv;if(!o&&(0,i.mr)(e,n.Np))return n.Dv}return r}return r===n.eJ?n.eJ:n.Dv}if("object"==typeof r){var{extUsrData:p,consentTimestamp:d}=r;return g(g({},e),{},{consent:g(g({},e.consent),Object.entries(r).reduce(((e,t)=>{var[o,n]=t;return c.includes(o)&&(e["".concat(o)]=l(o,n,r)),e}),{})),consentTimestamp:d>0?d:e.consentTimestamp,extUsrData:p?"".concat(p):e.extUsrData})}if("string"==typeof r){if(!c.includes(r))return e;var u=g(g({},e.consent),{},{[r]:l(r,o)});return s&&r===n.Np&&o===n.eJ&&(u["".concat(n.r$)]=n.Dv),g(g({},e),{},{consent:u})}return e},[c.V5.acceptAllConsent]:v(n.eJ),[c.V5.denyAllConsent]:v(n.Dv),[c.V5.saveConsent]:(e,t)=>{var{consentTimestamp:r=Date.now()}=t,o=(0,i.vd)(e,r),a=(0,i.Q1)(e);return(0,i.Tc)(e)&&(0,i.mr)(e,n.Np)&&(a["".concat(n.r$)]=n.Dv),g(g({},e),{},{consent:a,consentTimestamp:r,savedConsent:o?f.savedConsent:g({},a)})},[c.V5.clearConsent]:e=>g(g({},e),{},{consent:g(g({},f.consent),{},{[n.Np]:(0,i.Q4)(e,f.consent["".concat(n.Np)]),[n.sU]:(0,i.Fd)(e)?n.eJ:n.Dv}),consentTimestamp:0,savedConsent:f.savedConsent}),[c.V5.revertConsent]:e=>{var t=g({},(0,i.dA)(e)||f.consent);return(0,i.dA)(e)||(t["".concat(n.Np)]=(0,i.Q4)(e,t["".concat(n.Np)]),t["".concat(n.sU)]=(0,i.Fd)(e)?n.eJ:n.Dv),g(g({},e),{},{consent:t})},[c.V5.toggleExpansionPanel]:(e,t)=>{var{id:r,open:o}=t,n=g({},e.ui.expansionPanels),a=!n["".concat(r)];return void 0!==o&&(a=o),a?n["".concat(r)]=!0:delete n["".concat(r)],g(g({},e),{},{ui:g(g({},e.ui),{},{expansionPanels:n})})},[c.V5.toggleDisclosure]:(e,t)=>{var{category:r,open:o}=t,n=g({},e.disclosures.open),a=!n["".concat(r)];return void 0!==o&&(a=o),a?n["".concat(r)]=!0:delete n["".concat(r)],g(g({},e),{},{disclosures:g(g({},e.disclosures),{},{open:n})})},[c.V5.fetchDisclosuresBegin]:(e,t)=>g(g({},e),{},{disclosures:g(g({},e.disclosures),{},{loading:!0,fetched:[...e.disclosures.fetched,t].filter(((e,t,r)=>r.indexOf(e)===t))})}),[c.V5.fetchDisclosuresFailure]:(e,t)=>{var{category:r}=t;return g(g({},e),{},{disclosures:g(g({},e.disclosures),{},{loading:!1,fetched:e.disclosures.fetched.filter((e=>e!==r))})})},[c.V5.fetchDisclosuresSuccess]:(e,t)=>{var{disclosures:r=[]}=t,{disclosures:{results:o,fetched:n=[]}}=e,a=(0,i.CP)(e),c=[...n],s=Object.entries(r.reduce(m,g({},o))).filter((e=>{var[t]=e;return a.includes(t)&&c.push(t)})).reduce(((e,t)=>{var[r,o]=t,n={};return e["".concat(r)]=o.filter((e=>{if(!e)return!1;var{name:t,type:r="cookie"}=e,o="".concat(r,":").concat(t);return!n["".concat(o)]&&(n["".concat(o)]=!0,!0)})).sort(((e,t)=>"".concat(e.type,":").concat(e.name).localeCompare("".concat(t.type,":").concat(t.name)))),e}),{});return g(g({},e),{},{disclosures:g(g({},e.disclosures),{},{results:s,fetched:c.filter(((e,t,r)=>r.indexOf(e)===t)),loading:!1})})}});function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d.apply(null,[p.TS.apply(null,[{},f,...Object.values(e).map((e=>e()))]),y,...Object.values(e)])}const w=O()},544:(e,t,r)=>{r.d(t,{$9:()=>V,AP:()=>_,BK:()=>z,Bb:()=>Te,CP:()=>S,Cc:()=>W,E0:()=>be,EF:()=>w,Fd:()=>ne,Fl:()=>D,Fr:()=>A,GH:()=>F,GW:()=>xe,H$:()=>C,JU:()=>me,Kg:()=>te,Kx:()=>ye,L1:()=>ue,LA:()=>Z,LP:()=>ie,Lk:()=>Ie,MR:()=>b,MT:()=>G,NB:()=>E,Nf:()=>T,OA:()=>we,Ov:()=>U,Q1:()=>N,Q4:()=>k,QR:()=>je,Qc:()=>fe,S0:()=>oe,S6:()=>Le,Sl:()=>Ze,Tc:()=>le,VG:()=>Q,Wf:()=>I,Ws:()=>v,XN:()=>q,XU:()=>Y,YO:()=>H,Yj:()=>ae,Z9:()=>ge,Zu:()=>J,bE:()=>M,ct:()=>L,d7:()=>x,dA:()=>K,dk:()=>de,eV:()=>X,fM:()=>he,fy:()=>ve,g7:()=>ce,go:()=>ke,gr:()=>Se,iJ:()=>B,ks:()=>Ee,l_:()=>Pe,lm:()=>$,lz:()=>R,mr:()=>re,nt:()=>Ne,oC:()=>ee,ov:()=>P,p3:()=>pe,qg:()=>_e,rq:()=>Ae,so:()=>O,sx:()=>j,vd:()=>Oe,xj:()=>Ce,zM:()=>se});var o=r(24),n=r(213),a=r(620),i=r(406),c=r(488),s=r(375),l=r(396),p=r(461);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}var u=(0,i.Z)(a.OSANO_IFRAME_URI).hostname,g=["","debug","permissive","production"],f=[],m=[{elementModifiers:{type:"no-results"},type:"no-results"}],v=e=>!!(0,s.U2)(e,"config.gpcSupport")&&(Object.hasOwnProperty.call(Navigator.prototype,"globalPrivacyControl")||Object.hasOwnProperty.call(n.Ff.navigator,"globalPrivacyControl")),h=e=>!!(0,s.U2)(e,"config.managePreferencesEnabled"),b=e=>!!(0,s.U2)(e,"disclosures.loading"),y=e=>(0,s.U2)(e,"config.jurisdiction")||"",O=e=>"".concat(y(e)).substring(0,2)||null,w=e=>"us"===(O(e)||"").toLowerCase(),j=e=>!!(0,s.U2)(e,"iab.us.ccpaApplies",w(e)),P=e=>(0,s.U2)(e,"config.ccpaRelaxed",!1)&&w(e)&&(e=>!1===Object.values((0,s.U2)(e,"config.type",{})).reduce(((e,t)=>e||t),!1))(e),_=(e,t)=>(t&&(0,s.U2)(e,"disclosures.fetched")||[]).indexOf(t)>=0,k=(e,t)=>v(e)?n.Ff.navigator.globalPrivacyControl?n.eJ:n.Dv:t===n.eJ||!0===t?n.eJ:n.Dv,S=e=>(0,s.U2)(e,"config.categories")||p.E3.config.categories,E=e=>[n.P_,...S(e)].filter((e=>e!==n.Tu)),x=e=>S(e).filter((e=>e!==n.Tu)),D=(e,t)=>{var r=(0,s.U2)(e,"disclosures.results.".concat(t))||[];return r.length?r:b(e,t)&&!_(e,t)?f:m},A=e=>(0,s.U2)(e,"config.configId")||"",N=e=>{var t=function(e){for(var t=1;t[...S(e),n.P_,n.Np],T=e=>(0,s.U2)(e,"consentTimestamp")||0,I=e=>(0,s.U2)(e,"config.customerId")||"",L=e=>n.yR["".concat(O(e)).toLowerCase()]||y(e),Z=e=>(0,s.U2)(e,"config.cookies")||{},U=(e,t)=>{var r=(0,s.U2)(e,"config.mode")||"production",o=(0,s.U2)(e,"config.".concat(t,"Blocking"),r),n=Math.min(g.indexOf(r),g.indexOf(o));return g[parseInt(n,10)]},M=e=>(0,s.U2)(e,"config.domains")||[],V=e=>(0,s.U2)(e,"config.remoteConsent")||!1,R=e=>V(e)?(0,s.U2)(e,"extUsrData",""):"",F=e=>(0,s.U2)(e,"config.iframes")||{},$=(e,t)=>(0,s.U2)(e,"config.inline.".concat(t))||t&&S(e).find((e=>e===t.toUpperCase()))||"",H=e=>{var t=n.Av.location.hostname,r=M(e);return r.filter((e=>t.match(e))).reduce(((e,t)=>e?e.length(0,s.U2)(e,"config.mode","listener"),q=e=>Object.entries((0,s.U2)(e,"config.palette",{})).reduce(((e,t)=>{var[r,o]=t;return e["".concat(r)]=o||((0,s.U2)(p.E3,"config.palette")["".concat(r)]||"inherit"),e}),{}),J=e=>{var t=(0,s.U2)(e,"maxConsentSeconds");return Math.min(isNaN(t)?n.zv:t,n.zv)},W=e=>(0,s.U2)(e,"config.storagePolicyHref"),z=e=>Math.max(0,parseInt((0,s.U2)(e,"config.timeoutSeconds"),10))||10,G=e=>!!(0,s.U2)(e,"config.type.timer"),Q=e=>G(e)&&(e=>(0,s.U2)(e,"config.allowTimeout",!0))(e),K=e=>(0,s.U2)(e,"savedConsent",null),Y=e=>(0,s.U2)(e,"config.scripts")||{},X=e=>(0,s.U2)(e,"ui.drawer.currentIndex",0),ee=e=>(0,s.U2)(e,"ui.drawer.views",[]),te=e=>(0,s.U2)(e,"config.policyLinkText","storagePolicy"),re=(e,t)=>N(e)["".concat(t)]===n.eJ,oe=e=>(0,s.U2)(e,"amp",!1),ne=e=>!!(0,s.U2)(e,"config.type.analyticsAlways"),ae=e=>"boolean"==typeof(0,s.U2)(e,"config.codeSplitting"),ie=(e,t)=>t===n.Tu||t===n.Np&&v(e)||t===n.r$&&(j(e)||v(e))&&re(e,n.Np),ce=e=>(0,s.U2)(e,"ready.consent"),se=(e,t)=>!!(0,s.U2)(e,"disclosures.open",{})["".concat(t)],le=e=>ee(e)[X(e)]===c.n.DO_NOT_SELL,pe=(e,t)=>!!(0,s.U2)(e,"ui.expansionPanels",{})["".concat(t)],de=e=>(e=>!!(0,s.U2)(e,"ready.blocking"))(e)&&ce(e)&&(e=>!!(0,s.U2)(e,"ready.dom"))(e),ue=(e,t)=>"debug"===U(e,t)||!U(e,t),ge=e=>!(0,s.U2)(e,"ui.dialog.hidden"),fe=e=>!(0,s.U2)(e,"ui.drawer.hidden"),me=e=>!!(0,s.U2)(e,"config.visualOnly"),ve=e=>null!==(0,l.$o)().getItem(oe(e)?"".concat(n.Uf,"_").concat(A(e)):n.Uf)||!!K(e),he=e=>(0,s.U2)(e,"timeoutRunning")||!1,be=(e,t)=>{var r=(0,i.Z)(t).hostname;return r===u||M(e).filter((e=>r.match(e))).length>0},ye=e=>!!(0,s.U2)(e,"ui.widget.hidden"),Oe=(e,t)=>{var r=J(e),o=parseInt(t,10),n=isNaN(o)?0:o+1e3*r,a=Date.now(),i=(e=>{var t=~~(Date.now()/1e3),r=parseInt((0,s.U2)(e,"config.forceReconsent"),10);return isNaN(r)||r>t?0:r})(e);return n<=a||t<1e3*i},we=e=>!!(0,s.U2)(e,"config.iframeBlocking"),je=(e,t)=>{if(void 0===t)return!0;var{async:r,classification:o,entityType:a,fromOsano:i,ignore:c,node:s,src:l}=t;if(c)return!0;if(r&&r.running)return!1;if(s&&s[n.N9])return!0;if(ue(e,a))return!0;switch(a){case"cookie":var{"max-age":p,expires:d}=t;if(void 0!==p){if(parseInt(p,10)<=0)return!0}else if(void 0!==d&&new Date(d).getTime()<=Date.now())return!0;if(i)return!1;break;case"iframe":if(!we(e)||!l)return!0;if(i)return!0;break;case"script":if(i||!l)return!0}if(""===o)return!1;if(o===n.Tu)return!0;if(o===n.hl)return!1;if(!ve(e)&&o===n.sU)if(ne(e))return!0;return o===n.A1||o===n.p7?((e,t)=>"permissive"===U(e,t))(e,a):(K(e)||{})["".concat(o)]===n.eJ},Pe=e=>(0,s.U2)(e,"config.googleConsent")||!1,_e=e=>!!(0,s.U2)(e,"config.type.categories"),ke=e=>!!(0,s.U2)(e,"config.policyLinkInDrawer",!1),Se=e=>!!(0,s.U2)(e,"shouldTattle"),Ee=e=>(0,s.U2)(e,"config.type.rejectAll"),xe=e=>(0,s.U2)(e,"config.type.firstLayerUsage"),De=e=>(0,s.U2)(e,"config.type.managePreferences"),Ae=e=>(0,s.U2)(e,"config.forceManagePreferences",!1),Ne=e=>(0,s.U2)(e,"config.type.canDismissDialog"),Ce=e=>!!(0,s.U2)(e,"config.crossDomain",!1),Te=e=>!h(e)&&_e(e),Ie=e=>_e(e)?h(e):De(e)||Ae(e),Le=e=>De(e)||_e(e),Ze=e=>De(e)&&Te(e)&&!Ie(e)&&(G(e)||Le(e)||!Ae(e))},330:(e,t,r)=>{r.d(t,{Z:()=>s});var o=r(181),n=r.n(o),a=r(406),i=e=>204===e.status||"opaque"===e.type?"":e.json().then((t=>e.ok?t:n().reject(e))),c=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,a.Z)(t).href,c={method:e.toUpperCase(),headers:{Accept:"application/json","Content-Type":"application/json"},mode:"cors",redirect:"follow",referrer:"no-referrer",body:"GET"!==e?JSON.stringify(r):void 0};return"get"===e.toLowerCase()&&(o=Object.entries(r).reduce(((e,t,r)=>{var[o,n]=t;return"".concat(e).concat(0===r?"?":"&").concat(encodeURIComponent(o),"=").concat(encodeURIComponent(n))}),o)),new(n())(((e,t)=>{var r=new XMLHttpRequest,a=[],s=[],l={},p=()=>({ok:2==(r.status/100|0),statusText:r.statusText,status:r.status,url:r.responseURL,text:()=>n().resolve(r.responseText),json:()=>n().resolve(r.responseText).then(JSON.parse),blob:()=>n().resolve(new Blob([r.response])),clone:p,headers:{keys:()=>a,entries:()=>s,get:e=>l[e.toLowerCase()],has:e=>e.toLowerCase()in l}});for(var d in r.onreadystatechange=()=>{4===r.readyState&&(r.status>=200&&r.status<300?(r.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,((e,t,r)=>{a.push(t=t.toLowerCase()),s.push([t,r]),l["".concat(t)]=l["".concat(t)]?"".concat(l["".concat(t)],",").concat(r):r})),e(i(p()))):t({status:r.status,statusText:r.statusText}))},r.open(c.method||"get",o,!0),r.withCredentials="include"===c.credentials,c.headers)Object.hasOwnProperty.call(c.headers,d)&&r.setRequestHeader("".concat(d),c.headers["".concat(d)]);r.send(c.body||null)}))};const s={get:(e,t)=>c("GET",e,t),post:(e,t)=>c("POST",e,t)}},166:(e,t,r)=>{r.d(t,{Sl:()=>s,rP:()=>c,IY:()=>p});var o=r(406),n=r(926),a=Object.getOwnPropertyDescriptor(Document.prototype,"getElementsByTagName")||Object.getOwnPropertyDescriptor(HTMLDocument.prototype,"getElementsByTagName"),i=r(213),c=e=>{var t=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return e?"visible"!==t&&"hidden"!==t&&e.scrollHeight>=e.clientHeight?e:c(e.parentNode)||document.body:null},s=e=>{for(var t=a.value.call(i.Av,"script"),r=(0,o.Z)(e,(0,n.Z)(i.Av)),c=0;c{if("loading"===i.Av.readyState){var t=r=>{if(l.includes(i.Av.readyState))return i.Av.removeEventListener(r.type,t,!0),e()};i.Av.addEventListener("readystatechange",t,!0)}else e()}},406:(e,t,r)=>{r.d(t,{Z:()=>n});var o=(e,t)=>{var r=String(e).replace(/^\s+|\s+$/g,"").match(/^([^:/?#]+:)?(?:\/\/(?:([^:@/?#]*)(?::([^:@/?#]*))?@)?(([^:/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);if(!r)throw new RangeError;var n=r[1]||"",a=r[2]||"",i=r[3]||"",c=r[4]||"",s=r[5]||"",l=r[6]||"",p=r[7]||"",d=r[8]||"",u=r[9]||"";if(void 0!==t){var g=o(t),f=""===n&&""===c&&""===a;f&&""===p&&""===d&&(d=g.search),f&&"/"!==p.charAt(0)&&(p=""!==p?"".concat(""===g.host&&""===g.username||""!==g.pathname?"":"/").concat(g.pathname.slice(0,g.pathname.lastIndexOf("/")+1)).concat(p):g.pathname);var m=[];p.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^/]*/g,(function(e){"/.."===e?m.pop():m.push(e)})),p=m.join("").replace(/^\//,"/"===p.charAt(0)?"/":""),f&&(l=g.port,s=g.hostname,c=g.host,i=g.password,a=g.username),""===n&&(n=g.protocol)}var v=""!==a?"".concat(a).concat(""!==i?":".concat(i):"","@"):"",h=""!==n||""!==c?"//":"";return{origin:"".concat(n).concat(h).concat(c),href:"".concat(n).concat(h).concat(v).concat(c).concat(p).concat(d).concat(u),protocol:n,username:a,password:i,host:c,hostname:s,port:l,pathname:p,search:"?"===d?"":d,hash:"#"===u?"":u}};const n=o},826:(e,t,r)=>{var o;r.d(t,{v4:()=>u});var n=new Uint8Array(16);function a(){if(!o&&!(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(n)}const i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const c=function(e){return"string"==typeof e&&i.test(e)};for(var s=[],l=0;l<256;++l)s.push((l+256).toString(16).substr(1));const p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!c(r))throw TypeError("Stringified UUID is invalid");return r};const d=function(e,t,r){var o=(e=e||{}).random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){r=r||0;for(var n=0;n<16;++n)t[r+n]=o[n];return t}return p(o)};function u(e){var t;try{t=d(e)}catch(r){t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}return t}},926:(e,t,r)=>{function o(e){var t=e&&e.baseURI;if(e&&!t)try{var r=e.getElementsByTagName("base")[0];t=r?r.href:e.location}catch(o){t=e.location}return t}r.d(t,{Z:()=>o})},375:(e,t,r)=>{r.d(t,{TS:()=>i,U2:()=>l,eV:()=>u,fu:()=>d,t8:()=>p,yR:()=>c});var o=r(24);function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}var a=(e,t)=>{var[r,o]=t,n=e["".concat(r)],i=typeof n,c=typeof o;if(null===o)e["".concat(r)]=null;else switch(i){case"object":Array.isArray(n)?Array.isArray(o)&&(e["".concat(r)]=Object.entries(o).reduce(a,e["".concat(r)])):"object"!==c||Array.isArray(o)||(e["".concat(r)]=Object.entries(o).reduce(a,e["".concat(r)]));break;case"function":break;default:switch(c){case"function":break;case"object":Array.isArray(o)?e["".concat(r)]=[...o]:e["".concat(r)]=Object.entries(o).reduce(a,{});break;default:e["".concat(r)]=o}}return e};function i(e,t){return e===t||"object"!=typeof t?function(e){for(var t=1;te,s=e=>Array.isArray(e)?e.map((e=>String(e))).join(".").split("."):e.split(".");function l(e,t,r){var o=s(t).reduce(((e,t)=>void 0===e?e:"()"===t.slice(-2)?e["".concat(t)]():e["".concat(t)]),e);return void 0===o?r:o}function p(e,t,r){var o=s(t),n=o.length-1;o.reduce(((e,t,o)=>o>n?e:(o===n?e["".concat(t)]=r:"object"!=typeof e["".concat(t)]&&(e["".concat(t)]={}),e["".concat(t)])),e)}function d(e){return e&&e.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map((e=>e.toLowerCase())).join("_")}function u(e){return e&&e.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(((e,t)=>0===t?e.toLowerCase():"".concat(e[0].toUpperCase()).concat(e.slice(1).toLowerCase()))).join("")}},181:e=>{e.exports=window.Promise},620:e=>{e.exports={LANGUAGES:["ar","bg","ca","cs","da","de-at","de","el","en-gb","en","es-mx","es","fa","fi","fr-ca","fr","he","hi","hr","hu","id","is","it","ja","kk","ko","lt","lv","ms","nb","nl-be","nl","nn","no","pl","pt-br","pt","ro","ru","sk","sr","sv","th","tr","uk","vi","zh-hk","zh-tw","zh"],CONSENT_URI:"https://consent.api.osano.com",DISCLOSURE_URI:"https://disclosure.api.osano.com",LOCALE_URI:"https://locale.cmp.osano.com",TATTLE_URL:"https://tattle.api.osano.com",LOOKUPS_URI:"https://lookups.api.osano.com",OSANO_IFRAME_URI:"https://cmp.osano.com",OSANO_SCRIPT_URI:"https://cmp.osano.com",OSANO_DSAR_URI:"https://my.datasubject.com",OSANO_VENDORLIST_URI:"https://cmp.osano.com",OSANO_ORIGIN:"https://cmp.osano.com",CMP_VERSION:"2023.2.4"}},24:(e,t,r)=>{function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{Z:()=>o})},872:(e,t,r)=>{function o(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},a=Object.keys(e);for(o=0;o=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}r.d(t,{Z:()=>o})}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={};r.r(e),r.d(e,{consentFromOptions:()=>fe,createMiddleware:()=>ge,dataString:()=>E,formatConsentString:()=>me,initOptions:()=>C,parameters:()=>he,reducer:()=>ae});var t={};r.r(t),r.d(t,{default:()=>_e,reducer:()=>je,v2:()=>Pe});var o={};r.r(o),r.d(o,{consentFromOptions:()=>Fe,createMiddleware:()=>Be,dataString:()=>Se,formatConsentString:()=>$e,initOptions:()=>Re,parameters:()=>qe});var n={};r.r(n),r.d(n,{default:()=>Xe,reducer:()=>Ke,v1_0:()=>Ye});var a=e=>e?"1":"0",i=e=>"1"===e;const c={decode:i,encode:a};var s=(e,t)=>{var r;if("string"==typeof e&&(e=parseInt(e,10)),(r=e.toString(2)).length>t||e<0)throw new Error("".concat(e," too large to encode into ").concat(t));return r.length{if(!e)return 0;if(t!==e.length)throw new Error("invalid bit length");return parseInt(e,2)};const p={decode:l,encode:s};const d={decode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:36;if(t!==e.length)throw new Error("invalid bit length");var r=new Date;return r.setTime(100*l(e,t)),r},encode:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:36;try{t=Math.round(e.getTime()/100)}catch(o){t=e}return s(t,r)}};var u=r(24);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}var f=new WeakMap;class m{constructor(){f.set(this,{maxId:0,map:new Map})}set(e){var t=f.get(this),{map:r}=t;(Array.isArray(e)?e:[e]).map((e=>parseInt(e,10))).sort(((e,t)=>e-t)).forEach((e=>{if(e<1)throw"Only positive ids are allowed in a Vector";r.set(e,1),e>t.maxId&&(t.maxId=e)})),f.set(this,t)}unset(e){var t=f.get(this),{map:r}=t;(Array.isArray(e)?e:[e]).map((e=>parseInt(e,10))).filter((e=>this.has(e))).sort(((e,t)=>e-t)).forEach((e=>{r.delete(e),e===t.maxId&&(t.maxId=[...Array.from(r.keys())].map((e=>parseInt(e,10))).sort(((e,t)=>e-t)).pop()||0)})),f.set(this,t)}forEach(e){for(var t=1;t<=this.maxId;t++)e(this.has(t),t)}has(e){var t=f.get(this),{map:r}=t;return r.has(e)||r.has("".concat(e))}toObject(e){if(isFinite(e))return new Array(e).fill(0).reduce(((e,t,r)=>(e["".concat(r+1)]=this.has(r+1),e)),{});var t=f.get(this),{map:r}=t;return function(e){for(var t=1;tt.set(e))):"object"==typeof e?Object.entries(e).filter((e=>{var[,t]=e;return!!t})).forEach((e=>{var[r]=e;return t.set(r)})):t.set(e),t};const v={decode:(e,t)=>{if(""!==e&&e.length!==t)throw new Error("bitfield encoding length mismatch");var r=new m;r.bitLength=t;for(var o=1;o<=t;o++)i(e[o-1])&&r.set(o);return r},encode:(e,t)=>{for(var r=m.toVector(e),o="",n=1;n<=t;n++)o+=a(r.has(n));return o}};const h={decode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;if(t!==e.length||e.length%2)throw new Error("invalid bit length for language");var r=65,o=e.length/2,n=l(e.slice(0,o),o)+r,a=l(e.slice(o),o)+r;return String.fromCharCode(n)+String.fromCharCode(a)},encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12,r=e.toUpperCase(),o=65,n=r.charCodeAt(0)-o,a=r.charCodeAt(1)-o;if(n<0||n>25||a<0||a>25)throw new Error("invalid language code: ".concat(r));if(t%2==1)throw new Error("numBits must be even, ".concat(t," is not valid"));var i=s(n,t/=2),c=s(a,t);return i+c}};var b={anyBoolean:1,encodingType:1,maxId:16,numCustomPurposes:6,numEntries:12,numRestrictions:12,purposeId:6,restrictionType:2,segmentType:3,singleOrRange:1,vendorId:16},y=b.maxId+b.encodingType,O=2*b.vendorId+b.singleOrRange+b.numEntries;const w=b,j=0,P=1;const _={decode:e=>{if(!e)return new m;var t=0,r=p.decode(e.substr(t,w.maxId),w.maxId);t+=w.maxId;var o=p.decode(e.charAt(t),w.encodingType);if(t+=w.encodingType,o===P){var n=new m(P),a=p.decode(e.substr(t,w.numEntries),w.numEntries);t+=w.numEntries;for(var i=0;i{var t,r=m.toVector(e),o=[],n=[],a=p.encode(r.maxId,w.maxId),i="",s=y+r.maxId,l=y+w.numEntries;return r.forEach((function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],p=arguments.length>1?arguments[1]:void 0;if(i+=c.encode(a),(t=e.maxId>O&&l{var t=e.length,r=p.encode(t,w.numEntries);return e.forEach((e=>{var t=1===e.length;r+=c.encode(!t),r+=p.encode(e[0],w.vendorId),t||(r+=p.encode(e[1],w.vendorId))})),r})(o)):(a+=j+"",a+=i),a}};var k=r(544),S="__tcfapi",E="euconsent",x="2.0",D=[["version",6,p],["created",36,d],["lastUpdated",36,d],["cmpId",12,p],["cmpVersion",12,p],["consentScreen",6,p,"currentScreen"],["consentLanguage",12,h],["vendorListVersion",12,p,"gvlVersion"],["tcfPolicyVersion",6,p],["isServiceSpecific",1,c],["useNonStandardStacks",1,c],["specialFeatureOptins",12,v],["purposeConsents",24,v,"purpose.consents"],["purposeLegitimateInterests",24,v,"purpose.legitimateInterests"],["purposeOneTreatment",1,c],["publisherCountryCode",12,h,"publisherCC"],["vendorConsents",Number.POSITIVE_INFINITY,_,"vendor.consents"],["vendorLegitimateInterests",Number.POSITIVE_INFINITY,_,"vendor.legitimateInterests"],["numPubRestrictions",12,p]],A=(e,t)=>{var r=new Date((0,k.Nf)(t)),o=Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate());return Math.round(Math.max(0,o)/100)},N={version:parseInt(x,10),cmpId:279,cmpVersion:1,tcfPolicyVersion:parseInt(x,10),isServiceSpecific:!0,useNonStandardStacks:!0,purposeOneTreatment:!1,numPubRestrictions:0,isRangeEncoded:1,isARange:0},C={apiVersion:x,cmpId:279,cmpVersion:1,coreFieldSequence:D,dataString:E,tcString:"CPnlY4APnlY4AEXABAENCFCwAIBAAAAAAAAAAAAAAAAA.YAAAAAAAAAAA",dynamicFields:{created:A,lastUpdated:A},staticFields:N},T=r(218),I=r(213),L=r(249),Z=r(375);var U=e=>(0,Z.U2)(e,"ui.currentScreen",I.J0.None);function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function V(e){for(var t=1;tt=>{var{coreFieldSequence:r,apiVersion:o,cmpId:n,cmpVersion:a}=e,i=function(e){if(!/^[A-Za-z0-9\-_]+$/.test(e))throw new Error("Invalidly encoded Base64URL string");for(var t="",r=0;r{var[r,o,{decode:n},a]=t,s=n(isFinite(o)?i.slice(e,e+o):i.slice(e),o),l=isFinite(o)?o:s.bitLength+w.maxId+w.singleOrRange;return(0,Z.t8)(c,a||r,s instanceof m?s.toObject(s.bitLength):s),e+l}),0),c},$=e=>{var{apiVersion:t="2.0",cmpId:r,cmpVersion:o,dataString:n,dynamicFields:a={}}=e;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,{gdprApplies:c}=(0,Z.TS)((0,L.bh)(i),e),s=(0,L.m6)(i),l=U(i),p=Object.entries(a).reduce(((t,r)=>{var[o,n]=r;return t["".concat(o)]=n(e,i),t}),{});return V(V(V({},R),p),{},{eventStatus:(0,L.lr)(i,n)?T.BC.USER_ACTION_COMPLETE:T.BC.TC_LOADED,currentScreen:l,displayStatus:l===I.J0.None?T.VV.HIDDEN:T.VV.VISIBLE,cmpId:r,cmpVersion:o,gvlVersion:(0,L.Ue)(i,t),consentLanguage:I.go.locale.slice(0,2).toUpperCase(),publisherCC:s,tcfPolicyVersion:parseInt(t,10),gdprApplies:void 0!==c?c:(0,L.dh)(i),vendor:{consents:(0,L.fi)(i,t),legitimateInterests:(0,L._R)(i,t)},specialFeatureOptins:(0,L.x4)(i,t),purpose:{consents:(0,L.jE)(i,t),legitimateInterests:(0,L.G3)(i,t)}})}},H=e=>(t,r)=>{var{coreFieldSequence:o,staticFields:n}=e,a=$(e)(t,r),i=(0,L.do)(r,e).split(".");i.shift();var[c]=o.reduce(((e,t)=>{var r,[o,i]=e,[c,s,{encode:l},p]=t;Object.hasOwnProperty.call(n,c)?r=n["".concat(c)]:r=(0,Z.U2)(a,p||c);var d=l(r,s);return[o+d,i+d.length]}),["",0]),s=function(e){if(!/^[0-1]+$/.test(e))throw new Error('Invalid bitfield "'.concat(e,'"'));var t=e;e.length%T.ER&&(t+="0".repeat(T.ER-e.length%T.ER));for(var r="",o=0;ot=>{var{apiVersion:r}=e;if(2!==parseInt(r,10))throw new Error("Unsupported version");return V(V({},$(e)(void 0,t)),{},{tcString:H(e)(void 0,t)})},q=r(169);function J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function W(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"en",t=language.slice(0,2),{purposes:r,specialPurposes:o,features:n,specialFeatures:a,stacks:i}=e||{};I.go.override({iab:{v2:{purposes:r,specialPurposes:o,features:n,specialFeatures:a,stacks:i}}},t)},oe=(e,t)=>{var{iab:r={}}=t||{},{v2:{vendorListVersion:o=(0,L.Ue)(e),purposes:n=(0,L.b4)(e),vendors:a=(0,L.dH)(e)}={}}=r,i=(0,Z.TS)(ee({},e),{iab:{eu:{v2:{vendorListVersion:o,vendor:{consents:{}}}}}});return i.iab.eu.v2.vendors=a,(0,k.fy)(e)||(i.iab.eu.v2.purposeOptouts=n.reduce(((e,t)=>(e["".concat(t)]=!1,e)),{}),i.iab.eu.v2.vendorOptouts=Object.keys(a).reduce(((e,t)=>(e["".concat(t)]=!1,e)),{})),i},ne=(0,Y.Dl)(te,{[K.V5.init]:oe,[K.V5.updateConfig]:(e,t)=>oe(e,{config:t}),[K.V5.setConsent]:(e,t)=>{var{category:r}=t;if("object"==typeof r){var{iab:{v2:{p:o={},v:n={}}={},[E]:a}={}}=r,i=(0,Z.TS)(ee({},e),{iab:{eu:{v2:{purposeOptouts:o,vendorOptouts:n}}}});if(a&&"string"==typeof a){var{specialFeatureOptins:c={}}=F(C)(a);i.iab.eu.v2.specialFeatureOptins=c}return i}return e},[q.jq.type]:(e,t)=>{var{specialFeatureId:r,acceptOrDeny:o}=t,n=ee({},(0,L.x4)(e));o===I.eJ?n["".concat(r)]=!0:delete n["".concat(r)];var a=(0,Z.TS)(ee({},e),{iab:{eu:{v2:{specialFeatureOptins:{}}}}});return a.iab.eu.v2.specialFeatureOptins=n,a},[q.nu.type]:(e,t)=>{var{purposeId:r,acceptOrDeny:o}=t,n=ee({},(0,L.bj)(e));o===I.eJ?n["".concat(r)]=!0:delete n["".concat(r)];var a=(0,Z.TS)(ee({},e),{iab:{eu:{v2:{purposeOptouts:{}}}}});return a.iab.eu.v2.purposeOptouts=n,a},[q.f5.type]:(e,t)=>{var{vendorId:r,acceptOrDeny:o}=t,n=ee({},(0,L.Lv)(e));o===I.Dv?n["".concat(r)]=!0:delete n["".concat(r)];var a=(0,Z.TS)(ee({},e),{iab:{eu:{v2:{vendorOptouts:{}}}}});return a.iab.eu.v2.vendorOptouts=n,a},[q._U.type]:(e,t)=>{var{purposeList:r,language="en"}=t;return re(r,language),e},[q.T4.type]:e=>(0,Z.TS)(e,{iab:{eu:{v2:{vendorListError:null,vendorListLoading:!0}}}}),[q.ht.type]:(e,t)=>{var r;if(!t)return e;var{v2:o={}}=(null==e||null===(r=e.iab)||void 0===r?void 0:r.eu)||{},{vendorListVersion:n=(null==o?void 0:o.vendorListVersion),vendors:a={}}=t,i=parseInt(n,10),c=Math.max((null==o?void 0:o.vendorListVersion)||0,isNaN(i)?0:i);return re(t),(0,Z.TS)(ee({},e),{iab:{eu:{v2:{vendorListError:null,vendorListLoading:!1,vendorListLoaded:!0,vendorListVersion:c,vendors:i>c?a:{}}}}})},[q.k7.type]:function(e){var t,r,o,{statusText:n=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,Z.TS)(e,{iab:{eu:{v2:{vendorListError:n,vendorListLoading:!1,vendorListLoaded:(null==e||null===(t=e.iab)||void 0===t||null===(r=t.eu)||void 0===r||null===(o=r.v2)||void 0===o?void 0:o.vendorListLoaded)||!1}}}})}});const ae=ne;var ie=r(181),ce=r.n(ie),se=(0,Y.mq)("".concat("OsanoCMP_IAB","/SET_CONSENT_DATA"),(0,Y.vz)("dataString","value"));function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function pe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return t=>r=>o=>{var n=r(o),{type:a,payload:i}=o,c=t.getState();switch(a){case K.V5.ready:var{readyState:s}=i;if("blocking"===s)(0,L.jp)(c)&&(t.dispatch((0,q.T4)()),ce().resolve({}).then((e=>{t.dispatch((0,q.ht)(e))})).catch((e=>{t.dispatch((0,q.k7)(e))})));break;case K.V5.showDrawer:var l=de({},c);l.eventStatus=T.BC.CMP_UI_SHOWN;var p=ue(l,c);e&&e(pe(pe({},l),{},{tcString:p}));break;case K.V5.saveConsent:var d=de({},c);d.eventStatus=T.BC.USER_ACTION_COMPLETE;var u=ue(d,c);t.dispatch(se(E,u)),e&&e(pe(pe({},d),{},{tcString:u}));break;case K.V5.clearConsent:var g=de({},c);g.eventStatus=T.BC.USER_ACTION_COMPLETE;var f=ue(g,c);t.dispatch(se(E,f)),e&&e(pe(pe({},g),{},{tcString:f}))}return n}}var fe=$(C),me=H(C),ve=function(e){var t=function(t){return function(){for(var r=t.getState(),o=arguments.length,n=new Array(o),a=0;a3&&"boolean"==typeof u)return t.dispatch((0,q.R4)(u)),void d("set",!0);d(void 0,!1)}break;case"ping":var[,,g]=n;if("function"==typeof g)try{var{cmpId:f,cmpLoaded:m,cmpStatus:v,cmpVersion:h,displayStatus:b,gdprApplies:y,gvlVersion:O,tcfPolicyVersion:w}=B(W(W({},e),{},{apiVersion:s}))(r);g({apiVersion:"".concat(s),cmpId:f,cmpLoaded:m,cmpStatus:v,cmpVersion:h,displayStatus:b,gdprApplies:y,gvlVersion:O,tcfPolicyVersion:w})}catch(N){g(void 0,!1)}break;case"getTCData":var[,,j]=n;if("function"==typeof j)try{var P=B(W(W({},e),{},{apiVersion:s}))(r);j(z(P),!0)}catch(N){j(void 0,!1)}break;case"addEventListener":var[,,_]=n;if("function"==typeof _)try{var k=0,S=I.f1-Date.now();do{S-=k++}while(G["".concat(S)]);G["".concat(S)]={version:p,callback:_};var E=B(W(W({},e),{},{apiVersion:s}))(r),x=W(W({},z(E)),{},{listenerId:S});_(x,!0)}catch(N){_(void 0,!1)}break;case"removeEventListener":var[,,D,A]=n;delete G["".concat(A)],"function"==typeof D&&D(!0)}}};return t.dispatch=t=>{var{apiVersion:r}=e;return function(e,t){var r=z(t);Object.entries(G).forEach((t=>{var[o,{version:n,callback:a}]=t;parseInt(e,10)===parseInt(n,10)&&a(W(W({},r),{},{listenerId:parseInt(o,10)}),!0)}))}(r,t)},t}(C),he={api:ve,apiName:S,iframeName:"__tcfapiLocator",postMessageEventHandler:function(e){return function(t){var{data:r,source:o}=t,n="string"==typeof r,a={};try{a=n?JSON.parse(r):r}catch(u){a=r}var i="object"==typeof a&&a["".concat(e,"Call")];if(i){var{command:c,parameter:s,version:l,callId:p}=i,d=function(t,r){var a={["".concat(e,"Return")]:{returnValue:t,success:r,callId:p}};n&&(a=JSON.stringify(a)),o.postMessage(a,"*")};Q["".concat(e)](c,s||l,s?l:d,s?d:void 0)}}}(S)};function be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function ye(e){for(var t=1;t{var{config:r}=t||{},{config:{gdprApplies:o,iabEnabled:n}={}}=e,{gdprApplies:a=o,iabEnabled:i=n}=r||{};return(0,Z.TS)(ye({},e),{iab:{eu:{enabled:"string"==typeof i?"true"===i:!!i,gdprApplies:"string"==typeof a?"true"===a:!!a}}})};const je=(0,Y.Dl)(Oe,{[K.V5.init]:we,[K.V5.updateConfig]:(e,t)=>we(e,{config:t}),[q.R4.type]:(e,t)=>(0,Z.TS)(ye({},e),{iab:{eu:{gdprApplies:"string"==typeof t?"true"===t:!!t}}})});var Pe=e;const _e={v2:Pe};var ke="__uspapi",Se="usprivacy",Ee=e=>void 0===e?"-":e?"Y":"N",xe=e=>"-"===e||void 0===e?void 0:!("Y"!==(e||"N").toUpperCase()),De=e=>(0,Z.U2)(e,"iab.us",{}),Ae=e=>!!(0,Z.U2)(e,"iab.us.ccpaApplies",(0,k.EF)(e)),Ne=function(e){var{dataString:t,version:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(0,Z.U2)(e,["iab",t]);if(o)return o;var{notified:n,signatory:a,optOut:i}=De(e),c=[n,i,a];void 0!==n&&void 0!==a||(c=void 0!==n||void 0!==a?c.map((e=>!!e)):c.map((()=>{})));var s=isNaN(parseInt(r,10))?1:parseInt(r,10);return Ae(e)?"".concat(parseInt(s.toString(),10)).concat(c.map(Ee).join("")):"".concat(parseInt(s.toString(),10),"---")},Ce=function(){var{version:e=1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=>{var[r=e,o,n,a]=(t||"").split("").map(((t,r)=>0===r?isNaN(parseInt(t,10))?e:parseInt(t,10):xe(t)));return{version:r,notified:o,signatory:a,optOut:n}}},Te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t,r)=>{var{version:o,notified:n,optOut:a,signatory:i}=Ce(e)(Ne(r,e)),{version:c=o,notified:s=n,optOut:l=a,signatory:p=i}=(0,Z.TS)(De(r),t),d=[s,l,p];return void 0!==s&&void 0!==p||(d=void 0!==s||void 0!==p?d.map((e=>!!e)):d.map((()=>{}))),Ae(r)?"".concat(parseInt(c.toString(),10)).concat(d.map(Ee).join("")):"".concat(parseInt(c.toString(),10),"---")}},Ie=e=>(t,r)=>{var{version:o,notified:n,optOut:a,signatory:i}=Ce(e)(Ne(r,e)),{version:c=o,notified:s=n,optOut:l=a,signatory:p=i}=(0,Z.TS)(De(r),t);return Ae(r)?{version:c,notified:s,signatory:p,optOut:l}:{version:c}},Le=e=>t=>{var{version:r}=e;if(1!==r)throw new Error("Unsupported version");return{version:r,uspString:Te(e)(Ie(e)(void 0,t),t)}};function Ze(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Ue(e){for(var t=1;t{var{version:r}=e;return function(e,t){Object.entries(Me).forEach((r=>{var[o,{version:n,callback:a}]=r;e===n&&a(Ue(Ue({},t),{},{listenerId:o}),!0)}))}(r,t)},t}(Re);function Be(){var{dispatchEvent:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=>r=>o=>{var n=r(o),{type:a}=o,i=t.getState();switch(a){case K.V5.saveConsent:var{[I.Np]:c}=(0,k.Q1)(i),s=$e(Fe({optOut:c===I.eJ},i),i);t.dispatch(se(Se,s)),e&&e(s);break;case K.V5.clearConsent:var l=$e(Fe({optOut:I.Dv},i),i);t.dispatch(se(Se,l)),e&&e(l)}return n}}var qe={api:He,apiName:ke,iframeName:"__uspapiLocator",postMessageEventHandler:function(e){return function(t){var{data:r,source:o}=t,n="string"==typeof r,a={};try{a=n?JSON.parse(r):r}catch(u){a=r}var i="object"==typeof a&&a["".concat(e,"Call")];if(i){var{command:c,parameter:s,version:l,callId:p}=i,d=function(t,r){var a={["".concat(e,"Return")]:{returnValue:t,success:r,callId:p}};n&&(a=JSON.stringify(a)),o.postMessage(a,"*")};Ve["".concat(e)](c,s||l,s?l:d,s?d:void 0)}}}(ke)};function Je(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function We(e){for(var t=1;t{var{config:r}=t||{},{config:{jurisdiction:o}={}}=e,{jurisdiction:n=o}=r||{},{ccpaApplies:a="us"==="".concat(n||"").toLowerCase().substring(0,2)}=r||{};return(0,Z.TS)(We({},e),{iab:{us:{ccpaApplies:a}}})},Qe=(e,t)=>(0,k.Ws)(e)?!!I.Ff.navigator.globalPrivacyControl:t===I.eJ||!0===t;const Ke=(0,Y.Dl)(ze,{[K.V5.init]:Ge,[K.V5.updateConfig]:(e,t)=>Ge(e,{config:t}),[K.V5.setConsent]:(e,t)=>{var{category:r,acceptOrDeny:o}=t;return"object"==typeof r&&r["".concat(I.Np)]?(0,Z.TS)(We({},e),{iab:{us:{optOut:Qe(e,r["".concat(I.Np)])}}}):"string"==typeof r&&r===I.Np?(0,Z.TS)(We({},e),{iab:{us:{optOut:Qe(e,o)}}}):e},[K.V5.revertConsent]:e=>{var{[I.Np]:t}=(0,k.dA)(e)||{};return(0,Z.TS)(We({},e),{iab:{us:{optOut:Qe(e,t)}}})},[K.V5.acceptAllConsent]:e=>(0,Z.TS)(We({},e),{iab:{us:{optOut:Qe(e,!1)}}}),[K.V5.denyAllConsent]:e=>(0,Z.TS)(We({},e),{iab:{us:{optOut:Qe(e,!0)}}})});var Ye=o;const Xe={v1_0:Ye};var et=r(717),tt=new WeakMap;function rt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o{var[,t]=e;return!t})),tt.set(this,n),a.forEach((e=>{var[t]=e;return t.apply(void 0,r)}))}function ot(e,t,r){if("function"==typeof t){var o=tt.get(this),n=o["".concat(e)]||[];if(n.some((e=>{var[r]=e;return r===t})))return;n.push([t,!!r]),o["".concat(e)]=n,tt.set(this,o)}}function nt(e,t){var r=tt.get(this),o=r["".concat(e)]||[];r["".concat(e)]=o.filter((e=>{var[r]=e;return r!==t})),tt.set(this,r)}var at=new class{constructor(){tt.set(this,{})}emit(){for(var e=arguments.length,t=new Array(e),r=0;rr=>o=>{var n=e.getState(),a=(0,k.Q1)(n),i=null!==(0,k.dA)(n),c=(0,k.dA)(n)||{},s=r(o),l=e.getState(),p=(0,k.H$)(l),{type:d,payload:u}=o;switch(d){case K.V5.ready:switch("blocking"===u&&t(I.FP.BLOCKING),u){case"blocking":case"consent":case"dom":if((0,k.dk)(l)){var g=(0,k.dA)(l);t(I.FP.INIT,g||void 0)}}break;case K.V5.updateLocale:var{json:f}=u;t(I.FP.LOCALE_UPDATED,f);break;case K.V5.setConsent:var{category:m,acceptOrDeny:v}=u;if(m&&"object"==typeof m){var h=Object.entries(m).reduce(((e,t)=>{var[r,o]=t;return p.includes(r)&&o!==a["".concat(r)]&&(e["".concat(r)]=o),e}),{});!v&&Object.keys(h).length&&t(I.FP.CONSENT_CHANGED,h)}else"string"==typeof m&&p.includes(m)&&t(I.FP.CONSENT_CHANGED,{[m]:v===I.eJ?I.eJ:I.Dv});break;case K.V5.saveConsent:var b=(0,k.dA)(l);b&&(t(I.FP.CONSENT_SAVED,b),i||t(I.FP.NEW_CONSENT,b),[I.sU,I.r$,I.lq,I.P_].forEach((e=>{b["".concat(e)]===I.eJ&&c["".concat(e)]!==b["".concat(e)]&&t(I.FP["CONSENT_ACCEPT_".concat(e)])})),b["".concat(I.Np)]===I.eJ&&c["".concat(I.Np)]!==b["".concat(I.Np)]&&t(I.FP.CCPA_OPT_OUT));break;case K.V5.clearConsent:break;case K.V5.blockCookie:case K.V5.blockIFrame:case K.V5.blockScript:var{payload:y}=o,{entityType:O}=y;switch(O){case"cookie":t(I.FP.COOKIE_BLOCKED,y.name);break;case"iframe":t(I.FP.IFRAME_BLOCKED,y.src);break;case"script":t(I.FP.SCRIPT_BLOCKED,y.src)}break;case K.V5.hideDialog:t(I.FP.UI_CHANGED_STATE,"dialog","hide");break;case K.V5.hideDrawer:t(I.FP.UI_CHANGED_STATE,"drawer","hide");break;case K.V5.hideWidget:t(I.FP.UI_CHANGED_STATE,"widget","hide");break;case K.V5.showDialog:t(I.FP.UI_CHANGED_STATE,"dialog","show");break;case K.V5.showDrawer:t(I.FP.UI_CHANGED_STATE,"drawer","show");break;case K.V5.showWidth:t(I.FP.UI_CHANGED_STATE,"widget","show")}return s}}var ct=r(461),st=r(396);function lt(e){return function(t){var r=t.dispatch,o=t.getState;return function(t){return function(n){return"function"==typeof n?n(r,o,e):t(n)}}}}var pt=lt();pt.withExtraArgument=lt;const dt=pt;function ut(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function gt(e){for(var t=1;t{var{dataString:r,value:o}=t;return ht(ht({},e),{},{iab:ht(ht({},null==e?void 0:e.iab),{},{[r]:o})})}});var Ot=document,wt=window,jt=e=>{var t=!!wt.frames["".concat(e)];if(!t)if(Ot.body){var r=Ot.createElement("iframe");r.style.cssText="display:none",r.name=e,Ot.body.appendChild(r)}else setTimeout(jt,5,e);return!t};const Pt=e=>(t,r)=>{mt(t,"iab",yt),Object.entries(e).forEach((e=>{var[o,{reducer:n,default:locale}]=e;n&&mt(t,"iab.".concat(o),n),Object.entries(locale).forEach((e=>{var[n,{reducer:a,createMiddleware:i,parameters:c}]=e,{api:s,apiName:l,iframeName:p,postMessageEventHandler:d}=c;a&&mt(t,"iab.".concat(o,".").concat(n),a),i&&r.addMiddleware(i({dispatchEvent:s.dispatch})),wt["".concat(l)]&&"function"==typeof wt["".concat(l)]||!jt(p)||(wt["".concat(l)]=s(t),wt.addEventListener("message",d,!1))}))}))};var _t=r(620),kt=r(330),St=(e,t,r,o)=>{var n=I.go.isEmpty();o&&I.go.extend(o,t),r.onlyIfEmpty&&!n||(I.go.locale=t,e.dispatch(K.ZP.updateLocale(t,o)))};function Et(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0,n=I.go.isLocaleAvailable(t);if(!n)return ce().reject("Language unavailable");var a=I.go.isLocaleLoaded(t);if(o||a)return St(e,t,r,o),ce().resolve(t);var i=e.getState(),c=(0,k.Yj)(i)?"".concat(_t.OSANO_ORIGIN,"/").concat((0,k.Wf)(i),"/").concat((0,k.Fr)(i),"/").concat(t,".json"):"".concat(_t.LOCALE_URI,"/").concat(t,".json");return kt.Z.get(c).then((o=>(St(e,t,r,o),t)))}function xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Dt(e){for(var t=1;t{var{emitter:n,store:a}=r;n.once.apply(n,o);var i=a.getState();(0,k.g7)(i)&&(0,k.fy)(i)&&((0,k.dA)(i)["".concat(e)]===I.eJ&&n.emit.call(n,t))},Lt=e=>{var t=new Error('"userData" must be a string or number that is no longer than 128 characters'),r="".concat(e);if(r.length>128)throw t;switch(typeof e){case"string":case"number":return r;default:throw t}};var Zt=function(){for(var e={},t=window.Osano.data,r=t.length-1;r>=0;r--){var[o,...n]=Array.from(t[r]);if("userData"===o){try{e.extUsrData=Lt(n[0])}catch(a){console.error(a)}t.splice(r,1)}}return e}();class Ut{constructor(e){var{emitter:t,store:r}=e;Tt.set(this,{emitter:t,store:r,deprecation:{storage:{getConsent:()=>Dt({},(0,k.Q1)(r.getState()))}}})}setup(e){e.Osano.cm=this;var t=function(t){var[r,...o]=Array.from(t);if("string"==typeof r)if(r.startsWith("on")){var n="osano-cm-".concat(r.substring(2).replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase());e.Osano.cm.addEventListener(n,...o)}else 1===o.length?e.Osano.cm[r]=o[0]:console.error(new Error('Osano: Expected one argument for property setter "'.concat(r,'", got ').concat(o.length)));else console.error(new Error('Osano: First argument must be a "string", got "'.concat(typeof r,'"')))},r=e.Osano.data;r.push=t,r.forEach(t),r.splice(0,r.length)}on(){for(var e=arguments.length,t=new Array(e),r=0;r{e.dispatch(K.ZP.hideDoNotSell())}),400)}render(){var{store:e}=Tt.get(this);e.dispatch(K.ZP.render())}ready(e,t){var{store:r}=Tt.get(this);r.dispatch(K.ZP.readyApi(e,t))}get analytics(){var{store:e}=Tt.get(this);return(0,k.Q1)(e.getState())["".concat(I.sU)]===I.eJ}get cmpContentHash(){var{store:e}=Tt.get(this);return e.getState().cmpContentHash}get cmpVersion(){var{store:e}=Tt.get(this);return e.getState().cmpVersion}get countryCode(){var{store:e}=Tt.get(this),t=e.getState();return(0,k.ct)(t).substring(0,2)}get jurisdiction(){var{store:e}=Tt.get(this),t=e.getState();return(0,k.ct)(t)}get marketing(){var{store:e}=Tt.get(this);return(0,k.Q1)(e.getState())["".concat(I.r$)]===I.eJ}get personalization(){var{store:e}=Tt.get(this);return(0,k.Q1)(e.getState())["".concat(I.lq)]===I.eJ}get publishTimestamp(){var{store:e}=Tt.get(this);return e.getState().publishTimestamp}get optOut(){var{store:e}=Tt.get(this);return(0,k.Q1)(e.getState())["".concat(I.Np)]===I.eJ}getConsent(){var{store:e}=Tt.get(this);return Dt({},(0,k.Q1)(e.getState()))}get storage(){var{deprecation:{storage:e}}=Tt.get(this);return e}set userData(e){var{store:t}=Tt.get(this);if((0,k.$9)(t.getState())){var r=Lt(e);t.dispatch(K.ZP.setExtUsrData(r))}}get userData(){var{store:e}=Tt.get(this);return(0,k.lz)(e.getState())}}var Mt=r(445),Vt=r(958),Rt=r(745),Ft=r(507),$t=r(469),Ht={childList:!0,subtree:!0,attributes:!0,attributeFilter:["osano","data-osano"],attributeOldValue:!0},Bt=(e,t)=>r=>{var{async:o,entityType:n,node:a,ignore:i,classification:c}=r;if(a&&a.osano&&delete a.dataset.osano,!i&&!c&&o&&o.running){if(!o.listening){switch(n){case"iframe":(0,Vt.Ge)(r);break;case"script":(0,Rt.Ge)(r)}o.listening=!0,o.then((()=>Bt(e,t)(r)))}return r}if(e.shouldBlockEntity(r)){switch(n){case"iframe":t.dispatch(K.ZP.blockIFrame(r));break;case"script":t.dispatch(K.ZP.blockScript(r))}return r}if(a[I.wf])return r;switch(n){case"iframe":t.dispatch(K.ZP.allowIFrame(r));break;case"script":t.dispatch(K.ZP.allowScript(r))}return r};var qt=r(872),Jt=r(798),Wt=r(166),zt=["format","consentTimestamp","expDate"];function Gt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Qt(e){for(var t=1;t{var[t,r]=e;return Kt.style["".concat(t)]=r})),Kt.setAttribute("width",0),Kt.setAttribute("height",0),Kt.setAttribute("src",_t.OSANO_IFRAME_URI),Mt.QF&&$t.qI.value.call(Kt,"nonce",Mt.QF);var Yt=e=>Kt.parentNode?ce().resolve(e):new(ce())(((t,r)=>{var o,n;o=()=>{Kt.removeEventListener("load",n),Kt.removeEventListener("error",o),r("Unable to request remote consent")},n=()=>{Kt.removeEventListener("load",n),Kt.removeEventListener("error",o),t(e)},Kt.addEventListener("load",n),Kt.addEventListener("error",o),I.Av.body.appendChild(Kt)})),Xt=e=>(Kt.parentNode&&Kt.parentNode.removeChild(Kt),ce().resolve(e));function er(e){var{format:t,consentTimestamp:r=Date.now(),expDate:o}=e,n=(0,qt.Z)(e,zt);if("string"===t){var{consent:a,storeKey:i,configId:c,eventName:s}=n;return"".concat(i,"|").concat(c,"|").concat(s).concat(a?"|_|".concat(JSON.stringify(a)):o?"|expdate|".concat(o):"")}return JSON.stringify(Qt(Qt({},n),{},{consentTimestamp:r}))}var tr=(e,t,r,o)=>(n,a)=>{var i=n=>{var{data:c,origin:s,source:l}=n;if((0,k.E0)(a(),s)&&l===Kt.contentWindow){var{storeKey:p,eventName:d,consent:u=null,expDate:g}=function(e){switch(typeof e){case"string":try{var{storeKey:t,eventName:r,consent:o,consentTimestamp:n,expDate:a}=JSON.parse(e);return{storeKey:t,eventName:r,consent:o,consentTimestamp:n,expDate:a,format:"json"}}catch(h){if(e&&""!==e.replace(/"|'/gm,"")){var[i,c,s,l]=e.split("|"),p=parseInt(l,10),d=s;try{d=JSON.parse(s)}catch(b){}return c===I.v4?{storeKey:i,eventName:c,consent:d,expDate:isNaN(p)?0:p,format:"string"}:{storeKey:i,eventName:c,format:"string"}}}break;case"object":var{storeKey:u,eventName:g,consent:f,consentTimestamp:m,expDate:v}=e;return{storeKey:u,eventName:g,consent:f,consentTimestamp:m,expDate:v,format:"object"}}return{}}(c);if(p===I.Uf)switch(d){case I.v4:clearTimeout(o),I.Ff.removeEventListener("message",i,!1),null!==u?t(Xr(a(),u,g)):r("No value for ".concat(I.Uf,"_").concat(e));break;case I.hm:t(!0)}}};return i},rr=(e,t,r,o)=>(n,a)=>{var i,c=o&&function(e){return I.Ff.removeEventListener("message",i,!1),o(e)};return new(ce())(((o,c)=>{var s=setTimeout((()=>c(r)),I.Bo);i=tr(e,o,c,s)(n,a),I.Ff.addEventListener("message",i,!1),Kt.contentWindow.postMessage(t,"*")})).then((e=>(I.Ff.removeEventListener("message",i,!1),!c&&Xt(e),e)),c).catch((e=>{try{I.Ff.removeEventListener("message",i,!1),Xt()}catch(t){}throw e}))},or=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return(t,r)=>{if(e>=I.HB)return ce().reject("Iframe did not respond to messages.");var o=(0,k.Fr)(r()),n=er({storeKey:I.Uf,configId:o,eventName:I.eQ,format:"json"});return rr(o,n,e,(e=>or(e+1)(t,r)))(t,r)}},nr="Cross-Domain consent is not supported",ar=()=>(e,t)=>{if((0,k.xj)(t()))return new(ce())(((t,r)=>{(0,Wt.IY)((()=>Yt().then((()=>e(or()))).then((()=>e(((e,t)=>{var r=(0,k.Fr)(t()),o=er({storeKey:I.Uf,configId:r,eventName:I.sm,format:"json"});return rr(r,o,"Request for consent from root domain failed.")(e,t)})))).then(t).catch(r)))}));throw nr},ir=(e,t)=>(r,o)=>(0,k.xj)(o())?Yt().then((()=>r(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();return(r,o)=>{var n=o(),a=(0,k.Fr)(n),i=er({storeKey:I.Uf,configId:a,eventName:I.dO,consent:e,consentTimestamp:t,format:"json"});return rr(a,i,"Could not store consent on root domain.")(r,o)}}(e,t)))):ce().reject(nr),cr=()=>(e,t)=>(0,k.xj)(t())?Yt().then((()=>e(((e,t)=>{var r=(0,k.Fr)(t()),o=er({storeKey:I.Uf,configId:r,eventName:I.bI,consentTimestamp:0,expDate:0,format:"json"});return rr(r,o,"Could not clear consent from root domain.")(e,t)})))):ce().reject(nr),sr=["customerId","configId","consentedCategories","uuid"];function lr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function pr(e){for(var t=1;t{var[r,o]=t,n="";switch(r.toLowerCase()){case"max-age":case"expires":case"domain":case"httponly":case"path":o&&(n="; ".concat(r,"=").concat(o));break;case"secure":o&&(n=";secure");break;case"samesite":switch(o.toLowerCase()){case"lax":case"strict":case"none":n="; samesite=".concat(o.toLowerCase())}}return"".concat(e).concat(n)},gr=Object.getOwnPropertyDescriptor(Document.prototype,"cookie")||Object.getOwnPropertyDescriptor(HTMLDocument.prototype,"cookie"),fr=e=>{var t=gr.get.call(I.Av)||"";if(!e)return t;var r=(t=";".concat(t.replace(/; +/g,";"))).split(";".concat(e,"="));return r.length>=2?r.pop().split(";").shift():""},mr=e=>{var t=(0,Ft.FN)(e,{}),{name:r,fromOsano:o,value:n}=t,a=(0,qt.Z)(t,dr),i=Object.entries(a).reduce(ur,"".concat(r,"=").concat(n));o&&gr.set.call(I.Av,"".concat(i,"; expires=1 Jan 1970 00:00:00 GMT;")),gr.set.call(I.Av,i)},vr=r(406),hr=r(926),br=r(799);function yr(e){return 0===String(e).indexOf(I.Uf)}var Or=Object.getOwnPropertyDescriptor(Storage.prototype,"removeItem");function wr(e){return this.constructor===Storage?Or.value.call(this,e):br.cl.call(this,e)}var jr=Object.getOwnPropertyDescriptor(Storage.prototype,"setItem");function Pr(e,t){return this.constructor===Storage?jr.value.call(this,e,t):br.LS.call(this,e,t)}var _r=["value","classification","name","entityType","fromOsano"],kr=(0,st.$o)(),Sr=e=>~~((e=>~-encodeURI(JSON.stringify(e)).split(/%..|./).length)(e)/1024),Er=[],xr=["script","cookie","iframe"],Dr=e=>{var t=e;switch(e){case"script":t=I._N;break;case"cookie":t=I.ZF;break;case"iframe":t=I.mt;break;case"ignore":t=I.g6}try{return JSON.parse(kr.getItem(t))}catch(r){wr.call(kr,t)}},Ar=()=>Object.entries(Dr(I.g6)||{}).reduce(((e,t)=>{var[r,o]=t;return xr.includes(r)&&(e["".concat(r)]=o&&Array.isArray(o)?new Set(o):e["".concat(r)]),e}),{script:new Set([]),cookie:new Set([]),iframe:new Set([])}),Nr=(e,t,r)=>{var[o,n,a]=e,[i,c,s]=t||[];(o||r)&&wr.call(kr,I._N),(n||r)&&wr.call(kr,I.ZF),(a||r)&&wr.call(kr,I.mt),(t||r)&&wr.call(kr,I.g6);try{o&&!r&&Pr.call(kr,I._N,JSON.stringify(Array.from(o.values())))}catch(l){}try{n&&!r&&Pr.call(kr,I.ZF,JSON.stringify(Array.from(n.values())))}catch(l){}try{a&&!r&&Pr.call(kr,I.mt,JSON.stringify(Array.from(a.values())))}catch(l){}try{t&&!r&&Pr.call(kr,I.g6,JSON.stringify({script:i?Array.from(i.values()):[],cookie:c?Array.from(c.values()):[],iframe:s?Array.from(s.values()):[]}))}catch(p){}},Cr=e=>{var[t,r,o]=(()=>{var[e=new Set([]),t=new Set([]),r=new Set([])]=xr.map(Dr).map((e=>e&&Array.isArray(e)?new Set(e):void 0));return[e,t,r]})(),{script:n,cookie:a,iframe:i}=Ar(),c=0,s=0;e.forEach((e=>{var{storeType:l,storeKey:p}=e;switch(l){case"script":t.has(p)&&++c&&t.delete(p),!n.has(p)&&++s&&n.add(p);break;case"cookie":r.has(p)&&++c&&r.delete(p),!a.has(p)&&++s&&a.add(p);break;case"iframe":o.has(p)&&++c&&o.delete(p),!i.has(p)&&++s&&i.add(p)}})),(c||s)&&Nr(c?[t,r,o]:[],s?[n,a,i]:void 0)},Tr=e=>{var{script:t,cookie:r,iframe:o}=Ar(),n=0;e.forEach((e=>{var{storeType:a,storeKey:i}=e;switch(a){case"script":t.has(i)&&++n&&t.delete(i);break;case"cookie":r.has(i)&&++n&&r.delete(i);break;case"iframe":o.has(i)&&++n&&o.delete(i)}})),n&&Nr([],[t,r,o])},Ir=(e,t)=>{if(Array.isArray(t))return e.concat(t.reduce(Ir,[]));if("object"==typeof t){var{storeKey:r,storeType:o}=t;if(r&&o)return e.concat(t)}return e};setInterval((e=>{if(Er.length>0){for(var t=Er.splice(0);Sr(t)>224;){var r=[0,0].concat(t.splice(~~(t.length/2)));Array.prototype.splice.apply(Er,r)}var o=e?t:t.reduce(Ir,[]);return kt.Z.post("".concat(_t.TATTLE_URL,"/"),o).then((e=>(Cr(o),e))).catch((()=>{var e=[Er.length,0].concat(o);Array.prototype.splice.apply(Er,e)}))}return ce().resolve()}),3e4);var Lr=e=>{var t,{entityType:r="script",name:o,src:n,node:a}=e;switch(r){case"script":case"iframe":if("string"==typeof n&&"".concat(n).trim())try{t=(0,vr.Z)(n,(0,hr.Z)((null==a?void 0:a.ownerDocument)||I.Av)).href,t=/http(s)?:/.test(t)?n.replace(/\?.*/g,""):""}catch(i){t=n.replace(/\?.*/g,"")}t="".concat(t||"").trim();break;case"cookie":"string"==typeof o&&(t="".concat(o))}return t};class Zr{static encrypt(e,t){if(e=String(e),t=String(t),0===e.length)return"";var r=Zr.strToLongs(Zr.utf8Encode(e)),o=Zr.strToLongs(Zr.utf8Encode(t).slice(0,16)),n=Zr.encode(r,o),a=Zr.longsToStr(n);return Zr.base64Encode(a).replace(/\+/gi,"-").replace(/\//gi,"_")}static decrypt(e,t){if(e=String(e),t=String(t),0===e.length)return"";var r=e.replace(/-/gi,"+").replace(/_/gi,"/"),o=Zr.strToLongs(Zr.base64Decode(r)),n=Zr.strToLongs(Zr.utf8Encode(t).slice(0,16)),a=Zr.decode(o,n),i=Zr.longsToStr(a);return Zr.utf8Decode(i.replace(/\0+$/,""))}static encode(e,t){e.length<2&&(e[1]=0);for(var r,o,n=e.length,a=Math.floor(6+52/n),i=e[n-1],c=e[0],s=0;a>0;){a--,o=(s+=2654435769)>>>2&3;for(var l=0;l>>5^(c=e[(l+1)%n])<<2)+(c>>>3^i<<4)^(s^c)+(t[3&l^o]^i),i=e[parseInt(l,10)]+=r}return e}static decode(e,t){for(var r,o,n=e.length,a=2654435769,i=Math.floor(6+52/n),c=e[n-1],s=e[0],l=i*a;0!==l;){o=l>>>2&3;for(var p=n-1;p>=0;p--)r=((c=e[p>0?p-1:n-1])>>>5^s<<2)+(s>>>3^c<<4)^(l^s)+(t[3&p^o]^c),s=e[parseInt(p,10)]-=r;l-=a}return e}static strToLongs(e){for(var t=new Array(Math.ceil(e.length/4)),r=0;r>>8&255,e[parseInt(r,10)]>>>16&255,e[parseInt(r,10)]>>>24&255);return t}static utf8Encode(e){return unescape(encodeURIComponent(e))}static utf8Decode(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}static base64Encode(e){if("undefined"!=typeof btoa)return btoa(e);if("undefined"!=typeof Buffer)return new Buffer(e,"binary").toString("base64");throw new Error("No Base64 Encode")}static base64Decode(e){if("undefined"==typeof atob&&"undefined"==typeof Buffer)throw new Error("No base64 decode");try{if("undefined"!=typeof atob)return atob(e);if("undefined"!=typeof Buffer)return new Buffer(e,"base64").toString("binary")}catch(t){throw new Error("Invalid ciphertext ".concat(t.toString()))}}}const Ur=Zr;var Mr=r(826),Vr=window.TextEncoder,Rr=window.crypto&&window.crypto.subtle&&window.crypto.subtle.digest;function Fr(e,t,r){if(r&&Vr&&Rr){var o=(new Vr).encode("".concat(e,"/").concat(t,"/").concat(r));return window.crypto.subtle.digest("SHA-512",o).then((e=>{var t=new Uint8Array(e),r=String.fromCharCode(...Array.from(t));return btoa(r).replace(/\+/gi,"-").replace(/\//gi,"_")}))}return ce().reject()}var $r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I.Go;try{var r=Object.entries(I.Dn).reduce(((t,r)=>{var[o,n]=r;return e["".concat(o)]&&(t["".concat(n)]=I.pC[e["".concat(o)]]),t}),{});Object.keys(r).length>0&&window.gtag(I.BJ,t,r)}catch(o){}};function Hr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Br(e){for(var t=1;t{var n="https:"===document.location.protocol;Pr.call(qr,e,t),mr({name:e,value:t,"max-age":o,domain:r,secure:n,path:"/"})},Qr=(e,t)=>{var r="https:"===document.location.protocol;wr.call(qr,e),mr({name:e,value:"","max-age":-99999999,domain:t,secure:r,path:"/"}),t&&mr({name:e,value:"","max-age":-99999999,secure:r,path:"/"})},Kr=function(e,t){var r;try{r=JSON.parse(e)}catch(o){try{r=JSON.parse(Ur.decrypt(e,t))}catch(n){}}return r},Yr=function(e,t,r){var o=JSON.stringify({consent:e,consentTimestamp:t});return r?Ur.encrypt(o,r):o},Xr=function(e,t,r){var o,n=(0,k.Zu)(e),a=(0,k.YO)(e),i=e=>(t,r)=>t||((t=Kr(e,r))&&(a=r),t);if("string"==typeof t)try{o=JSON.parse(t)}catch(d){o=(0,k.bE)(e).reduce(i(t),void 0)||void 0}else o=t,a=t&&t.domain||a;var{consentTimestamp:c,consent:s=o,expDate:l=r}=o||{};if("string"==typeof s)try{s=JSON.parse(s)}catch(d){s=(0,k.bE)(e).reduce(i(s),void 0)||void 0}s&&(c=s.consentTimestamp||c,s=s.consent||s);var p=void 0===c;return p&&(c=l-1e3*I.b2),c=isNaN(c)?0:c,s&&c+1e3*n>Date.now()?{consent:s,consentTimestamp:c,domain:a,wasExpiryBased:p}:void 0},eo=e=>{var t=(0,k.lz)(e);if(t&&(0,k.$9)(e)){var r=(0,k.Wf)(e),o=(0,k.Fr)(e);return Fr(r,o,t).then((n=>((e,t,r)=>kt.Z.get("".concat(_t.LOOKUPS_URI,"/customer/").concat(e,"/config/").concat(t,"/user/").concat(r,"/consent")).catch((()=>null)))(r,o,n).then((r=>{var{consented:o,lastConsentTimestamp:n,userConsentId:a}=r;if(!o||!n)return null;var i=Date.parse(n),c=(0,k.Zu)(e);return isNaN(i)||i+1e3*cBr(Br({},e),{},{["".concat(t)]:o.includes(t)?I.eJ:I.Dv})),{})),{},{extUsrData:t}),consentTimestamp:i,uuid:a}})).catch((()=>null))))}},to=e=>{var t=e.getState(),r=(0,k.YO)(t),o=parseInt(qr.getItem("".concat(I.Uf,"_expdate")),10);return Xr(t,Kr(qr.getItem(I.Uf),r),o)};class ro{get uuid(){return Jr.get(this).uuid}get store(){var{store:e}=Jr.get(this)||{};return e}constructor(e){var t={store:e,uuid:qr.getItem("".concat(I.Uf,"_uuid"))||(0,Mr.v4)(),ignoreScriptTattles:new Set([]),ignoreIFrameTattles:new Set([]),ignoreCookieTattles:new Set([])},r=(0,k.YO)(e.getState()),o=qr.getItem(I._N)||qr.getItem("".concat(I.Uf,"_tattles"))||"[]";try{t.scriptTattles=new Set(JSON.parse(o)||[])}catch(s){Qr(I._N,r),t.scriptTattles=new Set([])}Qr("".concat(I.Uf,"_tattles"),r);var n=qr.getItem(I.ZF)||"[]";try{t.cookieTattles=new Set(JSON.parse(n)||[])}catch(s){Qr(I.ZF,r),t.cookieTattles=new Set([])}var a=qr.getItem(I.mt)||"[]";try{t.iframeTattles=new Set(JSON.parse(a)||[])}catch(s){Qr(I.mt,r),t.iframeTattles=new Set([])}var i=qr.getItem("".concat(I.g6))||"{}";try{var c=JSON.parse(i);Object.entries(i).reduce(((e,t)=>{var[r,o]=t;return["script","cookie","iframe"].includes(r)&&(e["".concat(r)]=o&&Array.isArray(o)?o:e["".concat(r)]),e}),{script:[],cookie:[],iframe:[]}),t.ignoreCookieTattles=new Set(c.cookie),t.ignoreIFrameTattles=new Set(c.iframe),t.ignoreScriptTattles=new Set(c.script)}catch(s){Qr("".concat(I.Uf,"_tattles-ignore"),r)}Jr.set(this,t)}setup(){var e=Jr.get(this)||{},{store:t}=e,r=t.getState(),o=(0,k.YO)(r),n=eo(r);return((e,t)=>{var r,{store:o}=e,n=fr().replace(/; +/g,";").split(";").reduce(((e,t)=>{var[r,...o]=t.split("=");return 0===r.indexOf(I.Uf)&&(e["".concat(r)]=e["".concat(r)]||[],e["".concat(r)].unshift(o.join("="))),e}),{}),a=n["".concat(I.Uf)],i=null===(r=n["".concat(I.Uf,"_expdate")])||void 0===r?void 0:r.map((e=>parseInt(e||0,10))),{consentTimestamp:c}=to(o)||{};if(a){var s=0,[l,p]=a.map(((e,r)=>{var o=Kr(e,t);if(!o)return-1;var{consentTimestamp:n}=o;return void 0!==n?(s++,n):i[r-s]-1e3*I.b2})).reduce(((e,t,r)=>{var[o,n]=e;return n>=t||t=0&&(Object.entries(n).forEach((e=>{var[r,n]=e;if(r!=="".concat(I.Uf,"_expdate")){var a=n[l];if(r===I.Uf){var i=Xr(o.getState(),a,p+1e3*I.b2);if(i&&i.domain===t){var{consent:c,consentTimestamp:s}=i;a=Yr(c,s,t)}else a=void 0}a&&Pr.call(qr,r.trim(),a)}})),e.uuid=qr.getItem("".concat(I.Uf,"_uuid"))||e.uuid)}})(e,o),((e,t)=>{var r;try{if(!(0,k.fy)(e.getState()))throw"Unsaved";var{consentTimestamp:o,consent:n,wasExpiryBased:a}=to(e)||{};if(void 0===n)throw"Unsaved, Expired or Malformed";Qr("".concat(I.Uf,"_expdate"),t),r=ce().resolve({consent:n,consentTimestamp:o,domain:t,setStorage:a&&o>Date.now()-1e3*I.b2})}catch(i){Qr(I.Uf,t),Qr("".concat(I.Uf,"_expdate"),t);try{r=ar()(e.dispatch,e.getState).then((r=>{var{consent:o,consentTimestamp:n}=Xr(e.getState(),r)||{};if(void 0===o)throw cr()(e.dispatch,e.getState),"Unsaved, Expired or Malformed";return{consent:o,consentTimestamp:n,domain:t,setStorage:!0}})).catch((()=>null))}catch(c){r=ce().resolve(null)}}return r})(t,o).then(((e,t,r,o)=>n=>{var a,i=null==n||null===(a=n.consent)||void 0===a?void 0:a.extUsrData,c="No valid consent found";if(!(0,k.$9)(e)){if(!n)throw c;if(i)throw r(),c;return n}var s=(0,k.lz)(e);if(!s){if(!n)throw c;if(i)throw r(),c;return n}return o.then((e=>{if(!e){if(!n)throw c;if(s!==i)throw r(),c;return n}return s!==i?Br(Br({},e),{},{skipRecord:!0,setStorage:!0}):e.consentTimestamp>((null==n?void 0:n.consentTimestamp)||-1)?Br(Br({},e),{},{domain:t,setStorage:!0,skipRecord:!0}):n}))})(r,o,(()=>{e.uuid=(0,Mr.v4)(),t.dispatch(K.ZP.clearConsent(!0))}),n)).then((e=>t=>{var{consent:r,consentTimestamp:o,domain:n,setStorage:a,skipRecord:i,uuid:c}=t,{store:s}=e;c&&(e.uuid=c),a&&Pr.call(qr,I.Uf,Yr(r,o,n)),s.dispatch(K.ZP.setConsent(r,!0)),s.dispatch(K.ZP.saveConsent(o,i)),s.dispatch(K.ZP.ready("consent"))})(e)).catch((e=>t=>{(0,k.g7)(e.getState())||((0,k.l_)(e.getState())&&$r((0,k.Q1)(e.getState()),I.jT),(0,k.MT)(e.getState())&&(e.dispatch(K.ZP.timeoutBegin()),e.dispatch(K.ZP.acceptAllConsent()),e.dispatch(K.ZP.saveConsent()))),e.dispatch(K.ZP.ready("consent"))})(t))}teardown(){}shouldTattleOnEntity(e){var{cookieTattles:t,iframeTattles:r,scriptTattles:o,store:n}=Jr.get(this),a=n.getState();if(!(0,k.gr)(a))return!1;var{classification:i,node:c,ignore:s,entityType:l,src:p,name:d}=e;return!(s||i&&i!==I.p7)&&((!c||!c[I.N9])&&(!("script"===l&&o.has(p)||"cookie"===l&&t.has(d)||"iframe"===l&&r.has(p))&&!!(0,k.Ov)(a,l)))}tattle(e){var{classification:t,entityType:r}=e,{cookieTattles:o,iframeTattles:n,scriptTattles:a,store:i}=Jr.get(this),c=i.getState(),s=(0,k.Fr)(c),l=(0,k.Wf)(c);if(zr.call(this,e)){if(this.shouldTattleOnEntity(e))switch(((e,t)=>{var{customerId:r,configId:o}=t,{entityType:n="script"}=e,a={configId:o,customerId:r,currentURI:I.Av.location.href,language:I.go.locale,storeType:n};if(a.storeKey=Lr(e),a.storeKey){if("cookie"===n){var{value:i,classification:c,name:s,entityType:l,fromOsano:p}=e,d=(0,qt.Z)(e,_r);Object.entries(d).forEach((e=>{var[t,r]=e;return a["".concat(t)]=r}))}Er.push(a)}})(e,{customerId:l,configId:s}),r){case"script":var{src:p}=e;!a.has(p)&&a.add(p);break;case"cookie":var{name:d}=e;!o.has(d)&&o.add(d);break;case"iframe":var{src:u}=e;!n.has(u)&&n.add(u)}}else switch((e=>{var{entityType:t}=e,r=Lr(e);r&&Er.reduce(((e,o,n)=>{var{storeType:a,storeKey:i}=o;return a!==t||i!==r||e.unshift(n),e}),[]).forEach((e=>Er.splice(e,1)))})(e),r){case"script":var{classification:g,src:f}=e;a.has(f)&&a.delete(f),g&&Tr([{storeKey:f,storeType:"script"}]);break;case"cookie":var{name:m}=e;o.has(m)&&o.delete(m),t&&Tr([{storeKey:m,storeType:"cookie"}]);break;case"iframe":var{src:v}=e;n.has(v)&&n.delete(v),t&&Tr([{storeKey:v,storeType:"iframe"}])}Nr([a,o,n])}shouldRecordConsent(e,t){var r=this.store.getState(),o=(0,k.Nf)(r),n=(0,k.lz)(r),a=[...(0,k.CP)(r),I.Np].reduce(((r,o)=>(r["".concat(o)]=t["".concat(o)]||e["".concat(o)],r)),{});return{consentedCategories:Object.entries(a).filter((e=>{var[,t]=e;return t===I.eJ})).map((e=>{var[t]=e;return t})),extUsrData:n,consentTimestamp:o,shouldRecord:Object.keys(a).some((r=>t["".concat(r)]!==e["".concat(r)]))||(null==e?void 0:e.consentTimestamp){})),g={}):(!(0,k.JU)(o)&&Gr(I.Uf,u,i,n),Qr("".concat(I.Uf,"_expdate"),i),this.store.dispatch(ir(u,a)).catch((()=>{})));var f=[];if(!r){var{consentedCategories:m,extUsrData:v,shouldRecord:h}=this.shouldRecordConsent(d||{},g);(h||p"")).then((e=>(e=>{var{customerId:t,configId:r,consentedCategories:o,uuid:n}=e,a=(0,qt.Z)(e,sr);return kt.Z.post("".concat(_t.CONSENT_URI,"/record"),pr(pr({},a),{},{osnoCustomerId:t,osnoConfigId:r,userConsentId:n,consented:o.join(", ")})).catch((()=>{}))})({configId:s,consentedCategories:m,customerId:c,extUsrData:e,uuid:this.uuid}))))}return l&&$r(g,I.Go),ce().all(f)}}}function oo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function no(e){for(var t=1;t{n.disconnect(),e.forEach((e=>{var{addedNodes:n=[],removedNodes:a=[],type:i,attributeName:c,target:s,oldValue:l}=e;switch(i){case"attributes":((0,Rt.DV)(s)||(0,Vt.DV)(s))&&["osano","data-osano"].includes(c)&&$t.qI.value.call(s,c,l);break;case"childList":var p;Array.from(n).forEach((e=>{if(e&&((0,Rt.iF)(e)||(0,Vt.DV)(e))){!(0,I.Zr)()||e[I.yb]||e[I.HL]||(0,Ft.gr)(e);var t=(0,Ft.iZ)(e)||(0,Ft.OR)(e,r.getState());t&&!(0,Ft.C9)(e)&&(!I.fq||(0,I.Zr)()||"script"!==t.entityType||e[I.yb]||e[I.HL]||(t.shouldRemoveOnBlock=!0),o(t))}}));var d=[...(null==t||null===(p=t.dom)||void 0===p?void 0:p.requiredNodes)||[]];Array.from(a).some((e=>d.includes(e)))&&r.dispatch(K.ZP.render())}})),n.observe(I.Av.documentElement,Ht)}}({manager:this,store:r})),n=new ro(r),a=function(e){var{manager:t,storage:r}=e;return e=>o=>n=>{var a=e.getState(),i=o(n),{type:c,payload:s}=n,l=e.getState(),p=(0,k.Q1)(l),d=c===K.V5.setExtUsrData?s:(0,k.lz)(l);switch(c){case K.V5.revertConsent:t.unblock();break;case K.V5.setExtUsrData:if(!(0,k.$9)(l)||(0,k.lz)(a)===d)break;if(d){r.setup();break}if(!(0,k.fy)(l))break;case K.V5.saveConsent:var{payload:{consentTimestamp:u=Date.now(),skipRecord:g}}=n,f=no(no(no({},p),(0,L.hf)(l)),{},{extUsrData:d});d&&(f.extUsrData=d),r.saveConsent(f,u,g),t.unblock();break;case K.V5.clearConsent:var m=n.payload;r.saveConsent({},0,m),t.unblock();break;case K.V5.allowCookie:var{payload:v}=n;t.permitCookie(v);break;case K.V5.allowIFrame:var{payload:h}=n;t.permitIFrame(h);break;case K.V5.allowScript:var{payload:b}=n;t.permitScript(b);break;case K.V5.blockCookie:var{payload:y}=n;t.preventCookie(y);break;case K.V5.blockIFrame:var{payload:O}=n;t.preventIFrame(O);break;case K.V5.blockScript:var{payload:w}=n;t.preventScript(w)}return i}}({manager:this,storage:n}),i={active:!1,cookies:new Set([]),dynamicMiddleware:t,iframes:new Set([]),scripts:new Set([]),middleware:a,documentObserver:o,store:r,storage:n};io.set(this,i)}preventCookie(e){var{cookies:t}=io.get(this);t.add(e),this.storage.tattle(e)}preventIFrame(e){(0,Vt.Ge)(e);var{iframes:t}=io.get(this);t.add(e),this.storage.tattle(e)}preventScript(e){(0,Rt.Ge)(e);var{scripts:t}=io.get(this);t.add(e),this.storage.tattle(e)}permitCookie(e){mr(e);var{cookies:t}=io.get(this);t.delete(e),this.storage.tattle(e)}permitIFrame(e){(0,Vt.cI)(e);var{iframes:t}=io.get(this);t.delete(e),this.storage.tattle(e)}permitScript(e){(0,Rt.cI)(e);var{scripts:t}=io.get(this);t.delete(e),this.storage.tattle(e)}shouldBlockEntity(e){var{store:t}=io.get(this),r=t.getState();return!(0,k.QR)(r,e)}unblock(){var{cookies:e,iframes:t,scripts:r,store:o}=io.get(this),n=Array.from(r),a=Array.from(t),i=Array.from(e);r.clear(),t.clear(),e.clear(),n.filter((e=>{var{src:t,node:r}=e,n=r?r.ownerDocument:I.Av;return!(!r||!(r.parentElement&&ao.call(n,r)||!I.Av.querySelectorAll('script[src="'.concat(t,'"]')).length))&&(!!this.shouldBlockEntity(e)||(o.dispatch(K.ZP.allowScript(e)),!1))})).forEach((e=>this.preventScript.call(this,e))),a.filter((e=>{var{node:t}=e;return!!t&&(!!this.shouldBlockEntity(e)||(o.dispatch(K.ZP.allowIFrame(e)),!1))})).forEach((e=>this.preventIFrame.call(this,e))),i.filter((e=>!!this.shouldBlockEntity(e)||(o.dispatch(K.ZP.allowCookie(e)),!1))).forEach((e=>this.preventCookie.call(this,e)))}setup(){var e=io.get(this),{documentObserver:t,dynamicMiddleware:r}=e;e.active=!0,t.observe(I.Av.documentElement,Ht),r&&r.addMiddleware(this.middleware),this.storage.setup()}teardown(){var e=io.get(this),{documentObserver:t,dynamicMiddleware:r}=e;e.active=!1,t.disconnect(),r&&r.removeMiddleware(this.middleware),this.storage.teardown()}}var so=r(458);[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach((e=>{["append","prepend"].forEach((t=>{Object.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,(0,so.o5)(t))}))}));var lo=Object.getOwnPropertyDescriptor(Document.prototype,"append"),po={configurable:lo.configurable,enumerable:lo.enumerable,value:function(){for(var e=arguments.length,t=new Array(e),r=0;re&&1===e.nodeType)).forEach((e=>{(0,Ft.Wy)(e)})),lo.value.apply(this,t)},writable:lo.writable},uo=Object.getOwnPropertyDescriptor(Document.prototype,"createElementNS")||Object.getOwnPropertyDescriptor(HTMLDocument.prototype,"createElementNS"),go={configurable:!0,enumerable:uo.enumerable,writable:!0,value:function(){for(var e=arguments.length,t=new Array(e),r=0;re&&1===e.nodeType)).forEach((e=>{(0,Ft.Wy)(e)})),fo.value.apply(this,t)},writable:fo.writable},vo=Object.getOwnPropertyDescriptor(Document.prototype,"write")||Object.getOwnPropertyDescriptor(HTMLDocument.prototype,"write"),ho=(e,t,r)=>{var o={configurable:gr.configurable,enumerable:gr.enumerable,get:()=>fr(),set:e=>((e=>(t,r)=>{var o=(0,Ft.FN)(String(e),r());return(0,k.QR)(r(),o)?(mr(o),t(K.ZP.allowCookie(o))):t(K.ZP.blockCookie(o)),ce().resolve(o)})(String(e))(r.dispatch,r.getState),e)},n={configurable:vo.configurable,enumerable:vo.enumerable,writable:vo.writable,value:function(){for(var e=arguments.length,t=new Array(e),r=0;r()=>jo.call(e,t),_o=Object.getOwnPropertyDescriptor(Element.prototype,"append"),ko={configurable:_o.configurable,enumerable:_o.enumerable,value:function(){for(var e=arguments.length,t=new Array(e),r=0;re&&1===e.nodeType)).forEach((e=>{(0,Ft.Wy)(e)})),_o.value.apply(this,t)},writable:_o.writable},So=Object.getOwnPropertyDescriptor(Element.prototype,"toggleAttribute"),Eo=(0,so.VP)(So);var xo=r(321),Do=new WeakMap,Ao=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=null===e?"":"".concat(e);"[object RegExp]"===Object.prototype.toString.call(e)&&(t=t.split(/\/(.+?)\//)[1]);try{Do.set(this,t)}catch(r){}},No={configurable:!1,enumerable:!1,get:function(){return ao.call(I.Av,this)&&(this[I.yb]||void 0!==Do.get(this)||Ao.call(this,xo.qI.value.call(this,"data-osano"))),Do.get(this)||""}},Co=Object.getOwnPropertyDescriptor(Element.prototype,"prepend"),To={configurable:Co.configurable,enumerable:Co.enumerable,value:function(){for(var e=arguments.length,t=new Array(e),r=0;re&&1===e.nodeType)).forEach((e=>{(0,Ft.Wy)(e)})),Co.value.apply(this,t)},writable:Co.writable},Io=r(496),Lo=(e,t)=>{var r={configurable:Oo.configurable,enumerable:Oo.enumerable,get(){return wo.call(this)},set(e){return Po(this,e)(t.dispatch,t.getState),e}};try{Object.defineProperties(e.prototype,{append:ko,osano:No,prepend:To,removeAttribute:Io.ZP,getAttribute:xo.ZP,setAttribute:$t.ZP}),Object.defineProperty(yo,"innerHTML",r),e.prototype.toggleAttribute&&Object.defineProperty(e.prototype,"toggleAttribute",function(e){return{configurable:So.configurable,enumerable:So.enumerable,value(t){var r=Eo.value.call(this,t);if(this&&this.nodeType===Node.ELEMENT_NODE&&"SCRIPT"===this.tagName)switch(t){case"async":case"defer":(0,Ft.mj)(this,e.getState())}return r}}}(t))}catch(o){0}},Zo=r(934),Uo=r(54),Mo=r(585),Vo=new WeakMap;function Ro(e){var t=e&&e[I.HL]||e,r=Vo.has(t)?Vo.get(t):{};return Vo.set(t,r),r}function Fo(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),n=2;n{var r={configurable:Mo.q.configurable,enumerable:Mo.q.enumerable,get:function(){return Ro(this).onload||Mo.q.get.call(this)},set:function(e){return e&&((0,Vt.DV)(this)||(0,Rt.DV)(this))?(Ro(this).onload=e,this[I.lL]&&Mo.q.set.call(this[I.lL],Fo.bind(this[I.lL],t,e)),Mo.q.set.call(this,Fo.bind(this,t,e))):Mo.q.set.call(this,e)}},o={configurable:Uo.q.configurable,enumerable:Uo.q.enumerable,get:function(){return Ro(this).onerror||Uo.q.get.call(this)},set:function(e){return e&&((0,Vt.DV)(this)||(0,Rt.DV)(this))?(Ro(this).onerror=e,this[I.lL]&&Uo.q.set.call(this[I.lL],Fo.bind(this[I.lL],t,e)),Uo.q.set.call(this,Fo.bind(this,t,e))):Uo.q.set.call(this,e)}};try{Object.defineProperties(e.prototype,{onload:r,onerror:o})}catch(n){0}},Ho=r(248),Bo=Object.getOwnPropertyDescriptor(Node.prototype,"cloneNode"),qo=r(460),Jo=Object.getOwnPropertyDescriptor(Node.prototype,"nextSibling"),Wo=r(690),zo=r(144),Go=Object.getOwnPropertyDescriptor(Node.prototype,"previousSibling"),Qo=r(714),Ko=r(370),Yo=e=>{try{Object.defineProperties(e.prototype,{appendChild:(0,so.C4)(Ho.q),cloneNode:(0,so.C4)(Bo),insertBefore:(0,so.C4)(qo.q),nextSibling:(0,so.VP)(Jo),parentElement:(0,so.VP)(Wo.q),parentNode:(0,so.VP)(zo.q),previousSibling:(0,so.VP)(Go),removeChild:Qo.ZP,replaceChild:(0,so.C4)(Ko.q)})}catch(t){0}},Xo=(e,t,r)=>{var o={setItem:{configurable:jr.configurable,enumerable:jr.enumerable,writable:jr.writable,value:function(e,t){if(this!==(0,st.$o)()||!yr(e))return Pr.call(this,e,t)}}};try{Object.defineProperties(e.prototype,o)}catch(n){0}try{Object.defineProperties(t.prototype,o)}catch(n){0}};var en=r(558);function tn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function rn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=[arguments.length>1?arguments[1]:void 0,it({dispatchEvent:function(){for(var e=arguments.length,t=new Array(e),r=0;r!!e)),o=ft&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||et.compose,n=(0,Z.TS)(gt({},ct.E3),t);(0,k.ov)(n)&&(n.config.type={timer:!0,analyticsAlways:!0,categories:!1,rejectAll:!1,firstLayerUsage:!1,managePreferences:!1,canDismissDialog:!0}),(0,k.$9)(n)||delete n.extUsrData,(0,k.fy)(n)||(n.consent["".concat(I.Np)]=(0,k.Ws)(n)?I.Ff.navigator.globalPrivacyControl?I.eJ:I.Dv:n.consent["".concat(I.Np)],n.consent["".concat(I.sU)]=(0,k.Fd)(n)?I.eJ:I.Dv);try{e=(0,et.createStore)(ct.ZP,n,o((0,et.applyMiddleware)(...r)))}catch(a){e=(0,et.createStore)(ct.ZP,{},o((0,et.applyMiddleware)(...r)))}return e.dynamicReducers={},e}((0,Z.TS)(o,rn(rn({},a),{},{extUsrData:Zt.extUsrData})),i.enhancer),s=new Ut({emitter:at,store:c});(0,k.JU)(c.getState())||function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,{Document:r,Element:o,HTMLDocument:n,HTMLElement:a,HTMLIFrameElement:i,HTMLScriptElement:c,Node:s,Storage:l}=t;try{return ho(r,n,e),Lo(o,e),(0,Zo.r$)((0,I.xp)(t),s,e),$o(a,e),(0,k.OA)(e.getState())&&(0,Vt.r$)(i,e),Yo(s),(0,Rt.r$)(c,e),Xo(l,br.ZP),!0}catch(p){}}(c);var l=new co({dynamicMiddleware:i,store:c});t&&t(c,i),l.setup(),c.dispatch(K.ZP.init(a)),c.dispatch(K.ZP.ready("blocking")),(0,k.L1)(c.getState())||(0,Wt.IY)((()=>{var e=language,t=locale;return ce().all([Promise.resolve().then(r.bind(r,316)),Et(c,e,{onlyIfEmpty:!0},t)]).then((e=>{var[{default:t}]=e,r=new t({dynamicMiddleware:i,store:c});l.dom=r,r.setup(),requestAnimationFrame((()=>requestAnimationFrame((()=>c.dispatch(K.ZP.ready("dom"))))))})).catch((e=>{0}))})),s.setup(window)}({iab:{eu:{v2:{vendors:{'13':{id:13,name:'Sovrn Holdings Inc',features:[1,2,3],purposes:[1,2,3,5,7,8,9,10],policyUrl:'https://www.sovrn.com/privacy-policy/',usesCookies:true,cookieRefresh:true,legIntPurposes:[],specialFeatures:[],specialPurposes:[1,2],flexiblePurposes:[],cookieMaxAgeSeconds:31536000,usesNonCookieAccess:true,deviceStorageDisclosureUrl:'https://www.sovrn.com/legal/tcf-disclosure/'},'28':{id:28,name:'TripleLift, Inc.',features:[],overflow:{httpGetLimit:32},purposes:[1],policyUrl:'https://triplelift.com/privacy/',usesCookies:true,cookieRefresh:true,legIntPurposes:[2,7,9,10],specialFeatures:[1],specialPurposes:[1,2],flexiblePurposes:[2,7,9,10],cookieMaxAgeSeconds:7776000,usesNonCookieAccess:true,deviceStorageDisclosureUrl:'https://triplelift.com/.well-known/deviceStorage.json'},'52':{id:52,name:'Magnite, Inc. ',features:[],overflow:{httpGetLimit:128},purposes:[1],policyUrl:'https://www.magnite.com/legal/advertising-technology-privacy-policy/',usesCookies:true,cookieRefresh:false,legIntPurposes:[2,7,10],specialFeatures:[1],specialPurposes:[1,2],flexiblePurposes:[2,7,10],cookieMaxAgeSeconds:31536000,usesNonCookieAccess:true,deviceStorageDisclosureUrl:'https://gdpr.rubiconproject.com/dvplus/devicestoragedisclosure.json'},'69':{id:69,name:'OpenX',features:[],purposes:[1],policyUrl:'https://www.openx.com/legal/privacy-policy/',usesCookies:true,cookieRefresh:true,legIntPurposes:[2,7,10],specialFeatures:[],specialPurposes:[1,2],flexiblePurposes:[2,7,10],cookieMaxAgeSeconds:31536000,usesNonCookieAccess:false,deviceStorageDisclosureUrl:'https://www.openx.com/device-storage.json'},'76':{id:76,name:'PubMatic, Inc',features:[1,2,3],purposes:[1,3,4],policyUrl:'https://pubmatic.com/legal/privacy/',usesCookies:true,cookieRefresh:false,legIntPurposes:[2,5,6,7,8,9,10],specialFeatures:[1],specialPurposes:[],flexiblePurposes:[2,3,4,5,6,7,8,9,10],cookieMaxAgeSeconds:7776000,usesNonCookieAccess:true,deviceStorageDisclosureUrl:'https://cdn.pubmatic.com/devicestorage.json'},'80':{id:80,name:'Sharethrough, Inc',features:[],purposes:[1,2],policyUrl:'https://www.sharethrough.com/privacy-center/consumer-privacy-notice',usesCookies:true,cookieRefresh:true,legIntPurposes:[7],specialFeatures:[],specialPurposes:[1,2],flexiblePurposes:[],cookieMaxAgeSeconds:2592000,usesNonCookieAccess:true,deviceStorageDisclosureUrl:'https://assets.sharethrough.com/gvl.json'},'142':{id:142,name:'Media.net Advertising FZ-LLC',features:[3],purposes:[1,3,4],policyUrl:'https://www.media.net/privacy-policy/',usesCookies:true,cookieRefresh:true,legIntPurposes:[2,5,6,7,8,9,10],specialFeatures:[],specialPurposes:[1,2],flexiblePurposes:[2,5,6,8,9],cookieMaxAgeSeconds:189216000,usesNonCookieAccess:true,deviceStorageDisclosureUrl:'https://www.media.net/tcfv2/gvl/deviceStorage.json'},'737':{id:737,name:'Monet Engine Inc',features:[],purposes:[1,2,7],policyUrl:'https://adaptmx.com/privacy-policy/',usesCookies:true,cookieRefresh:false,legIntPurposes:[],specialFeatures:[],specialPurposes:[],flexiblePurposes:[],cookieMaxAgeSeconds:31536000,usesNonCookieAccess:true,deviceStorageDisclosureUrl:'https://assets.a-mo.net/tcf/device-storage.json'},'755':{id:755,name:'Google Advertising Products',features:[1,2],purposes:[1,3,4],policyUrl:'https://policies.google.com/privacy',usesCookies:true,cookieRefresh:false,legIntPurposes:[2,5,6,7,9,10],specialFeatures:[],specialPurposes:[1,2],flexiblePurposes:[2,5,6,7,9,10],cookieMaxAgeSeconds:34190000,usesNonCookieAccess:true,deviceStorageDisclosureUrl:'https://www.gstatic.com/iabtcf/deviceStorageDisclosure.json'}}},vendors:[755,13,80,28,76,69,737,52,142]},notified:true,signatory:true,hideOptOut:false},theme:'',cookies:{app_download_modal:{expiry:'',purpose:'',provider:'Scribd Inc',classification:'ESSENTIAL'},bundle_promo_cookie:{expiry:'',purpose:'',provider:'Scribd Inc',classification:'ESSENTIAL'},'^__CJ_.*':{expiry:'',purpose:'',provider:'Scribd Inc',classification:'ESSENTIAL'},'^_dc_gtm_UA-.*':{expiry:'',purpose:'Associated with sites using Google Tag Manager to load other scripts and code into a page.',provider:'Google LLC',classification:'ESSENTIAL'},'dd_cookie_test.*':{expiry:'',purpose:'',provider:'Datadog Inc',classification:'ESSENTIAL'},'^_fbc$':{expiry:'',purpose:'Placed by Facebook to store last visit',provider:'Facebook Inc',classification:'MARKETING'},'fblo_.*':{expiry:'',purpose:'',provider:'Facebook Inc',classification:'MARKETING'},'fbm_.*':{expiry:'',purpose:'',provider:'Facebook Inc',classification:'ESSENTIAL'},'^_fbp$':{expiry:'',purpose:'Used by Facebook to deliver a series of advertisement products such as real time bidding from third party advertisers',provider:'Facebook Inc',classification:'ESSENTIAL'},'fbsr_.*':{expiry:'',purpose:'',provider:'Facebook Inc',classification:'ESSENTIAL'},'^_ga$':{expiry:'',purpose:'Associated with Google Universal Analytics to distinguish unique users by assigning a randomly generated number as a client identifier.',provider:'Google LLC',classification:'ANALYTICS'},'^_gac_.*':{expiry:'',purpose:'',provider:'Google LLC',classification:'ANALYTICS'},'_gac_UA-.*':{expiry:'',purpose:'',provider:'Google LLC',classification:'ANALYTICS'},'^_gat_.*':{expiry:'',purpose:'',provider:'Google LLC',classification:'ANALYTICS'},'^_gat$':{expiry:'',purpose:'Associated with Google Universal Analytics to throttle the request rate - limiting the collection of data on high traffic sites.',provider:'Google LLC',classification:'ANALYTICS'},'^_gat_UA-.*':{expiry:'',purpose:'Set by Google Analytics to identity the number of the account or website it relates to.',provider:'Google LLC',classification:'ANALYTICS'},G_AUTHUSER_H:{expiry:'',purpose:'',provider:'Google LLC',classification:'ESSENTIAL'},'^_gcl_.*':{expiry:'',purpose:'Stores ad click information so that conversions can be attributed outside the landing page',provider:'Google LLC',classification:'MARKETING'},'^_gcl_au$':{expiry:'',purpose:'Used by Google AdSense for experimenting with advertisement efficiency across websites using their services',provider:'Google LLC',classification:'MARKETING'},'^_gd.*':{expiry:'',purpose:'Associated with Google Analytics.',provider:'Google LLC',classification:'ANALYTICS'},'^G_ENABLED_IDPS$':{expiry:'',purpose:'No Description Available',provider:'Google LLC',classification:'ESSENTIAL'},'get_app_mobile_banner:closed':{expiry:'',purpose:'',provider:'Scribd Inc',classification:'ESSENTIAL'},'^_gid$':{expiry:'',purpose:'Associated with Google Universal Analytics to distinguish unique users by assigning a randomly generated number as a client identifier.',provider:'Google LLC',classification:'ANALYTICS'},_hjAbsoluteSessionInProgress:{expiry:'',purpose:'',provider:'Hotjar Ltd',classification:'ANALYTICS'},'^_hjCachedUserAttributes$':{expiry:'',purpose:'Stores User Attributes which are sent through the Hotjar Identify API. These attributes will only be saved if the user interacts with a Hotjar Feedback tool.',provider:'Hotjar LTD',classification:'PERSONALIZATION'},_hjCookieTest:{expiry:'',purpose:'',provider:'Hotjar Ltd',classification:'PERSONALIZATION'},_hjFirstSeen:{expiry:'',purpose:'',provider:'Hotjar LTD',classification:'ANALYTICS'},'^_hjid$':{expiry:'',purpose:'Set by Hotjar to ensure that behavior in subsequent visits to the same site will be attributed to the same user ID.',provider:'Hotjar LTD',classification:'PERSONALIZATION'},'_hjIncludedIn.*':{expiry:'',purpose:'',provider:'Hotjar LTD',classification:'ANALYTICS'},_hjSessionRejected:{expiry:'',purpose:'',provider:'Hotjar Ltd',classification:'PERSONALIZATION'},'^_hjSessionResumed$':{expiry:'',purpose:'No description available',provider:'Hotjar LTD',classification:'PERSONALIZATION'},'^_hjTLDTest$':{expiry:'',purpose:'Used to determine the most generic cookie path so that cookies can be shared across subdomains (where applicable). After this check, the cookie is removed.',provider:'Hotjar LTD',classification:'PERSONALIZATION'},_hjUserAttributesHash:{expiry:'',purpose:'',provider:'Hotjar LTD',classification:'PERSONALIZATION'},_lc2_fpi:{expiry:'',purpose:'',provider:'usatoday.com',classification:'ANALYTICS'},_li_dcdm_c:{expiry:'',purpose:'',provider:'usatoday.com',classification:'ANALYTICS'},metrika_enabled:{expiry:'',purpose:'',provider:'Yandex LLC',classification:'MARKETING'},__pdst:{expiry:'',purpose:'',provider:'Podsights',classification:'ESSENTIAL'},'^_pk_.*':{expiry:'',purpose:'Used to help website owners track visitor behaviour and measure site performance.',provider:'Matomo',classification:'ANALYTICS'},_rdt_uuid:{expiry:'',purpose:'',provider:'Reddit Inc',classification:'MARKETING'},REMOVE_FROM_LIST_REMINDER:{expiry:'',purpose:'',provider:'Scribd Inc',classification:'ESSENTIAL'},single_partner_bundling:{expiry:'',purpose:'',provider:'Scribd Inc',classification:'ESSENTIAL'},'^__ssid$':{expiry:'',purpose:'No Description Available',provider:'',classification:'MARKETING'},'tatari-.*':{expiry:'',purpose:'',provider:'Tatari, Inc',classification:'MARKETING'},'_tq_id.TV-.*':{expiry:'',purpose:'',provider:'TVSquared',classification:'MARKETING'},trust_banner_closed:{expiry:'',purpose:'',provider:'Scribd Inc',classification:'ESSENTIAL'},_uetmsclkid:{expiry:'',purpose:'',provider:'Microsoft Corporation',classification:'MARKETING'},'^_uetsid$':{expiry:'',purpose:'Used to determine what ads should be shown that may be relevant to the end user perusing the site.',provider:'Microsoft Corporation',classification:'MARKETING'},_uetvid:{expiry:'',purpose:'',provider:'Microsoft Corporation',classification:'MARKETING'},'^__utma$':{expiry:'',purpose:'One of the four main cookies set by the Google Analytics service which enables website owners to track visitor behaviour and measure site performance.',provider:'Google LLC',classification:'ANALYTICS'},'^__utmb$':{expiry:'',purpose:'One of the four main cookies set by the Google Analytics service which enables website owners to track visitor behaviour and measure site performance.',provider:'Google LLC',classification:'ANALYTICS'},'^__utmc$':{expiry:'',purpose:'One of the four main cookies set by the Google Analytics service which enables website owners to track visitor behaviour and measure site performance.',provider:'Google LLC',classification:'ANALYTICS'},'^__utmv$':{expiry:'',purpose:'Set by Google Analytics that enables website owners to track visitor behaviour and measure site performance.',provider:'Google LLC',classification:'ANALYTICS'},'^__utmz$':{expiry:'',purpose:'One of the four main cookies set by the Google Analytics service which enables website owners to track visitor behaviour and measure site performance.',provider:'Google LLC',classification:'ANALYTICS'},'^_ym_.*':{expiry:'',purpose:'',provider:'Yandex LLC',classification:'ANALYTICS'},'_ym_isad.*':{expiry:'',purpose:'',provider:'Korter',classification:'ANALYTICS'},'^_ym_mp2_,*':{expiry:'',purpose:'',provider:'Korter',classification:'MARKETING'},'^_ym_mp2_.*':{expiry:'',purpose:'',provider:'Korter',classification:'MARKETING'},'^__zlc.*':{expiry:'',purpose:'Store the Zopim Live Chat ID used to identify a device across visits.',provider:'Zendesk Inc',classification:'ESSENTIAL'},'^zte2095$':{expiry:'',purpose:'Used to enhance the performance and functionality of the website.',provider:'Zendesk',classification:'ESSENTIAL'}},palette:{linkColor:'#000000',borderless:false,dialogType:'bar',widgetPosition:'left',displayPosition:'bottom',infoDialogPosition:'right',toggleButtonOnColor:'#ffffff',toggleButtonOffColor:'#ffffff',buttonBackgroundColor:'#000000',buttonForegroundColor:'#ffffff',dialogBackgroundColor:'#f8f4f2',dialogForegroundColor:'#000000',infoDialogOverlayColor:'rgba(22,23,27,0.5)',toggleOnBackgroundColor:'#509ba8',toggleOffBackgroundColor:'#cfd6e0',buttonDenyBackgroundColor:'#ffffff',buttonDenyForegroundColor:'#000000',infoDialogBackgroundColor:'#f8f4f2',infoDialogForegroundColor:'#000000'},scripts:{'adlane.info/sync.js':'MARKETING','ads-twitter.com':'MARKETING','akamaihd.net':'ESSENTIAL','analytics.tiktok.com':'ANALYTICS','analytics.twitter.com':'ANALYTICS','analytics.yahoo.com':'ANALYTICS','api.filepicker.io':'ESSENTIAL','api.filestackapi.com':'ESSENTIAL','apis.google.com':'ESSENTIAL','app.leadsrx.com':'MARKETING','bing.com':'MARKETING','browser.sentry-cdn.com':'ESSENTIAL','cdn.siftscience.com':'ANALYTICS','cdn.solvvy.com':'ESSENTIAL','clarity.ms':'ANALYTICS','cloudflare.com':'ESSENTIAL','cmp.osano.com':'ESSENTIAL','d33wwcok8lortz.cloudfront.net':'ESSENTIAL','doubleclick.net':'MARKETING','facebook.net':'ESSENTIAL','f.scribdassets.com':'ESSENTIAL','googleadservices.com':'MARKETING','google-analytics.com':'ANALYTICS','googleapis.com':'ESSENTIAL','google.com':'ESSENTIAL','googlesyndication.com':'MARKETING','googletagmanager.com':'ESSENTIAL','gstatic.com':'ESSENTIAL','hotjar.com':'ANALYTICS','html.scribdassets.com':'ESSENTIAL','https://www.scbtracker.com/rd/apx.php':'ANALYTICS','jquery.com':'ESSENTIAL','liadm.com':'MARKETING','live.adyen.com':'ESSENTIAL','pay.google.com':'ESSENTIAL','pdst.fm':'MARKETING','pinterest.com':'MARKETING','platform.twitter.com':'MARKETING','redditstatic.com':'MARKETING','scribd.com':'ESSENTIAL','s-f.scribdassets.com':'ESSENTIAL','siftscience.com':'ANALYTICS','snap.licdn.com':'ANALYTICS','static.zdassets.com':'ESSENTIAL','taboola.com':'MARKETING','test.adyen.com':'ESSENTIAL','tvsquared.com':'MARKETING','yimg.com':'ANALYTICS'},gpcSupport:false,iabEnabled:true,ccpaRelaxed:true,crossDomain:true,disclosures:[],allowTimeout:true,codeSplitting:false,googleConsent:false,iframeBlocking:'',policyLinkText:'privacyPolicy',timeoutSeconds:10,storagePolicyHref:'https://support.scribd.com/hc/articles/210129366-Privacy-policy',policyLinkInDrawer:false,legacyBrowserSupport:false,forcedClassifyEnabled:false,forceManagePreferences:false,managePreferencesEnabled:false,customerId:'AzZdHGSGtpxCq1Cpt',configId:'4e10b135-d113-4574-a477-270ace40bba7',mode:'permissive',domains:['scribd.com','slideshare.net'],iframes:{}},{timer:true,analyticsAlways:true,categories:false,rejectAll:false,firstLayerUsage:false,managePreferences:false,canDismissDialog:true},"en",{"buttons":{"accept":"Accept","acceptAll":"Accept All","deny":"Deny","dialog":{"denyAll":{"fr":"Continue Without Accepting"},"openDrawer":{"fr":"Customize Your Choices"}},"denyAll":"Reject All","managePreferences":"Manage Preferences","save":"Save","storagePolicy":"Data Storage Policy"},"categories":{"ESSENTIAL":{"label":"Essential","description":"These items are required to enable basic website functionality."},"MARKETING":{"label":"Marketing","description":"These items are used to deliver advertising that is more relevant to you and your interests. They may also be used to limit the number of times you see an advertisement and measure the effectiveness of advertising campaigns. Advertising networks usually place them with the website operator’s permission."},"PERSONALIZATION":{"label":"Personalization","description":"These items allow the website to remember choices you make (such as your user name, language, or the region you are in) and provide enhanced, more personal features. For example, a website may provide you with local weather reports or traffic news by storing data about your current location."},"ANALYTICS":{"label":"Analytics","description":"These items help the website operator understand how its website performs, how visitors interact with the site, and whether there may be technical issues. This storage type usually doesn’t collect information that identifies a visitor."},"STORAGE":{"label":"Storage","description":"Allows the website to store data locally on your device. For example, this site may store data that will remember your previous selections, search filters, or other information that would provide a seamless user experience as you navigate throughout the website."},"OPT_OUT":{"label":"Do Not Sell or Share My Personal Information","description":"By switching the toggle to the right and clicking save, you are indicating that you do not want us to sell your personal information or share/disclose your personal information for online targeted advertising activities.  \n\nPlease note if you use different computers or browsers, you must indicate your choices again on each computer/browser used to access our services."}},"dialog":{"close":"Close this dialog"},"messaging":{"poweredBy":"Data Privacy by Osano","default":"This website stores data such as cookies to enable essential site functionality, as well as marketing, personalization, and analytics.","categories":"You may change your settings at any time or accept the default settings.","cookieQuestion":"What is a cookie?","timer":"By remaining on this website you indicate your consent.","privacyPolicy":"Privacy Policy","cookiePolicy":"Cookie Policy","privacyNotice":"Privacy Notice","cookieNotice":"Cookie Notice","moreDetails":"More Details","widgetAltText":"Cookie Preferences","usageWhat":"To improve your experience, we (and our partners) store and/or access information on your terminal (cookie or equivalent) with your consent for all our websites and applications, on your connected terminals.","usageHow":"Our website may use these cookies to:","usageList":"Measure the audience of the advertising on our website, without profiling\nDisplay personalized ads based on your navigation and your profile\nPersonalize our editorial content based on your navigation\nAllow you to share content on social networks or platforms present on our website\nSend you advertising based on your location","viewCookies":"View Cookies","closeButton":"You may close this banner to continue with only essential cookies."},"disclosure":{"day":"day","label":"Storage Items","none":"No Storage Items","cookie":{"purpose":"Purpose","expiry":"Expiration","name":"Name","classification":"Classification","provider":"Provider"},"dayPlural":"days","script":{"purpose":"Purpose","name":"Name","classification":"Classification","provider":"Provider"}},"drawer":{"header":"Storage Preferences","close":"Close Cookie Preferences","description":"When you visit websites, they may store or retrieve data in your browser. This storage is often necessary for the basic functionality of the website. The storage may be used for marketing, analytics, and personalization of the site, such as storing your preferences. Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website."},"iab":{"layer1":"This website stores and accesses information on your device, such as cookies. Personal data may be processed, such as cookie identifiers, unique device identifiers, and browser information. Third parties may store and access information on your device and process this personal data. You may change or withdraw your preferences by clicking on the cookie icon or link; however, as a consequence, you may not see relevant ads or personalized content.","legal":{"title":"All Third Party Disclosures","preamble":"Third-party vendors on this website may implement the following features, purposes, special features, and functionality.","object":"I object to the processing of my personal data for this purpose based on legitimate interest."},"vendor":{"title":"Third Parties","preamble":"This website shares data with the following third-party vendors. You may change your preferences for each vendor in this section. If you opt-out of vendors, they will not be allowed to process your personal data.","maxCookieStorage":"Maximum cookie storage","usesNonCookieAccess":"This vendor uses other methods of storage or accessing information already stored on a user's device."},"terms":{"specialPurposes":"Special Purposes:","features":"Features:","specialFeatures":"Special Features:"},"purposes":{"1":{"name":"Store and/or access information on a device","description":"Cookies, device identifiers, or other information can be stored or accessed on your device for the purposes presented to you.","descriptionLegal":"Vendors can:\n* Store and access information on the device such as cookies and device identifiers presented to a user."},"2":{"name":"Select basic ads","description":"Ads can be shown to you based on the content you’re viewing, the app you’re using, your approximate location, or your device type.","descriptionLegal":"To do basic ad selection, vendors can:\n* Use real-time information about the context in which the ad will be shown, to show the ad, including information about the content and the device, such as: device type and capabilities, user agent, URL, IP address\n* Use a user's non-precise geolocation data\n* Control the frequency of ads shown to a user.\n* Sequence the order in which ads are shown to a user.\n* Prevent an ad from serving in an unsuitable editorial (brand-unsafe) context\nVendors cannot:\n* Create a personalized ads profile using this information for the selection of future ads without a separate legal basis to create a personalized ads profile.\n* N.B. Non-precise means only an approximate location involving at least a radius of 500 meters is permitted."},"3":{"name":"Create a personalized ads profile","description":"A profile can be built about you and your interests to show you personalised ads that are relevant to you.","descriptionLegal":"To create a personalized ads profile, vendors can:\n* Collect information about a user, including a user's activity, interests, demographic information, or location, to create or edit a user profile for use in personalized advertising.\n* Combine this information with other information previously collected, including from across websites and apps, to create or edit a user profile for use in personalized advertising."},"4":{"name":"Select personalized ads","description":"Personalized ads can be shown to you based on a profile about you.","descriptionLegal":"To select personalized ads vendors can:\n* Select personalized ads based on a user profile or other historical user data, including a user’s prior activity, interests, visits to sites or apps, location, or demographic information."},"5":{"name":"Create a personalized content profile","description":"A profile can be built about you and your interests to show you personalized content that is relevant to you.","descriptionLegal":"To create a personalized content profile, vendors can:\n* Collect information about a user, including a user's activity, interests, visits to sites or apps, demographic information, or location, to create or edit a user profile for personalizing content.\n* Combine this information with other information previously collected, including from across websites and apps, to create or edit a user profile for use in personalizing content."},"6":{"name":"Select personalized content","description":"Personalized content can be shown to you based on a profile about you.","descriptionLegal":"To select personalized content, vendors can:\n* Select personalized content based on a user profile or other historical user data, including a user’s prior activity, interests, visits to sites or apps, location, or demographic information."},"7":{"name":"Measure ad performance","description":"The performance and effectiveness of ads that you see or interact with can be measured.","descriptionLegal":"To measure ad performance, vendors can:\n* Measure whether and how ads were delivered to and interacted with by a user\n* Provide reporting about ads including their effectiveness and performance\n* Provide reporting about users who interacted with ads using data observed during the course of the user's interaction with that ad\n* Provide reporting to publishers about the ads displayed on their property\n* Measure whether an ad is serving in a suitable editorial environment (brand-safe) context\n* Determine the percentage of the ad that had the opportunity to be seen and the duration of that opportunity\n* Combine this information with other information previously collected, including from across websites and apps\nVendors cannot:\n*Apply panel- or similarly-derived audience insights data to ad measurement data without a Legal Basis to apply market research to generate audience insights (Purpose 9)"},"8":{"name":"Measure content performance","description":"The performance and effectiveness of content that you see or interact with can be measured.","descriptionLegal":"To measure content performance vendors can:\n* Measure and report on how content was delivered to and interacted with by users.\n* Provide reporting, using directly measurable or known information, about users who interacted with the content\n* Combine this information with other information previously collected, including from across websites and apps.\nVendors cannot:\n* Measure whether and how ads (including native ads) were delivered to and interacted with by a user.\n* Apply panel- or similarly derived audience insights data to ad measurement data without a Legal Basis to apply market research to generate audience insights (Purpose 9)"},"9":{"name":"Apply market research to generate audience insights","description":"Market research can be used to learn more about the audiences who visit sites/apps and view ads.","descriptionLegal":"To apply market research to generate audience insights, vendors can:\n* Provide aggregate reporting to advertisers or their representatives about the audiences reached by their ads, through panel-based and similarly derived insights.\n* Provide aggregate reporting to publishers about the audiences that were served or interacted with content and/or ads on their property by applying panel-based and similarly derived insights.\n* Associate offline data with an online user for the purposes of market research to generate audience insights if vendors have declared to match and combine offline data sources (Feature 1)\n* Combine this information with other information previously collected including from across websites and apps. \nVendors cannot:\n* Measure the performance and effectiveness of ads that a specific user was served or interacted with, without a Legal Basis to measure ad performance.\n* Measure which content a specific user was served and how they interacted with it, without a Legal Basis to measure content performance."},"10":{"name":"Develop and improve products","description":"Your data can be used to improve existing systems and software, and to develop new products","descriptionLegal":"To develop new products and improve products, vendors can:\n* Use information to improve their existing products with new features and to develop new products\n* Create new models and algorithms through machine learning\nVendors cannot:\n* Conduct any other data processing operation allowed under a different purpose under this purpose"}},"specialPurposes":{"1":{"name":"Ensure security, prevent fraud, and debug","description":"Your data can be used to monitor for and prevent fraudulent activity, and ensure systems and processes work properly and securely.","descriptionLegal":"To ensure security, prevent fraud and debug, vendors can:\n* Ensure data are securely transmitted\n* Detect and prevent malicious, fraudulent, invalid, or illegal activity.\n* Ensure correct and efficient operation of systems and processes, including to monitor and enhance the performance of systems and processes engaged in permitted purposes\n\nVendors cannot:\n* Conduct any other data processing operation allowed under a different purpose under this purpose.\n\nNote: Data collected and used to ensure security, prevent fraud, and debug may include automatically-sent device characteristics for identification, precise geolocation data, and data obtained by actively scanning device characteristics for identification without separate disclosure and/or opt-in."},"2":{"name":"Technically deliver ads or content","description":"Your device can receive and send information that allows you to see and interact with ads and content.","descriptionLegal":"To deliver information and respond to technical requests, vendors can:\n* Use a user’s IP address to deliver an ad over the internet\n* Respond to a user’s interaction with an ad by sending the user to a landing page\n* Use a user’s IP address to deliver content over the internet\n* Respond to a user’s interaction with content by sending the user to a landing page\n* Use information about the device type and capabilities for delivering ads or content, for example, to deliver the right size ad creative or video file in a format supported by the device\nVendors cannot:\n* Conduct any other data processing operation allowed under a different purpose under this purpose"}},"features":{"1":{"name":"Match and combine offline data sources","description":"Data from offline data sources can be combined with your online activity in support of one or more purposes","descriptionLegal":"Vendors can:\n* Combine data obtained offline with data collected online in support of one or more Purposes or Special Purposes."},"2":{"name":"Link different devices","description":"Different devices can be determined as belonging to you or your household in support of one or more of purposes.","descriptionLegal":"Vendors can:\n* Deterministically determine that two or more devices belong to the same user or household\n* Probabilistically determine that two or more devices belong to the same user or household\n* Actively scan device characteristics for identification for probabilistic identification if users have allowed vendors to actively scan device characteristics for identification (Special Feature 2)"},"3":{"name":"Receive and use automatically-sent device characteristics for identification","description":"Your device might be distinguished from other devices based on information it automatically sends, such as IP address or browser type.","descriptionLegal":"Vendors can:\n* Create an identifier using data collected automatically from a device for specific characteristics, e.g. IP address, user-agent string.\n* Use such an identifier to attempt to re-identify a device.\nVendors cannot:\n* Create an identifier using data collected via actively scanning a device for specific characteristics, e.g. installed font or screen resolution without users’ separate opt-in to actively scanning device characteristics for identification.\n* Use such an identifier to re-identify a device."}},"specialFeatures":{"1":{"name":"Use precise geolocation data","description":"Your precise geolocation data can be used in support of one or more purposes. This means your location can be accurate to within several meters.","descriptionLegal":"Vendors can:\n* Collect and process precise geolocation data in support of one or more purposes.\nN.B. Precise geolocation means that there are no restrictions on the precision of a user’s location; this can be accurate to within several meters."},"2":{"name":"Actively scan device characteristics for identification","description":"Your device can be identified based on a scan of your device's unique combination of characteristics.","descriptionLegal":"Vendors can:\n* Create an identifier using data collected via actively scanning a device for specific characteristics, e.g. installed fonts or screen resolution.\n* Use such an identifier to re-identify a device."}},"basis":{"legit":"Legal basis is legitimate interest.","consent":"Legal basis is consent..","combined":"Legal basis is legitimate interest or consent."}},"aria":{"newWindow":"Opens in a new window","external":"Opens an external website","externalNewWindow":"Opens an external website in a new window"},"doNotSell":{"header":"Your Privacy Choices","description":"We allow certain online advertising partners to collect information from our services through cookies and similar technologies as described in our Privacy Policy to deliver ads which are more relevant to you and assist us with advertising-related analytics. This may be considered \"selling\" or \"sharing\" (disclosure) for targeted online advertising under certain laws. To opt out of this activity, use the toggle below."}},null,Pt({eu:t,us:n}))})();var Promise})(); (self.webpackChunk_scribd_app_explore=self.webpackChunk_scribd_app_explore||[]).push([[972],{8405:(e,t,n)=>{"use strict";n.d(t,{w6:()=>At,OU:()=>hn,ap:()=>yn,LA:()=>Cn,Ud:()=>To,lZ:()=>Bn,ho:()=>Do,p$:()=>ko,k$:()=>Uo,HE:()=>os,tL:()=>ss,qI:()=>ya,fV:()=>Ea});var r=n(7294),i=n(9207),o=n(6002),a=n(9371),s=n(1320),u=n(7903),l=n(8481),c=n(9478),d=n(984),p=n(1605),f=n(9535),h=n(7534),g=n(2833),m=n(6940),v=n(6047),_=n(4356);function A({"data-e2e":e,documentId:t,page:n}){const r=`/document-data/${t}/downloadable`;return(i,a)=>{s.Be.asPromise("get",{url:r}).then((({downloadable:r,showArchivePaywall:u,subscribeUrl:c,signupContext:p})=>{if(i(function(e){return{type:_.Z.DOCUMENT_UPDATED,document:e}}({id:t,isDownloadable:r})),!r)return i((0,v.Z)({type:m.Se.ERROR,content:o.Z.t("shared.doc_download_modal.not_available")}));const f=`${c}&metadata=${encodeURIComponent(JSON.stringify({page:n,platform:"web",context:p}))}`,{user:h}=a(),g=()=>i((0,d.Z)({name:m.V$.DOWNLOAD_DOCUMENT,modalProps:{"data-e2e":e,documentId:t,page:n}}));return i((0,l.Z)((()=>u?h.isSubscriber||h.isPaused?g():(0,s.uX)(f):g()),{trackingData:{page:n},nextUrl:f}))}))}}var y=n(6790),b=n(3935),E={exports:{}};var w,x,I,M;function S(){if(x)return w;x=1;return w="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}E.exports=function(){if(M)return I;M=1;var e=S();function t(){}function n(){}return n.resetWarningCache=t,I=function(){function r(t,n,r,i,o,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var C={ADD_NOTE:"add_note",CONTINUE_READING:"continue_reading",CREATE_A_BOOKMARK:"create_a_bookmark",CREATE_A_LIST:"create_a_list",CREATE_ANNOTATION:"create_annotation",DOWNLOAD:"download",FLAG:"flag",FOLLOW:"follow",GIVE_THIS_GIFT:"give_this_gift",HIGHLIGHT:"highlight",NAV_JOIN:"nav_join",NAV_LOGIN:"nav_login",NONE:"none",RATE:"rate",REVIEW:"review",REDEEM:"redeem",SAVE:"save",SHARE_QUOTE:"share_quote",START_FREE_MONTHS:"start_free_months",UNBOUNCE:"unbounce",UPLOAD:"upload"},N={HEADER:"header",OUTLINE:"outline",ROUND:"round",SQUARE:"square"},T={FIXED:"fixed-cell-type",FLUID:"fluid-cell-type"},L={DEFAULT:"default",DEFAULT_NON_RESPONSIVE:"defaultNonResponsive",INLINE_JUMBO_TEXT_NON_RESPONSIVE:"inlineJumboTextNonResponsive",INLINE_TEXT:"inlineText",INLINE_TEXT_NON_RESPONSIVE:"inlineTextNonResponsive",MINIMIZED:"minimized",STACKED:"stacked"},D="author",O="narrator",k={AUTHOR:D,CONTRIBUTOR:"contributor",NARRATOR:O,PUBLISHER:"publisher",IDS_KEYS:{[D]:"authorIds",[O]:"narratorIds"}},R={ARTICLE:"article",AUDIOBOOK:"audiobook",BOOK:"book",BOOK_EXCERPT:"book_excerpt",BOOK_UNAVAILABLE:"book_unavailable",COMIC:"comic",DOCUMENT:"document",FEATURED:"featured_document",MAGAZINE:"magazine",PODCAST:"podcast",PODCAST_EPISODE:"podcast_episode",PUBLICATION_ISSUE:"publication_issue",SHEET_MUSIC:"sheet_music",SHEET_MUSIC_CHAPTER:"sheet_music_chapter",SUMMARY:"summary",SUMMARY_AUDIO:"summary_audio",SUMMARY_CANONICAL:"summary_canonical",SUMMARY_TEXT:"summary_text",UNUSABLE_STUB:"unusable_stub"},j=[R.ARTICLE,R.AUDIOBOOK,R.BOOK,R.DOCUMENT,R.MAGAZINE,R.PODCAST,R.PODCAST_EPISODE,R.PUBLICATION_ISSUE,R.SHEET_MUSIC,R.SHEET_MUSIC_CHAPTER,R.SUMMARY_CANONICAL],P={QUICKVIEW_CELL:"qcid",QUICKVIEW_CAROUSEL_PADDLE:"qcp",QUICKVIEW_SIBLING:"qsib",MODAL:"modal"},U="CONFIRM_UNSAVE_ITEM",z={ARCHIVE:"archive",EXPIRING:"expiring",FREE:"free",FULL_ACCESS:"full_access",GEO_RESTRICTED:"geo_restricted",NOT_AVAILABLE:"not_available",NO_ACCESS:"no_access",PREVIEW_ACCESS:"preview_access",PREVIEW_NO_SUB:"preview_no_sub",SAMPLE:"sample",SCRIBD_SELECT:"scribd_select",THROTTLED:"throttled",VIEW_RESTRICTED:"view_restricted"},B={CURATED_COLLECTION:"curated_collection"},q={LOADING:"loading",USING_PROMO_CODE:"using_promo_code",SUBSCRIBER_DUNNING_LOCK:"subscriber_dunning_lock",SUBSCRIBER_THROTTLED:"subscriber_throttled",SUBSCRIBER_FULL_ACCESS:"subscriber_full_access",LOGGED_IN_ABORTED:"aborted",LOGGED_IN_CANCELED_EXPIRED:"canceled_expired",LOGGED_IN_FULL_ACCESS:"logged_in_full_access",LOGGED_IN_SUBSCRIBER:"subscriber",LOGGED_IN_TRIAL_ELIGIBLE:"logged_in_trial_eligible",LOGGED_IN_TRIAL_INELIGIBLE:"logged_in_trial_ineligible",LOGGED_IN_PAUSED:"paused",LOGGED_OUT_TRIAL_ELIGIBLE:"logged_out_trial_eligible",LOGGED_IN_UNAVAILABLE:"logged_in_unavailable",LOGGED_OUT_FULL_ACCESS:"logged_out_full_access",LOGGED_OUT_PREVIEW:"logged_out_preview",LOGGED_OUT_UNAVAILABLE:"logged_out_unavailable"},F={ERROR:"ERROR",LOADING:"LOADING",SUCCESS:"SUCCESS",SLIDE:"SLIDE",JUMP:"JUMP"},Z={ACTIVE:"activeCell",DEFAULT:"defaultCell",INACTIVE:"inactiveCell"},G="outside_click",Y={XL:"xl",L:"l",M:"m",S:"s",XS:"xs",XXS:"xxs"};Y.XL,Y.L,Y.M,Y.S,Y.XS,Y.XXS,Object.values(Y),Y.XXS,Y.XS,Y.S,Y.M,Y.L,Y.XL;var H={BANNER:"banner",BORDER:"border",SHADOW:"shadow"},W="audiobookContentCell",V="bookContentCell",Q="documentContentCell",K="magazineContentCell",X="podcastContentCell",$="podcastEpisodeContentCell",J="sheetMusicContentCell",ee="sheetMusicChapterContentCell",te="snapshotContentCell",ne={DEFAULT:"default",INLINE_TEXT:"inlineText",PERCENTAGE:"percentage"},re={thumbnail:"CellThumbnail-module_thumbnail__GUbgm"},ie={[R.AUDIOBOOK]:W,[R.BOOK]:V,[R.DOCUMENT]:Q,[R.MAGAZINE]:K,[R.PUBLICATION_ISSUE]:K,[R.PODCAST]:X,[R.PODCAST_EPISODE]:$,[R.SHEET_MUSIC]:J,[R.SHEET_MUSIC_CHAPTER]:ee,[R.SUMMARY_CANONICAL]:te};function oe(e){var{imageUrl:t,retinaImageUrl:n,title:o,type:a}=e;return r.createElement(r.Fragment,null,r.createElement(i.d7,{atAndBelow:!0,size:Y.S},r.createElement(i.pl,{alt:o,className:re.thumbnail,imageUrl:t,retinaImageUrl:n,size:Y.S,thumbnailStyle:H.SHADOW,thumbnailType:ie[a]})),r.createElement(i.d7,{above:!0,size:Y.S},r.createElement(i.pl,{alt:o,className:re.thumbnail,imageUrl:t,retinaImageUrl:n,size:Y.XS,thumbnailStyle:H.SHADOW,thumbnailType:ie[a]})))}function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function se(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}oe.propTypes={imageUrl:E.exports.string.isRequired,retinaImageUrl:E.exports.string.isRequired,title:E.exports.string.isRequired,type:E.exports.oneOf(Object.keys(ie)).isRequired};var fe,he={exports:{}};fe=he,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r{var{"aria-label":t,"aria-expanded":n,"data-e2e":i,buttonStyle:o,children:a,className:u,disabled:l,href:c,leftIcon:d,nodeRef:p,onBlur:f,onClick:h,onFocus:g,onKeyDown:m,onKeyPress:v,onKeyUp:_,onMouseDown:A,onMouseEnter:y,onMouseLeave:b,onMouseOut:E,onMouseOver:w,rel:x,rightIcon:I,role:M,tabIndex:S,target:C,type:N}=e,T=(0,s.Nn)(c,C),L="button";T&&(L="a");var D=function(e,t,n){return e===_e.NONE?[n.wrapper,t]:[n.wrapper,n[e],t]}(o,u,ye);return r.createElement(L,{"aria-disabled":l?"true":"false","aria-expanded":n,"aria-label":t,className:ve(...D,{[ye.disabled]:l}),"data-e2e":i,href:c,onBlur:f,onClick:h,onFocus:g,onKeyDown:m,onKeyPress:v,onKeyUp:_,onMouseDown:A,onMouseEnter:y,onMouseLeave:b,onMouseOut:E,onMouseOver:w,ref:p,rel:T?x:null,role:M,tabIndex:S,target:C,type:T?null:N},r.createElement("span",{className:ye.content},d?r.createElement(d,{className:ye.leftIcon,"data-e2e":"btn-icon"}):null,r.createElement("span",{className:ve(ye.children,{[ye.rightAlignedText]:Boolean(I)})},a),I?r.createElement(I,{className:ye.rightIcon,"data-e2e":"btn-icon"}):null))};function Ee(){return Ee=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Pe);return(0,r.createElement)(i,je({ref:t,style:je({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},a)},s))}));var ze="SvgIcon-module_wrapper__1fPqw",Be="SvgIcon-module_icon__sUHUn";function qe(e){var{"data-e2e":t,alt:n,className:i,icon:o,nodeRef:a}=e;return r.createElement("span",{className:ke(ze,i),"data-e2e":t,ref:a},r.createElement(o,{role:"img","aria-hidden":"true",className:Be}),n?r.createElement(Ue,null,n):null)}function Fe(e){return r.createElement("svg",Ee({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 8a8 8 0 1116 0v4a3 3 0 01-3 3h-3V8h4A6 6 0 002 8h4v7H3a3 3 0 01-3-3V8zm2 2v2a1 1 0 001 1h1v-3H2zm10 0h2v2a1 1 0 01-1 1h-1v-3z",fill:"currentColor"}))}function Ze(e){return r.createElement("svg",Ee({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M8 4v11.5M5 2H1v11h4a3 3 0 013 3 3 3 0 013-3h4V2h-4a3 3 0 00-3 3 3 3 0 00-3-3z",stroke:"currentColor",strokeWidth:2}))}function Ge(e){return r.createElement("svg",Ee({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.414 8l4.293-4.293-1.414-1.414L8 6.586 3.707 2.293 2.293 3.707 6.586 8l-4.293 4.293 1.414 1.414L8 9.414l4.293 4.293 1.414-1.414L9.414 8z",fill:"currentColor"}))}function Ye(e){return r.createElement("svg",Ee({width:8,height:8,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("circle",{cx:4,cy:4,r:2,fill:"currentColor"}))}function He(e){return r.createElement("svg",Ee({width:14,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M14 19.87L7 15.2l-7 4.67V2C0 .9.9 0 2 0h10c1.1 0 2 .9 2 2v17.87zM7 12.8l5 3.33V2H2v14.13l5-3.33z",fill:"currentColor"}))}function We(e){return r.createElement("svg",Ee({width:14,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M14 19.87L7 15.2l-7 4.67V2C0 .9.9 0 2 0h10c1.1 0 2 .9 2 2v17.87z",fill:"currentColor"}))}function Ve(e){return r.createElement("svg",Ee({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 3a2 2 0 012-2h8a2 2 0 012 2v12.766l-6-3.6-6 3.6V3zm2 0v9.234l4-2.4 4 2.4V3H4z",fill:"currentColor"}))}function Qe(e){return r.createElement("svg",Ee({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 1a2 2 0 00-2 2v12.766l6-3.6 6 3.6V3a2 2 0 00-2-2H4z",fill:"currentColor"}))}function Ke(e){return r.createElement("svg",Ee({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.196 7.763c-.467-.552-.716-1.334-.716-2.32 0-.046 0-.099-.007-.145v-.033C2.473 2.755 4.471 1 7.33 1c1.853 0 3.49.565 4.864 1.683l.46.368-1.466 2.096-1.078-.716.782-1.124C9.86 2.617 8.664 2.268 7.33 2.268c-.69 0-1.308.125-1.827.362a4.461 4.461 0 00-.532.329c-.585.427-.881.933-.881 1.524 0 .349.145.526.434.526.065 0 .197-.026.394-.072.204-.046.368-.066.493-.066.4 0 .775.158 1.124.467.355.315.532.742.532 1.294 0 .54-.184 1-.545 1.38-.362.388-.861.579-1.492.579-.756 0-1.367-.276-1.834-.828zm7.407-.572c.756 0 1.367.276 1.834.828.466.552.703 1.321.703 2.307 0 1.36-.427 2.425-1.282 3.194-.834.75-2.017 1.196-3.207 1.249-.217.02-.44.033-.67.033a8.272 8.272 0 01-5.534-2.097l-.447-.4 1.768-2.084 1.019.795-.98 1.144a6.95 6.95 0 004.18 1.38c1.795 0 3.037-.677 3.523-1.867.026-.118.04-.243.04-.368 0-.348-.145-.525-.434-.525-.066 0-.197.026-.395.072a2.313 2.313 0 01-.492.066c-.401 0-.776-.158-1.13-.474-.356-.315-.533-.742-.533-1.294 0-.54.184-1 .545-1.38.362-.388.861-.579 1.492-.579z",fill:"currentColor"}))}qe.propTypes={"data-e2e":we.exports.string,alt:we.exports.string,className:we.exports.string,icon:we.exports.any.isRequired,nodeRef:we.exports.any},qe.defaultProps={"data-e2e":null,alt:null,nodeRef:null};var Xe=e=>r.createElement(qe,Ee({icon:Fe},e)),$e=e=>r.createElement(qe,Ee({icon:Ze},e)),Je=e=>r.createElement(qe,Ee({icon:Ge},e)),et=e=>r.createElement(qe,Ee({icon:Ye},e)),tt=e=>r.createElement(qe,Ee({icon:He},e)),nt=e=>r.createElement(qe,Ee({icon:We},e)),rt=e=>r.createElement(qe,Ee({icon:Ve},e)),it=e=>r.createElement(qe,Ee({icon:Qe},e)),ot=e=>r.createElement(qe,Ee({icon:Ke},e)),at={wrapper:"HeaderText-module_wrapper__n-kng",dot:"HeaderText-module_dot__IzHww",spotlight:"HeaderText-module_spotlight__QBhZa"},st={get[R.BOOK](){return o.Z.t("content_types.ebook")},get[R.AUDIOBOOK](){return o.Z.t("content_types.audiobook")},get[R.PODCAST](){return o.Z.t("content_types.podcast")},get[R.PODCAST_EPISODE](){return o.Z.t("content_types.podcast_episode")},get[R.SHEET_MUSIC](){return o.Z.t("content_types.sheet_music")},get[B.CURATED_COLLECTION](){return o.Z.t("search.results.reading_list")}},ut={get[R.BOOK](){return o.Z.t("content_types.ebook_series")},get[R.AUDIOBOOK](){return o.Z.t("content_types.audiobook_series")}};function lt(e){var{headerLabel:t,isSeries:n,length:i,type:o}=e;return r.createElement("p",{className:at.wrapper},t?r.createElement(r.Fragment,null,r.createElement("span",{className:at.spotlight},t),r.createElement("span",{className:at.dot},"\u2022")):null,r.createElement("span",{"data-e2e":"spotlight-content-type"},n?ut[o]:st[o]),i?r.createElement(r.Fragment,null,r.createElement("span",{className:at.dot},"\u2022"),r.createElement("span",{"data-e2e":"spotlight-length"},(0,a.id)(o,i,n))):null)}function ct(e){var{addDocumentToSaved:t,isLoggedIn:n,isSaved:a,removeDocumentFromSaved:u,requireConfirmation:l,title:c}=e,[d,p]=(0,r.useState)(a),[f,h]=(0,r.useState)(!1),g=function(){var e=le((function*(e){e.stopPropagation();try{h(!0),d?yield u():yield t(),!l&&n&&p(!d)}catch(r){(0,s.Tb)(r)}finally{h(!1)}}));return function(t){return e.apply(this,arguments)}}();return r.createElement(r.Fragment,null,f?r.createElement(i.Tj,{disabled:!0,icon:tt,size:Y.L}):r.createElement(i.pf,{content:d?o.Z.t("shared.common.remove_from_saved"):o.Z.t("shared.common.save_for_later")},r.createElement(i.Tj,{"data-e2e":d?"save-button-saved":"save-button-unsaved",hiddenText:d?o.Z.t("shared.common.library.remove_with_title",{title:c}):o.Z.t("shared.common.library.add_with_title",{title:c}),icon:d?nt:tt,isSelected:d,onClick:g,onKeyDown:e=>{e.which===s.keyMappings.enter&&g(e)},size:Y.L})))}lt.propTypes={headerLabel:E.exports.string,isSeries:E.exports.bool,length:E.exports.number,type:E.exports.oneOf(Object.values(R).concat(Object.values(B))).isRequired},lt.defaultProps={headerLabel:"",isSeries:!1,length:0},ct.propTypes={addDocumentToSaved:E.exports.func.isRequired,documentId:E.exports.number.isRequired,isLoggedIn:E.exports.bool.isRequired,isSaved:E.exports.bool.isRequired,removeDocumentFromSaved:E.exports.func.isRequired,requireConfirmation:E.exports.bool,title:E.exports.string.isRequired},ct.defaultProps={requireConfirmation:!1};var dt=(0,u.$j)(((e,t)=>{var{documentId:n}=t,{saved:r,finished:i}=e.savedDocuments,{isLoggedIn:o}=e.user;return{isSaved:!!r[n]||!!i[n],isLoggedIn:o}}),((e,t)=>{var{documentId:n,page:r,requireConfirmation:i,source:a}=t;return{addDocumentToSaved:()=>((0,s.L9)("library_btn:add_to_library:click",{doc_id:n,action:"add",page:r,source:a}),e((0,l.Z)((()=>e((0,c.Z)(n))),{loginParams:{add_to_library:n},signInText:{topTag:o.Z.t("shared.account_creation.sign_in_save")},signUpText:{topTag:o.Z.t("shared.account_creation.sign_up_save")},userAction:C.SAVE}))),removeDocumentFromSaved:()=>((0,s.L9)("library_btn:add_to_library:click",{doc_id:n,action:"remove",page:r,source:a}),e(i?(0,d.Z)({name:U,isDismissable:!0,modalProps:{documentId:n}}):(0,p.Z)(n)))}}))(ct),pt={bottomSpacing:"Footer-module_bottomSpacing__ENqY9",rating:"Footer-module_rating__SY9yY",saveButtonContainer:"Footer-module_saveButtonContainer__-vuL1"},ft=[R.PODCAST,R.PODCAST_EPISODE],ht="spotlight-rating";function gt(e){var t,{downvotes:n,id:o,ratingAverage:s,title:u,type:l,upvotes:c}=e;return l===B.CURATED_COLLECTION?r.createElement("div",{className:pt.bottomSpacing}):(t=ft.includes(l)?r.createElement(a.RW,{"data-e2e":ht,downvotes:n,style:ne.INLINE_TEXT,upvotes:c}):r.createElement(i.R4,{"data-e2e":ht,rating:s,style:L.INLINE_TEXT_NON_RESPONSIVE}),r.createElement("div",{className:pt.rating},t,r.createElement("div",{className:pt.saveButtonContainer},r.createElement(dt,{documentId:o,title:u}))))}gt.propTypes={downvotes:E.exports.number,id:E.exports.number,ratingAverage:E.exports.number,title:E.exports.string,type:E.exports.oneOf(Object.values(R).concat(Object.values(B))).isRequired,upvotes:E.exports.number};var mt={wrapper:"ContentSpotlight-module_wrapper__rev6P",accentColor:"ContentSpotlight-module_accentColor__-9Vfz",authorLink:"ContentSpotlight-module_authorLink__WeZnd",collectionSubtitle:"ContentSpotlight-module_collectionSubtitle__w1xBC",content:"ContentSpotlight-module_content__JLJxy",description:"ContentSpotlight-module_description__CeIYR",icon:"ContentSpotlight-module_icon__nsolR",linkOverlay:"ContentSpotlight-module_linkOverlay__fkhxJ",noRadius:"ContentSpotlight-module_noRadius__Bcy-V",statusTag:"ContentSpotlight-module_statusTag__4G-9k",textContent:"ContentSpotlight-module_textContent__h2nx5",thumbnailWrapper:"ContentSpotlight-module_thumbnailWrapper__WsXXi",title:"ContentSpotlight-module_title__nMdoG"},vt={[R.AUDIOBOOK]:W,[R.BOOK]:V,[R.PODCAST]:X,[R.PODCAST_EPISODE]:$,[R.SHEET_MUSIC]:J,[B.CURATED_COLLECTION]:W},_t=[z.EXPIRING,z.GEO_RESTRICTED,z.NOT_AVAILABLE,z.THROTTLED];function At(e){var{author:t,authorUrl:n,availableDate:u,className:l,description:c,downvotes:d,editorialDescription:p,expiryDate:f,headerLabel:h,id:g,imageUrl:m,isSeries:v,length:_,previewUrl:A,ratingAverage:y,restrictionType:b,retinaImageUrl:E,title:w,type:x,upvotes:I}=e,M=(0,s.e9)(null,null,null,g),S=x===B.CURATED_COLLECTION,C=e=>{e.stopPropagation()},N={alt:w,"aria-label":vt[x],imageUrl:m,retinaImageUrl:E,restrictionType:b,thumbnailStyle:H.SHADOW,thumbnailType:vt[x],className:S?mt.noRadius:null};return r.createElement("div",{className:ge(mt.wrapper,l)},r.createElement("a",{className:mt.linkOverlay,href:A},r.createElement(a.TX,null,w)),r.createElement("div",{className:mt.accentColor,style:{backgroundColor:M}}),r.createElement("div",{className:mt.content},r.createElement(i.d7,{below:!0,classes:mt.thumbnailWrapper,size:Y.S},r.createElement(i.d7,{below:!0,classes:mt.thumbnailWrapper,size:Y.M},r.createElement(i.pl,de({},N,{size:Y.L}))),r.createElement(i.d7,{atAndAbove:!0,classes:mt.thumbnailWrapper,size:Y.M},r.createElement(i.pl,de({},N,{size:Y.M})))),r.createElement(i.d7,{atAndAbove:!0,classes:mt.thumbnailWrapper,size:Y.S},r.createElement(i.pl,de({},N,{size:Y.XS}))),r.createElement("div",{className:mt.textContent},r.createElement("div",null,r.createElement(lt,{headerLabel:h,isSeries:v,length:_,type:x}),r.createElement("h3",{className:mt.title},w),S?r.createElement("div",{className:mt.collectionSubtitle},r.createElement(ot,{className:mt.icon}),r.createElement("span",null,o.Z.t("shared.lists.curated_by_scribd_editors"))):t?r.createElement(r.Fragment,null,r.createElement(a.TX,null,o.Z.t("shared.common.title_author_separator")),r.createElement(be,{className:mt.authorLink,"data-e2e":"spotlight-author",href:n,onClick:C,onKeyDown:C},t)):null),_t.includes(b)?r.createElement("div",{className:mt.statusTag},r.createElement(a.Nj,{availableDate:u,"data-e2e":"restricted-status",documentRestriction:b,expiryDate:f})):null,r.createElement("p",{"data-e2e":"spotlight-description",className:mt.description},p||c),r.createElement(gt,{downvotes:d,id:g,ratingAverage:y,title:w,type:x,upvotes:I}))))}function yt(e,t){var{isSeries:n,previewUrl:r,readUrl:i}=e;return n?r:t?i:r}function bt(e){var t="Missing document for cell. id: ".concat(e);"undefined"!==typeof window?(0,s.Tb)(new Error(t)):console.error(t)}function Et(e,t){var n="".concat(e,' (cells package), document.type: "').concat(t,'" not supported');"undefined"!==typeof window?(0,s.Tb)(new Error(n)):console.error(n)}function wt(e){return Math.round(e/60)||1}At.propTypes={author:E.exports.string,authorUrl:E.exports.string,availableDate:E.exports.string,className:E.exports.string,description:E.exports.string,downvotes:E.exports.number,editorialDescription:E.exports.string,expiryDate:E.exports.string,headerLabel:E.exports.string,id:E.exports.number,imageUrl:E.exports.string.isRequired,isSeries:E.exports.bool,length:E.exports.number,previewUrl:E.exports.string,ratingAverage:E.exports.number,restrictionType:E.exports.oneOf(Object.values(z)),retinaImageUrl:E.exports.string,title:E.exports.string,type:E.exports.oneOf(Object.values(R).concat(Object.values(B))).isRequired,upvotes:E.exports.number},At.defaultProps={editorialDescription:"",isSeries:!1};var xt={articleCount:"BottomLeftDetail-module_articleCount__jE7pQ",consumptionTime:"BottomLeftDetail-module_consumptionTime__0OefZ",staticContentRatingLabel:"BottomLeftDetail-module_staticContentRatingLabel__wZWmW",thumbRatings:"BottomLeftDetail-module_thumbRatings__jAon3"};function It(e){var{articleCount:t,consumptionTime:n,downvoteCount:s,ratingAverage:u,type:l,upvoteCount:c}=e;switch(l){case R.ARTICLE:return r.createElement("span",{className:xt.consumptionTime,"data-e2e":"consumption-time"},o.Z.t("content_lengths.reading_minutes",{minutes:wt(n)}));case R.AUDIOBOOK:case R.BOOK:case R.SHEET_MUSIC:case R.SHEET_MUSIC_CHAPTER:return r.createElement(i.R4,{labelClassName:xt.staticContentRatingLabel,rating:u,style:L.STACKED});case R.DOCUMENT:case R.PODCAST:case R.PODCAST_EPISODE:return r.createElement(a.RW,{className:xt.thumbRatings,downvotes:s,upvotes:c,style:ne.PERCENTAGE});case R.MAGAZINE:case R.PUBLICATION_ISSUE:return r.createElement("span",{className:xt.articleCount,"data-e2e":"article-count"},o.Z.t("shared.content_lengths.articles_with_count",{count:t}));case R.SUMMARY_CANONICAL:return r.createElement("span",{className:xt.consumptionTime,"data-e2e":"consumption-time"},o.Z.t("content_lengths.listening_minutes",{minutes:wt(n)}));default:return null}}function Mt(e){var t=Math.ceil(e/1e3),n=Math.ceil(t/60);return n>=60?o.Z.t("shared.time_remaining.hours",{count:Math.round(n/60)}):o.Z.t("shared.time_remaining.minutes",{count:n})}function St(e){var{articleCount:t,consumptionTime:n,downvoteCount:s,ratingAverage:u,timeRemaining:l,type:c,upvoteCount:d}=e;switch(c){case R.ARTICLE:return r.createElement("span",{className:xt.consumptionTime,"data-e2e":"consumption-time"},o.Z.t("content_lengths.reading_minutes",{minutes:wt(n)}));case R.AUDIOBOOK:case R.PODCAST_EPISODE:return r.createElement("span",{className:xt.consumptionTime,"data-e2e":"time-remaining"},Mt(l));case R.BOOK:case R.DOCUMENT:return r.createElement("span",{className:xt.consumptionTime,"data-e2e":"time-remaining"},o.Z.t("shared.time_remaining.pages",{count:l}));case R.MAGAZINE:case R.PUBLICATION_ISSUE:return r.createElement("span",{className:xt.articleCount,"data-e2e":"article-count"},o.Z.t("shared.content_lengths.articles_with_count",{count:t}));case R.SHEET_MUSIC:case R.SHEET_MUSIC_CHAPTER:return r.createElement(i.R4,{rating:u,style:L.STACKED});case R.PODCAST:return r.createElement(a.RW,{className:xt.thumbRatings,downvotes:s,upvotes:d,style:ne.PERCENTAGE});case R.SUMMARY_CANONICAL:return r.createElement("span",{className:xt.consumptionTime,"data-e2e":"consumption-time"},o.Z.t("content_lengths.listening_minutes",{minutes:wt(n)}));default:return null}}It.propTypes={articleCount:E.exports.number,consumptionTime:E.exports.number,downvoteCount:E.exports.number,ratingAverage:E.exports.number,type:E.exports.string.isRequired,upvoteCount:E.exports.number},It.defaultProps={articleCount:null,consumptionTime:60,ratingAverage:null},St.propTypes={articleCount:E.exports.number,consumptionTime:E.exports.number,downvoteCount:E.exports.number.isRequired,ratingAverage:E.exports.number,timeRemaining:E.exports.number,type:E.exports.string.isRequired,upvoteCount:E.exports.number.isRequired},St.defaultProps={articleCount:null,consumptionTime:60};var Ct=[R.MAGAZINE,R.PUBLICATION_ISSUE],Nt=[R.ARTICLE,R.SUMMARY_CANONICAL],Tt=[R.AUDIOBOOK,R.BOOK],Lt=[R.DOCUMENT,R.PODCAST,R.PODCAST_EPISODE],Dt=(e,t,n)=>!(!Ct.includes(e)||t)||!(!Tt.includes(e)||!n),Ot={bottomDetail:"BottomSection-module_bottomDetail__9QCNm",noLeftDetail:"BottomSection-module_noLeftDetail__pokT5",progressBar:"BottomSection-module_progressBar__U7eXc",saveButtonContainer:"BottomSection-module_saveButtonContainer__cwD3P"};function kt(e){var{articleCount:t,className:n,consumptionTime:i,downvoteCount:o,id:a,isSeries:s,page:u,ratingAverage:l,showSaveAction:c,title:d,type:p,upvoteCount:f}=e,h=Dt(p,t,s);return r.createElement("div",{className:ge(Ot.bottomDetail,{[Ot.noLeftDetail]:h},n)},h?null:r.createElement(It,{articleCount:t,consumptionTime:i,downvoteCount:o,ratingAverage:l,type:p,upvoteCount:f}),!1===c?null:r.createElement("div",{className:Ot.saveButtonContainer},r.createElement(dt,{documentId:a,page:u,title:d})))}kt.propTypes={articleCount:E.exports.number,className:E.exports.string,consumptionTime:E.exports.number,downvoteCount:E.exports.number,id:E.exports.number.isRequired,isSeries:E.exports.bool,page:E.exports.string.isRequired,ratingAverage:E.exports.number,showSaveAction:E.exports.bool,title:E.exports.string.isRequired,type:E.exports.string.isRequired,upvoteCount:E.exports.number},kt.defaultProps={articleCount:null,className:null,consumptionTime:null,downvoteCount:null,isSeries:!1,ratingAverage:null,showSaveAction:!0,upvoteCount:null};var Rt=[R.AUDIOBOOK,R.BOOK,R.DOCUMENT,R.PODCAST_EPISODE];function jt(e){var{articleCount:t,consumptionTime:n,downvoteCount:o,id:a,isSeries:s,page:u,percentCompleted:l,ratingAverage:c,timeRemaining:d,title:p,type:f,upvoteCount:h}=e,g=Dt(f,t,s);return r.createElement(r.Fragment,null,r.createElement("div",{className:ge(Ot.bottomDetail,{[Ot.noLeftDetail]:g})},g?null:r.createElement(St,{articleCount:t,consumptionTime:n,downvoteCount:o,ratingAverage:c,timeRemaining:d,type:f,upvoteCount:h}),r.createElement("div",{className:Ot.saveButtonContainer},r.createElement(dt,{documentId:a,page:u,title:p,requireConfirmation:!0}))),Rt.includes(f)?r.createElement(i.ko,{className:Ot.progressBar,contentType:f,documentId:a,percentCompleted:l}):null)}jt.propTypes={articleCount:E.exports.number,consumptionTime:E.exports.number,downvoteCount:E.exports.number,id:E.exports.number.isRequired,isSeries:E.exports.bool,page:E.exports.string.isRequired,percentCompleted:E.exports.number,ratingAverage:E.exports.number,timeRemaining:E.exports.number.isRequired,title:E.exports.string.isRequired,type:E.exports.string.isRequired,upvoteCount:E.exports.number},jt.defaultProps={articleCount:null,consumptionTime:null,downvoteCount:null,isSeries:!1,percentCompleted:null,ratingAverage:null,upvoteCount:null};var Pt={wrapper:"Cell-common-module_wrapper__KUGCA",accentColorContainer:"Cell-common-module_accentColorContainer__zWl20",savedBottomSection:"Cell-common-module_savedBottomSection__1UiRM",article:"Cell-common-module_article__XLVZX",articleImage:"Cell-common-module_articleImage__gRp24",articleDescription:"Cell-common-module_articleDescription__N7E6a",articleMetadata:"Cell-common-module_articleMetadata__px1c5",linkOverlay:"Cell-common-module_linkOverlay__O9iDa",metadata:"Cell-common-module_metadata__WTBLD"};R.AUDIOBOOK,R.BOOK;E.exports.shape({author:E.exports.string.isRequired,authorUrl:E.exports.string,className:E.exports.string,description:E.exports.string,id:E.exports.number.isRequired,imageUrl:E.exports.string.isRequired,page:E.exports.string.isRequired,previewUrl:E.exports.string,ratingAverage:E.exports.number,retinaImageUrl:E.exports.string,title:E.exports.string.isRequired,type:E.exports.string.isRequired}).isRequired;var Ut={articleCount:"BottomLeftDetail-module_articleCount__sTtVV",consumptionTime:"BottomLeftDetail-module_consumptionTime__M7bzb",staticContentRatingLabel:"BottomLeftDetail-module_staticContentRatingLabel__wR0CQ"};function zt(e){var{document:t,shouldShowDescription:n}=e,{articleCount:s,consumptionTime:u,downvoteCount:l,ratingAverage:c,type:d,upvoteCount:p}=t;return Ct.includes(d)?r.createElement("span",{className:Ut.articleCount},o.Z.t("shared.content_lengths.articles_with_count",{count:s})):Nt.includes(d)?r.createElement("span",{className:Ut.consumptionTime},o.Z.t("content_lengths.reading_minutes",{minutes:wt(u)})):Lt.includes(d)?r.createElement(a.RW,{downvotes:l,upvotes:p,style:ne.PERCENTAGE}):r.createElement(i.R4,{labelClassName:Ut.staticContentRatingLabel,rating:c,style:n?L.INLINE_TEXT_NON_RESPONSIVE:L.STACKED})}zt.propTypes={document:E.exports.shape({articleCount:E.exports.number,consumptionTime:E.exports.number,downvoteCount:E.exports.number,ratingAverage:E.exports.number,type:E.exports.oneOf(Object.values(R)).isRequired,upvoteCount:E.exports.number}),shouldShowDescription:E.exports.bool},zt.defaultProps={document:{articleCount:0,consumptionTime:0,downvoteCount:0,ratingAverage:0,type:R.BOOK,upvoteCount:0},shouldShowDescription:!1};var Bt={wrapper:"BottomSection-module_wrapper__k51mU",descriptionBackup:"BottomSection-module_descriptionBackup__F7qSq",noLeftDetail:"BottomSection-module_noLeftDetail__v0EoJ",saveButtonContainer:"BottomSection-module_saveButtonContainer__783m2"};function qt(e){var{className:t,document:n,showDescription:i}=e,{articleCount:o,description:a,id:s,isSeries:u,title:l,type:c}=n,d=Dt(c,o,u),p=i&&!!a;return r.createElement("div",{className:ge(t,Bt.wrapper,{[Bt.descriptionBackup]:!i,[Bt.noLeftDetail]:d})},d?null:r.createElement(zt,{document:n,shouldShowDescription:p}),r.createElement("div",{className:Bt.saveButtonContainer},r.createElement(dt,{documentId:s,title:l})))}qt.propTypes={className:E.exports.string,document:E.exports.shape({articleCount:E.exports.number,description:E.exports.string,id:E.exports.number.isRequired,isSeries:E.exports.bool,title:E.exports.string.isRequired,type:E.exports.oneOf(Object.values(R)).isRequired}).isRequired,showDescription:E.exports.bool},qt.defaultProps={className:null,showDescription:!1};var Ft={wrapper:"BottomArticleSection-module_wrapper__8Om-n",descriptionBackup:"BottomArticleSection-module_descriptionBackup__IOxq5",image:"BottomArticleSection-module_image__QOUkF",saveButtonContainer:"BottomArticleSection-module_saveButtonContainer__QdJ6W"};function Zt(e){var{className:t,document:n,isDescriptionUndesiredImage:i,isDescriptionUndesiredText:o}=e,{id:a,title:s}=n;return r.createElement("div",{className:ge(t,Ft.wrapper,{[Ft.descriptionBackup]:o,[Ft.image]:i})},r.createElement(zt,{document:n,shouldShowDescription:!1}),r.createElement("div",{className:Ft.saveButtonContainer},r.createElement(dt,{documentId:a,title:s})))}Zt.propTypes={className:E.exports.string,document:E.exports.shape({id:E.exports.number.isRequired,title:E.exports.string.isRequired}).isRequired,isDescriptionUndesiredImage:E.exports.bool.isRequired,isDescriptionUndesiredText:E.exports.bool.isRequired},Zt.defaultProps={className:null};var Gt={authorLink:"Metadata-module_authorLink__lgGHv",contentType:"Metadata-module_contentType__mzFVJ",subTitleTextLabel:"Metadata-module_subTitleTextLabel__bYC7d",title:"Metadata-module_title__zZtUI",singleTitleLine:"Metadata-module_singleTitleLine__kWPuy"},Yt={avatar:"Article-module_avatar__JsZBJ",avatarFluid:"Article-module_avatarFluid__y1GnZ",avatarFluidNoDescription:"Article-module_avatarFluidNoDescription__zVoLg",contentType:"Article-module_contentType__LfFmM"};function Ht(e){var{author:t,cellType:n,className:u,publicationRetinaImageUrl:l,releasedAt:c,showDescription:d,title:p}=e,f=(0,s.ie)(c),h=function(e,t){return e?t?Yt.avatarFluid:Yt.avatarFluidNoDescription:Yt.avatar}(n===T.FLUID,d);return r.createElement("div",{className:u},r.createElement("div",{className:h},r.createElement(i.pd,{imageUrl:l,isAuthor:!0,size:Y.S,style:N.OUTLINE}),r.createElement(a.TX,{"data-e2e":"author"},t)),r.createElement("p",{className:ge(Gt.contentType,Yt.contentType),"data-e2e":"content-type"},o.Z.t("content_types.article")),r.createElement("p",{className:ge(Gt.title,{[Gt.singleTitleLine]:d}),"data-e2e":"title"},p),r.createElement("p",{className:Gt.subTitleTextLabel,"data-e2e":"publication-date"},f))}function Wt(e){var{author:t,authorUrl:n,className:s,handleAuthorClick:u,isSeries:l,showDescription:c,title:d}=e;return r.createElement("div",{className:s},r.createElement("p",{className:Gt.contentType,"data-e2e":"content-type"},l?o.Z.t("content_types.audiobook_series"):o.Z.t("content_types.audiobook")),r.createElement("p",{className:ge(Gt.title,{[Gt.singleTitleLine]:c}),"data-e2e":"title"},d),r.createElement(a.TX,null,o.Z.t("shared.common.title_author_separator")),r.createElement(i.Av,{className:Gt.authorLink,"data-e2e":"author",href:n,onClick:u,onKeyDown:u},t))}function Vt(e){var{author:t,authorUrl:n,className:s,handleAuthorClick:u,isSeries:l,showDescription:c,title:d}=e;return r.createElement("div",{className:s},r.createElement("p",{className:Gt.contentType,"data-e2e":"content-type"},l?o.Z.t("content_types.ebook_series"):o.Z.t("content_types.ebook")),r.createElement("p",{className:ge(Gt.title,{[Gt.singleTitleLine]:c}),"data-e2e":"title"},d),r.createElement(a.TX,null,o.Z.t("shared.common.title_author_separator")),r.createElement(i.Av,{className:Gt.authorLink,"data-e2e":"author",href:n,onClick:u,onKeyDown:u},t))}function Qt(e){var{author:t,className:n,showDescription:i,title:a}=e;return r.createElement("div",{className:n},r.createElement("p",{className:Gt.contentType,"data-e2e":"content-type"},o.Z.t("content_types.document")),r.createElement("p",{className:ge(Gt.title,{[Gt.singleTitleLine]:i}),"data-e2e":"title"},a),r.createElement("p",{className:Gt.subTitleTextLabel},o.Z.t("shared.common.added_by")," ",r.createElement("span",{"data-e2e":"author"},t)))}function Kt(e){var{author:t,className:n,showDescription:i,title:a}=e;return r.createElement("div",{className:n},r.createElement("p",{className:Gt.contentType,"data-e2e":"content-type"},o.Z.t("content_types.magazine")),r.createElement("p",{className:ge(Gt.title,{[Gt.singleTitleLine]:i}),"data-e2e":"author"},t),r.createElement("p",{className:Gt.subTitleTextLabel,"data-e2e":"title"},a))}function Xt(e){var{className:t,contentLength:n,showDescription:i,title:a}=e;return r.createElement("div",{className:t},r.createElement("p",{className:Gt.contentType,"data-e2e":"content-type"},o.Z.t("content_types.podcast")),r.createElement("p",{className:ge(Gt.title,{[Gt.singleTitleLine]:i}),"data-e2e":"title"},a),r.createElement("p",{className:Gt.subTitleTextLabel},o.Z.t("shared.podcast_series.num_episodes",{count:n})))}function $t(e){var{author:t,authorUrl:n,className:s,handleAuthorClick:u,showDescription:l,title:c}=e;return r.createElement("div",{className:s},r.createElement("p",{className:Gt.contentType,"data-e2e":"content-type"},o.Z.t("content_types.podcast_episode")),r.createElement("p",{className:ge(Gt.title,{[Gt.singleTitleLine]:l}),"data-e2e":"title"},c),r.createElement(a.TX,null,o.Z.t("shared.common.title_author_separator")),r.createElement(i.Av,{className:Gt.authorLink,"data-e2e":"author",href:n,onClick:u,onKeyDown:u},t))}function Jt(e){var{author:t,authorUrl:n,className:s,handleAuthorClick:u,showDescription:l,title:c}=e;return r.createElement("div",{className:s},r.createElement("p",{className:Gt.contentType,"data-e2e":"content-type"},o.Z.t("content_types.sheet_music")),r.createElement("p",{className:ge(Gt.title,{[Gt.singleTitleLine]:l}),"data-e2e":"title"},c),r.createElement(a.TX,null,o.Z.t("shared.common.title_author_separator")),r.createElement(i.Av,{className:Gt.authorLink,href:n,onClick:u,onKeyDown:u,"data-e2e":"author"},t))}function en(e){var{author:t,authorUrl:n,className:s,handleAuthorClick:u,showDescription:l,title:c}=e;return r.createElement("div",{className:s},r.createElement("p",{className:Gt.contentType,"data-e2e":"content-type"},o.Z.t("content_types.sheet_music")),r.createElement("p",{className:ge(Gt.title,{[Gt.singleTitleLine]:l}),"data-e2e":"title"},c),r.createElement(a.TX,null,o.Z.t("shared.common.title_author_separator")),r.createElement(i.Av,{className:Gt.authorLink,"data-e2e":"author",href:n,onClick:u,onKeyDown:u},t))}function tn(e){var{authorPossessive:t,className:n,showDescription:i,title:a}=e;return r.createElement("div",{className:n},r.createElement("p",{className:Gt.contentType,"data-e2e":"author"},o.Z.t("shared.common.key_insights")," ",t),r.createElement("p",{className:ge(Gt.title,{[Gt.singleTitleLine]:i}),"data-e2e":"title"},a))}Ht.propTypes={author:E.exports.string.isRequired,cellType:E.exports.oneOf(Object.values(T)),className:E.exports.string,publicationRetinaImageUrl:E.exports.string.isRequired,releasedAt:E.exports.string.isRequired,showDescription:E.exports.bool,title:E.exports.string.isRequired},Ht.defaultProps={cellType:T.FIXED,className:null,showDescription:!1},Wt.propTypes={author:E.exports.string.isRequired,authorUrl:E.exports.string.isRequired,className:E.exports.string,handleAuthorClick:E.exports.func.isRequired,isSeries:E.exports.bool,showDescription:E.exports.bool,title:E.exports.string.isRequired},Wt.defaultProps={className:null,isSeries:!1,showDescription:!1},Vt.propTypes={author:E.exports.string.isRequired,authorUrl:E.exports.string.isRequired,className:E.exports.string,handleAuthorClick:E.exports.func.isRequired,isSeries:E.exports.bool,showDescription:E.exports.bool,title:E.exports.string.isRequired},Vt.defaultProps={className:null,isSeries:!1,showDescription:!1},Qt.propTypes={author:E.exports.string.isRequired,className:E.exports.string,showDescription:E.exports.bool,title:E.exports.string.isRequired},Qt.defaultProps={className:null,showDescription:!1},Kt.propTypes={author:E.exports.string.isRequired,className:E.exports.string,showDescription:E.exports.bool,title:E.exports.string.isRequired},Kt.defaultProps={className:null,showDescription:!1},Xt.propTypes={className:E.exports.string,contentLength:E.exports.number.isRequired,showDescription:E.exports.bool,title:E.exports.string.isRequired},Xt.defaultProps={className:null,showDescription:!1},$t.propTypes={author:E.exports.string.isRequired,authorUrl:E.exports.string.isRequired,className:E.exports.string,handleAuthorClick:E.exports.func.isRequired,showDescription:E.exports.bool,title:E.exports.string.isRequired},$t.defaultProps={className:null,showDescription:!1},Jt.propTypes={author:E.exports.string.isRequired,authorUrl:E.exports.string.isRequired,className:E.exports.string,handleAuthorClick:E.exports.func.isRequired,showDescription:E.exports.bool,title:E.exports.string.isRequired},Jt.defaultProps={className:null,showDescription:!1},en.propTypes={author:E.exports.string.isRequired,authorUrl:E.exports.string.isRequired,className:E.exports.string,handleAuthorClick:E.exports.func.isRequired,showDescription:E.exports.bool,title:E.exports.string.isRequired},en.defaultProps={className:null,showDescription:!1},tn.propTypes={authorPossessive:E.exports.string.isRequired,className:E.exports.string,showDescription:E.exports.bool,title:E.exports.string.isRequired},tn.defaultProps={className:null,showDescription:!1};var nn={[R.ARTICLE]:Ht,[R.AUDIOBOOK]:Wt,[R.BOOK]:Vt,[R.DOCUMENT]:Qt,[R.MAGAZINE]:Kt,[R.PODCAST]:Xt,[R.PODCAST_EPISODE]:$t,[R.PUBLICATION_ISSUE]:Kt,[R.SHEET_MUSIC]:en,[R.SHEET_MUSIC_CHAPTER]:Jt,[R.SUMMARY_CANONICAL]:tn};function rn(e){var{author:t,authorPossessive:n,authorUrl:i,cellType:o,className:a,contentLength:s,description:u,handleAuthorClick:l,hasArticleImage:c,isSeries:d,publicationRetinaImageUrl:p,releasedAt:f,showDescription:h,title:g,type:m}=e,v=nn[m],_={author:t,authorPossessive:n,authorUrl:i,cellType:o,className:a,contentLength:s,description:u,handleAuthorClick:l,hasArticleImage:c,isSeries:d,publicationRetinaImageUrl:p,releasedAt:f,showDescription:h,title:g};return v?r.createElement(v,_):r.createElement(r.Fragment,null,"Placeholder")}rn.propTypes={author:E.exports.string,authorPossessive:E.exports.string,authorUrl:E.exports.string,cellType:E.exports.oneOf(Object.values(T)),className:E.exports.string,contentLength:E.exports.number,description:E.exports.string,handleAuthorClick:E.exports.func,hasArticleImage:E.exports.bool,isSeries:E.exports.bool,publicationRetinaImageUrl:E.exports.string,releasedAt:E.exports.string,showDescription:E.exports.bool,title:E.exports.string.isRequired,type:E.exports.oneOf(Object.values(R)).isRequired},rn.defaultProps={author:null,authorPossessive:null,authorUrl:null,cellType:T.FIXED,className:null,contentLength:null,description:null,handleAuthorClick:null,hasArticleImage:!0,isSeries:!1,publicationRetinaImageUrl:null,releasedAt:null,showDescription:!1};var on={accentColorContainer:"DefaultBody-module_accentColorContainer__-D-ZX",description:"DefaultBody-module_description__soBfS",metadata:"DefaultBody-module_metadata__hNDko",metadataNoDescription:"DefaultBody-module_metadataNoDescription__mkVIt"};function an(e){var{document:t,showDescription:n}=e,{className:i,description:o,id:a,imageUrl:u,retinaImageUrl:l,title:c,type:d}=t,p=(0,s.e9)(null,null,null,a);return r.createElement("div",{className:i},r.createElement("div",{className:on.accentColorContainer,style:{backgroundColor:p}},r.createElement(oe,{imageUrl:u,retinaImageUrl:l,title:c,type:d})),r.createElement(rn,de({},t,{cellType:T.FLUID,className:ge(on.metadata,{[on.metadataNoDescription]:!n}),showDescription:n,handleAuthorClick:e=>{e.stopPropagation()}})),n?r.createElement("p",{"data-testid":"description",className:on.description},o||null):null)}an.propTypes={document:E.exports.shape({className:E.exports.string,description:E.exports.string,id:E.exports.number,imageUrl:E.exports.string,retinaImageUrl:E.exports.string,title:E.exports.string.isRequired,type:E.exports.string.isRequired}).isRequired,showDescription:E.exports.bool},an.defaultProps={showDescription:!1};var sn={description:"ArticleBody-module_description__5C6zJ",descriptionWithImage:"ArticleBody-module_descriptionWithImage__fBMkl",forcedDescription:"ArticleBody-module_forcedDescription__5qsVm",image:"ArticleBody-module_image__WXkLw",imageWithoutDescription:"ArticleBody-module_imageWithoutDescription__dzdd3",metadata:"ArticleBody-module_metadata__DNQVQ",metadataDescription:"ArticleBody-module_metadataDescription__kmZFu",metadataNoDescription:"ArticleBody-module_metadataNoDescription__56lzC",metadataForcedDescription:"ArticleBody-module_metadataForcedDescription__TfjLF"};function un(e){var{document:t,showDescription:n}=e,{className:i,description:o,imageUrl:a,retinaImageUrl:s,title:u}=t,l=!!o,c=!!a,d=n&&l||!n&&!c,p=n&&l&&!c,f=n&&l&&c,h=!n&&l&&!c,g=!n&&c;return r.createElement("div",{className:i},r.createElement(rn,de({},t,{cellType:T.FLUID,className:ge(sn.metadata,{[sn.metadataDescription]:p,[sn.metadataNoDescription]:!n,[sn.metadataForcedDescription]:h}),showDescription:n,handleAuthorClick:e=>{e.stopPropagation()}})),d?r.createElement("p",{"data-testid":"description",className:ge(sn.description,{[sn.descriptionWithImage]:f,[sn.forcedDescription]:h})},o):null,c?r.createElement("img",{className:ge(sn.image,{[sn.imageWithoutDescription]:g}),src:a,srcSet:s,alt:u}):null)}un.propTypes={document:E.exports.shape({className:E.exports.string,description:E.exports.string,imageUrl:E.exports.string,retinaImageUrl:E.exports.string,title:E.exports.string.isRequired}).isRequired,showDescription:E.exports.bool},un.defaultProps={showDescription:!1};var ln="FluidCell-module_wrapper__XokYW",cn="FluidCell-module_textWrapper__JCnqC",dn="FluidCell-module_linkOverlay__v8dDs",pn=[R.ARTICLE,R.AUDIOBOOK,R.BOOK,R.DOCUMENT,R.MAGAZINE,R.PODCAST,R.PODCAST_EPISODE,R.PUBLICATION_ISSUE,R.SHEET_MUSIC,R.SHEET_MUSIC_CHAPTER,R.SUMMARY_CANONICAL];function fn(e){var{cellConfiguration:t,document:n}=e,{className:i,description:o,imageUrl:s,previewUrl:u,title:l,type:c}=n;if(!pn.includes(c))return Et("FluidCell",c),null;var d=t.showDescription,p=d&&!!o,f=c===R.ARTICLE,h=!!s,g=!d&&h,m=!d&&!h;return r.createElement("article",{className:ge(i,ln,{[cn]:p}),"data-e2e":"cell"},r.createElement("a",{className:dn,href:u},r.createElement(a.TX,null,l)),f?r.createElement(r.Fragment,null,r.createElement(un,{document:n,showDescription:d}),r.createElement(Zt,{document:n,isDescriptionUndesiredImage:g,isDescriptionUndesiredText:m})):r.createElement(r.Fragment,null,r.createElement(an,{document:n,showDescription:d}),r.createElement(qt,{document:n,showDescription:d})))}fn.propTypes={cellConfiguration:E.exports.shape({showDescription:E.exports.bool.isRequired}).isRequired,document:E.exports.shape({className:E.exports.string,description:E.exports.string,imageUrl:E.exports.string,previewUrl:E.exports.string,title:E.exports.string.isRequired,type:E.exports.string.isRequired}).isRequired},fn.defaultProps={};var hn=(0,u.$j)(((e,t)=>{var{documentId:n}=t;return{document:f.Z(n)(e)}}),null)(fn),gn="NewsRackCell-module_wrapper__bcWMx",mn="NewsRackCell-module_image__WhLwS",vn="NewsRackCell-module_link__IQO-w",_n="NewsRackCell-module_title__B5pq6";function An(e){var{className:t,document:n}=e,{imageUrl:i,previewUrl:o,retinaImageUrl:s,title:u}=n;return r.createElement("article",{className:ge(t,gn),"data-e2e":"cell"},r.createElement("a",{className:vn,href:o},r.createElement("span",{className:_n,"data-e2e":"title"},u),r.createElement(a.wY,{className:mn,altText:u,src:i,srcSet:s})))}An.propTypes={className:E.exports.string,document:E.exports.shape({imageUrl:E.exports.string.isRequired,previewUrl:E.exports.string.isRequired,retinaImageUrl:E.exports.string.isRequired,title:E.exports.string.isRequired}).isRequired},An.defaultProps={className:null};var yn=(0,u.$j)(((e,t)=>{var{documentId:n}=t;return{document:f.Z(n)(e)}}),null)(An),bn=[R.ARTICLE,R.AUDIOBOOK,R.BOOK,R.DOCUMENT,R.PUBLICATION_ISSUE,R.PODCAST,R.PODCAST_EPISODE,R.SHEET_MUSIC,R.SHEET_MUSIC_CHAPTER,R.SUMMARY_CANONICAL];function En(e){var{document:t}=e,{description:n,imageUrl:i,retinaImageUrl:o,title:s}=t;return i?r.createElement(a.wY,{altText:s,className:Pt.articleImage,src:i,srcSet:"".concat(o," 2x")}):r.createElement("p",{className:Pt.articleDescription,"data-e2e":"description"},n)}function wn(e){var{document:t,isQuickviewOpen:n}=e,{author:i,publicationRetinaImageUrl:o,releasedAt:a,title:s}=t;return r.createElement(r.Fragment,null,r.createElement(Ht,{author:i,className:ge(Pt.metadata,Pt.articleMetadata),publicationRetinaImageUrl:o,releasedAt:a,title:s}),n?null:r.createElement(En,{document:t}))}En.propTypes={document:E.exports.shape({description:E.exports.string,imageUrl:E.exports.string,retinaImageUrl:E.exports.string,title:E.exports.string}).isRequired},wn.propTypes={document:E.exports.shape({author:E.exports.string,description:E.exports.string,imageUrl:E.exports.string,publicationRetinaImageUrl:E.exports.string,releasedAt:E.exports.string,retinaImageUrl:E.exports.string,title:E.exports.string}).isRequired,isQuickviewOpen:E.exports.bool.isRequired};var xn={overlay:"QuickviewCell-module_overlay__TAxDu",quickviewOpenWrapper:"QuickviewCell-module_quickviewOpenWrapper__8M9Oj",quickviewOpenAccentColorContainer:"QuickviewCell-module_quickviewOpenAccentColorContainer__3wL9T",article:"QuickviewCell-module_article__kiWJ7",active:"QuickviewCell-module_active__R3HIX",inactive:"QuickviewCell-module_inactive__kENVw"};function In(e){var{backgroundColor:t,document:n,handleAuthorClick:i,isQuickviewOpen:o}=e,{imageUrl:a,retinaImageUrl:s,title:u,type:l}=n;return r.createElement(r.Fragment,null,r.createElement("div",{className:ge(Pt.accentColorContainer,{[xn.quickviewOpenAccentColorContainer]:o}),style:{backgroundColor:t}},r.createElement(oe,{imageUrl:a,retinaImageUrl:s,title:u,type:l})),o?null:r.createElement(rn,de({},n,{className:Pt.metadata,handleAuthorClick:i})))}In.propTypes={backgroundColor:E.exports.string.isRequired,document:E.exports.shape({author:E.exports.string,authorPossessive:E.exports.string,authorUrl:E.exports.string,className:E.exports.string,contentLength:E.exports.number,description:E.exports.string,imageUrl:E.exports.string,publicationRetinaImageUrl:E.exports.string,releasedAt:E.exports.string,retinaImageUrl:E.exports.string,title:E.exports.string.isRequired,type:E.exports.oneOf(Object.values(R)).isRequired}).isRequired,handleAuthorClick:E.exports.func.isRequired,isQuickviewOpen:E.exports.bool.isRequired};var Mn={[Z.ACTIVE]:xn.active,[Z.INACTIVE]:xn.inactive};function Sn(e){var{displayType:t,document:n,documentId:i,page:o,onClick:u,linkRef:l,showSavedCell:c}=e;if(!n)return bt(i),null;var{className:d,id:p,percentCompleted:f,title:h,type:g}=n,m=()=>c?r.createElement("div",{className:Pt.savedBottomSection},r.createElement(jt,de({},n,{page:o,percentCompleted:null!==f&&void 0!==f?f:0}))):r.createElement(kt,de({},n,{page:o}));if(!bn.includes(g))return Et("QuickviewCell",g),null;var v={"data-e2e":"quickview-cell",["data-".concat(P.QUICKVIEW_CELL)]:p},_=g===R.ARTICLE,A=t!==Z.DEFAULT,y=t===Z.ACTIVE;return r.createElement("article",de({className:ge(d,Pt.wrapper,Mn[t],{[Pt.article]:_,[xn.article]:_,[xn.quickviewOpenWrapper]:A})},v),r.createElement("a",{className:ge(Pt.linkOverlay,xn.overlay),onClick:function(e){u(e,n)},onKeyDown:function(e){e.which!==s.keyMappings.space&&e.which!==s.keyMappings.enter||u(e,n)},href:yt(n,c),ref:l,"aria-expanded":y},r.createElement(a.TX,null,h)),_?r.createElement(wn,{document:n,isQuickviewOpen:A}):r.createElement(In,{backgroundColor:(0,s.e9)(null,null,null,p),document:n,handleAuthorClick:e=>{e.stopPropagation()},isQuickviewOpen:A}),A?null:r.createElement(m,null))}Sn.propTypes={displayType:E.exports.oneOf(Object.values(Z)).isRequired,document:E.exports.object.isRequired,documentId:E.exports.number.isRequired,linkRef:E.exports.shape({current:E.exports.any}),onClick:E.exports.func.isRequired,page:E.exports.string.isRequired,showSavedCell:E.exports.bool.isRequired},Sn.defaultProps={linkRef:null};var Cn=(0,u.$j)(((e,t)=>{var{documentId:n}=t;return{document:f.Z(n)(e)}}),null)(Sn),Nn="RemovedCell-module_wrapper__6IGH-",Tn="RemovedCell-module_author__TgmWt",Ln="RemovedCell-module_content__3nG6K",Dn="RemovedCell-module_metadata__cEhQc",On="RemovedCell-module_removed__i5GYH",kn="RemovedCell-module_title__Rgd0u",Rn="RemovedCell-module_undoButton__YnGq-",jn="RemovedCell-module_quickviewOpenWrapper__-bXPf";function Pn(e){var{author:t,displayType:n,id:s,title:u,addDocumentToSaved:l}=e,c={"data-e2e":"removed-cell",["data-".concat(P.QUICKVIEW_CELL)]:s},d=n!==Z.DEFAULT;return r.createElement("div",de({className:ge(Nn,{[jn]:d})},c),r.createElement("div",{className:Ln},r.createElement("div",{className:Dn},r.createElement("div",{className:kn,"data-e2e":"title"},u),r.createElement("div",{className:Tn,"data-e2e":"author"},t),r.createElement("div",{className:On},o.Z.t("shared.common.removed_from_your_saved_list"))),r.createElement(i.Av,{className:Rn,"data-e2e":"undo-button",onClick:l},r.createElement(a.TX,null,o.Z.t("shared.common.undo_title_removed_from_saved",{title:u})),o.Z.t("shared.common.undo"))))}Pn.propTypes={author:E.exports.string.isRequired,displayType:E.exports.oneOf(Object.values(Z)),id:E.exports.number.isRequired,title:E.exports.string.isRequired,addDocumentToSaved:E.exports.func.isRequired},Pn.defaultProps={displayType:Z.DEFAULT};var Un=(0,u.$j)(null,((e,t)=>({addDocumentToSaved:()=>e((0,c.Z)(t.id))})))(Pn);function zn(e){var{document:t,displayType:n,isSaved:i,linkRef:o,onClick:a,page:s,showSavedCell:u}=e,{author:l,id:c,title:d}=t;return i?r.createElement(Cn,{documentId:c,page:s,displayType:n,linkRef:o,onClick:a,showSavedCell:u}):r.createElement(Un,{author:l,id:c,title:d,displayType:n})}zn.propTypes={document:E.exports.object.isRequired,displayType:E.exports.oneOf(Object.values(Z)).isRequired,isSaved:E.exports.bool.isRequired,linkRef:E.exports.shape({current:E.exports.any}),onClick:E.exports.func.isRequired,page:E.exports.string.isRequired,showSavedCell:E.exports.bool.isRequired};var Bn=(0,u.$j)(((e,t)=>{var{documentId:n}=t,{saved:r,finished:i}=e.savedDocuments;return{isSaved:!(!r[n]&&!i[n]),document:f.Z(n)(e)}}),null)(zn);function qn(){return qn=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function Zn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Gn,Yn,Hn,Wn;function Vn(){if(Yn)return Gn;Yn=1;return Gn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Qn(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}(function(){if(Wn)return Hn;Wn=1;var e=Vn();function t(){}function n(){}return n.resetWarningCache=t,Hn=function(){function r(t,n,r,i,o,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}})()();var Kn=!1,Xn=r.createContext(null),$n="unmounted",Jn="exited",er="entering",tr="entered",nr="exiting",rr=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Jn,r.appearStatus=er):i=tr:i=t.unmountOnExit||t.mountOnEnter?$n:Jn,r.state={status:i},r.nextCallback=null,r}Zn(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===$n?{status:Jn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==er&&n!==tr&&(t=er):n!==er&&n!==tr||(t=nr)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===er?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===Jn&&this.setState({status:$n})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[b.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||Kn?this.safeSetState({status:tr},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:er},(function(){t.props.onEntering(o,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:tr},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:b.findDOMNode(this);t&&!Kn?(this.props.onExit(r),this.safeSetState({status:nr},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Jn},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Jn},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:b.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===$n)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var i=Fn(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.createElement(Xn.Provider,{value:null},"function"===typeof n?n(e,i):r.cloneElement(r.Children.only(n),i))},t}(r.Component);function ir(){}rr.contextType=Xn,rr.propTypes={},rr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ir,onEntering:ir,onEntered:ir,onExit:ir,onExiting:ir,onExited:ir},rr.UNMOUNTED=$n,rr.EXITED=Jn,rr.ENTERING=er,rr.ENTERED=tr,rr.EXITING=nr;var or=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},ar=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=Qn(n.className,r):n.setAttribute("class",Qn(n.className&&n.className.baseVal||"",r)));var n,r}))},sr=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i{var{children:n,className:i,"data-e2e":o}=e;return r.createElement("div",{ref:t,className:Nr(Tr,i),"data-e2e":o},n)}));function Dr(e){var{children:t,className:n,"data-e2e":i}=e;return r.createElement("div",{className:Nr(br.wrapper,n),"data-e2e":i},t)}Lr.displayName="GridContainer",Lr.propTypes={"data-e2e":Er.exports.string,children:Er.exports.oneOfType([Er.exports.arrayOf(Er.exports.node),Er.exports.node]).isRequired,className:Er.exports.string},Dr.propTypes={"data-e2e":Er.exports.string,children:Er.exports.any.isRequired,className:Er.exports.string};var Or={XL:"xl",L:"l",M:"m",S:"s",XS:"xs",XXS:"xxs"},kr={[Or.XL]:12,[Or.L]:12,[Or.M]:8,[Or.S]:4,[Or.XS]:4,[Or.XXS]:4},Rr=Object.values(Or),jr=[0,1,2,3,4,5,6,7,8,9,10,11,12];var Pr={wrapper:"GridColumn-module_wrapper__soqyu",xl_1:"GridColumn-module_xl_1__JReNg",xl_2:"GridColumn-module_xl_2__ry9yU",xl_3:"GridColumn-module_xl_3__OHlvX",xl_4:"GridColumn-module_xl_4__brxcj",xl_5:"GridColumn-module_xl_5__tH7mr",xl_6:"GridColumn-module_xl_6__Z53p6",xl_7:"GridColumn-module_xl_7__oZhoo",xl_8:"GridColumn-module_xl_8__pFyML",xl_9:"GridColumn-module_xl_9__cFKGC",xl_10:"GridColumn-module_xl_10__vZk48",xl_11:"GridColumn-module_xl_11__FexeR",xl_12:"GridColumn-module_xl_12__YZ-Rh",hide_above_xl:"GridColumn-module_hide_above_xl__erar5",hide_below_xl:"GridColumn-module_hide_below_xl__bqFPJ",l_1:"GridColumn-module_l_1__WzmV4",l_2:"GridColumn-module_l_2__Pw-g3",l_3:"GridColumn-module_l_3__K7iWt",l_4:"GridColumn-module_l_4__RAT6-",l_5:"GridColumn-module_l_5__8aWIR",l_6:"GridColumn-module_l_6__MgTYy",l_7:"GridColumn-module_l_7__-W6T1",l_8:"GridColumn-module_l_8__thtI5",l_9:"GridColumn-module_l_9__5JHTC",l_10:"GridColumn-module_l_10__I0f3o",l_11:"GridColumn-module_l_11__RUenR",l_12:"GridColumn-module_l_12__FvEF8",hide_above_l:"GridColumn-module_hide_above_l__UT1-z",hide_below_l:"GridColumn-module_hide_below_l__7M0-X",m_1:"GridColumn-module_m_1__YQJCo",m_2:"GridColumn-module_m_2__c8w6C",m_3:"GridColumn-module_m_3__RA-At",m_4:"GridColumn-module_m_4__6iIKY",m_5:"GridColumn-module_m_5__gTusg",m_6:"GridColumn-module_m_6__iVJpe",m_7:"GridColumn-module_m_7__pou8a",m_8:"GridColumn-module_m_8__3ZSLb",hide_above_m:"GridColumn-module_hide_above_m__zwIrv",hide_below_m:"GridColumn-module_hide_below_m__-PoVO",s_1:"GridColumn-module_s_1__XLGHz",s_2:"GridColumn-module_s_2__1-ptI",s_3:"GridColumn-module_s_3__gGW-l",s_4:"GridColumn-module_s_4__21RHi",hide_above_s:"GridColumn-module_hide_above_s__NbVNC",hide_below_s:"GridColumn-module_hide_below_s__Lbw11",xs_1:"GridColumn-module_xs_1__yycpU",xs_2:"GridColumn-module_xs_2__lfNOB",xs_3:"GridColumn-module_xs_3__2UqhV",xs_4:"GridColumn-module_xs_4__HIdGd",hide_above_xs:"GridColumn-module_hide_above_xs__k1r-Z",hide_below_xs:"GridColumn-module_hide_below_xs__lGMfM",xxs_1:"GridColumn-module_xxs_1__lPpo1",xxs_2:"GridColumn-module_xxs_2__L2HPM",xxs_3:"GridColumn-module_xxs_3__lRrol",xxs_4:"GridColumn-module_xxs_4__qVTq6",hide_above_xxs:"GridColumn-module_hide_above_xxs__h8jYZ",hide_below_xxs:"GridColumn-module_hide_below_xxs__PtxIg"};function Ur(e){var{"data-e2e":t,children:n,className:i,xxs:o,xs:a,s,m:u,l,xl:c,hideAbove:d,hideBelow:p}=e,f={xxs:o,xs:a,s,m:u,l,xl:c},h={},g=0;Rr.forEach((e=>{h[e]=f[e]||g,g=h[e]}));var m=function(e){if(!e)return[];var t=Rr.indexOf(e);return Rr.reduce(((e,n,r)=>r<=t?e.concat("hide_above_".concat(n)):e),[])}(d).concat(function(e){if(!e)return[];var t=Rr.indexOf(e);return Rr.reduce(((e,n,r)=>r>t?e.concat("hide_below_".concat(n)):e),[])}(p)).concat(function(e){var t=[];for(var n in e){var r=kr[n]||0,i=Math.min(e[n],r);i>0&&t.push("".concat(n,"_").concat(i))}return t}(h)).map((e=>Pr[e]));return r.createElement("div",{className:Nr(Pr.wrapper,m,i),"data-e2e":t},n)}function zr(e,t){var n=(0,s.Ng)(e);if(0===n.length)return s.ZT;function r(e){(0,s._h)({event:e,children:n,exitFunction:t,tabCycle:!0})}return n[0].focus({preventScroll:!0}),document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}Ur.propTypes={"data-e2e":Er.exports.string,children:Er.exports.oneOfType([Er.exports.arrayOf(Er.exports.node),Er.exports.node]),xxs:Er.exports.oneOf(jr),xs:Er.exports.oneOf(jr),s:Er.exports.oneOf(jr),m:Er.exports.oneOf(jr),l:Er.exports.oneOf(jr),xl:Er.exports.oneOf(jr),hideBelow:Er.exports.oneOf(Rr),hideAbove:Er.exports.oneOf(Rr),className:Er.exports.string},Ur.defaultProps={children:null,xxs:0,xs:0,s:0,m:0,l:0,xl:kr[Or.XL],hideBelow:null,hideAbove:null};var Br="content_quickview:expanded:click",qr={ALSO_AVAILABLE:"also_available",AUTHOR:"author",CTA:"cta",MORE_ABOUT:"more_about",RATING:"rating",READ_MORE:"read_more",SAVE:"save",TITLE:"title"},Fr={LISTEN_NOW:"listen_now",PLAY_SAMPLE:"play_sample",READ_NOW:"read_now",READ_PREVIEW:"read_preview",RESTART_SUBSCRIPTION:"restart_subscription",RESUME_SUBSCRIPTION:"resume_subscription",START_TRIAL:"start_trial",VIEW_ALL_ARTICLES:"view_all_articles",VIEW_ALL_EPISODES:"view_all_episodes",VIEW_TITLES_IN_SERIES:"view_titles_in_series"};function Zr(e){var{documentId:t,linkType:n,authorName:r,contentType:i,ctaType:o}=e,a={doc_id:t,link_type:n};return r&&(a.author_name=r),i&&(a.content_type=i),o&&(a.cta_type=o),()=>{(0,s.L9)(Br,a)}}function Gr(e,t){return Zr({ctaType:t,documentId:e,linkType:qr.CTA})}var Yr={wrapper:"ContentTitle-module_wrapper__60NNj",isKeyboardFocus:"ContentTitle-module_isKeyboardFocus__6gO-6",title:"ContentTitle-module_title__9NxO8",longTitle:"ContentTitle-module_longTitle__mjALX"};function Hr(e){var{children:t,className:n,"data-e2e":o,documentId:a,href:s,isLongTitle:l,title:c}=e,d=(0,u.v9)((e=>e.viewport.isKeyboardUser));return r.createElement(i.Av,{className:ge(Yr.wrapper,n,{[Yr.isKeyboardFocus]:d}),href:s,onClick:Zr({documentId:a,linkType:qr.TITLE})},r.createElement("h3",{className:ge(Yr.title,{[Yr.longTitle]:l}),"data-e2e":o,"data-title":c},t||c))}Hr.propTypes={children:E.exports.node,className:E.exports.string,"data-e2e":E.exports.string.isRequired,documentId:E.exports.number,isLongTitle:E.exports.bool,href:E.exports.string,title:E.exports.string},Hr.defaultProps={children:null,className:null,documentId:null,isLongTitle:!1,title:null};var Wr={description:"Description-module_description__E0J9F"};function Vr(e){var{description:t,className:n}=e;return t?r.createElement("div",null,r.createElement(a.TX,{tag:"h2"},o.Z.t("shared.common.description")),r.createElement("div",{className:ge(Wr.description,n),dangerouslySetInnerHTML:{__html:t},"data-e2e":"description"})):null}Vr.propTypes={description:E.exports.string,className:E.exports.string},Vr.defaultProps={description:null};var Qr={exports:{}};!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r{var{children:t,href:n,className:i,size:o,style:s}=e,u=Kr(Jr.wrapper,i,Jr[o],Jr[s]);return r.createElement(a.Av,{className:u,href:n},t)};ei.propTypes={children:E.exports.oneOfType([E.exports.string,E.exports.element]).isRequired,className:E.exports.string,href:E.exports.string.isRequired,size:E.exports.oneOf(Object.values(Xr)),style:E.exports.oneOf(Object.values($r))},ei.defaultProps={size:Xr.L,style:$r.DEFAULT};var ti=30;var ni={wrapper:"QuickviewCategories-module_wrapper__mjJdW",contentTagItem:"QuickviewCategories-module_contentTagItem__6Ua9u"};function ri(e){var{categories:t}=e;if(0===t.length)return null;var n=(0,r.useRef)(null),i=function(e,t){var[n,i]=(0,r.useState)([...e]);return(0,r.useLayoutEffect)((()=>{if(!(t.current.clientHeight<=ti)){var e=0;Array.from(t.current.children).forEach((t=>{t.offsetTop>0&&e--})),i(n.slice(0,e))}}),[]),n}(t,n);return r.createElement("div",{className:ni.wrapper,ref:n},i.map((e=>r.createElement(ei,{className:ni.contentTagItem,href:e.href,key:e.id,style:$r.DEFAULT_WITH_OUTLINE},e.label))))}ri.propTypes={categories:E.exports.arrayOf(E.exports.shape({id:E.exports.number.isRequired,href:E.exports.string.isRequired,label:E.exports.string.isRequired}))},ri.defaultProps={categories:[]};var ii=[R.AUDIOBOOK,R.PODCAST_EPISODE],oi=[R.AUDIOBOOK,R.BOOK,R.DOCUMENT,R.PODCAST_EPISODE];function ai(e){var{consumptionTime:t,contentType:n,isSeries:r,length:i,showSavedCell:s,timeRemaining:u}=e;if(oi.includes(n)&&s&&!r)return function(e,t){return ii.includes(e)?Mt(t):o.Z.t("shared.time_remaining.pages",{count:t})}(n,u);switch(n){case R.ARTICLE:return o.Z.t("content_lengths.reading_minutes",{minutes:wt(t)});case R.SUMMARY_CANONICAL:return o.Z.t("shared.content_lengths.minute_with_count",{count:wt(t)});default:return(0,a.id)(n,i,r)}}var si={wrapper:"QuickviewPanel-common-module_wrapper__iFtPV",innerWrapper:"QuickviewPanel-common-module_innerWrapper__B1ylq",panelContainer:"QuickviewPanel-common-module_panelContainer__tZJKK",closeButtonWrapper:"QuickviewPanel-common-module_closeButtonWrapper__dHwmx",metadata:"QuickviewPanel-common-module_metadata__v-9vP",thumbRatings:"QuickviewPanel-common-module_thumbRatings__Nbrnf",offsetContainer:"QuickviewPanel-common-module_offsetContainer__7fG23",bottomSection:"QuickviewPanel-common-module_bottomSection__FArRJ",ctaContainer:"QuickviewPanel-common-module_ctaContainer__lv7m-",ctasWrapper:"QuickviewPanel-common-module_ctasWrapper__Y5tzB",dot:"QuickviewPanel-common-module_dot__8dlX5",enter:"QuickviewPanel-common-module_enter__ubFMJ",enterActive:"QuickviewPanel-common-module_enterActive__Fhkvr",exit:"QuickviewPanel-common-module_exit__ZVZcU",exitActive:"QuickviewPanel-common-module_exitActive__pUKXz"};function ui(e){var{consumptionTime:t,contentLength:n,contentType:i,isSeries:o,showSavedCell:a,timeRemaining:s,titleCount:u}=e;if(!n&&!t&&!a&&!s)return null;var l=ai({consumptionTime:t,contentType:i,isSeries:o,length:o?u:n,showSavedCell:a,timeRemaining:s});return r.createElement(r.Fragment,null,r.createElement(et,{className:si.dot}),r.createElement("span",null,l))}ui.propTypes={consumptionTime:E.exports.number,contentLength:E.exports.number,contentType:E.exports.string.isRequired,isSeries:E.exports.bool,showSavedCell:E.exports.bool,timeRemaining:E.exports.number,titleCount:E.exports.number},ui.defaultProps={consumptionTime:null,contentLength:null,isSeries:!1,showSavedCell:!1,timeRemaining:null,titleCount:null};var li={wrapper:"SingleAuthorByline-module_wrapper__dw9Fe",author:"SingleAuthorByline-module_author__sgkhF"};function ci(e){var{"data-e2e":t,documentId:n,authorName:o,authorUrl:a,label:s}=e;return o?r.createElement("p",{className:li.wrapper,onClick:Zr({documentId:n,linkType:qr.AUTHOR,authorName:o})},s,a?r.createElement(i.Av,{className:li.author,href:a,"data-e2e":t},o):r.createElement("span",{className:li.author,"data-e2e":t},o)):null}ci.propTypes={"data-e2e":E.exports.string.isRequired,authorName:E.exports.string,authorUrl:E.exports.string,documentId:E.exports.number.isRequired,label:E.exports.string.isRequired},ci.defaultProps={authorName:null,authorUrl:null};var di={wrapper:"MoreAboutThisTitle-module_wrapper__N9CBt"};function pi(e){var{contentType:t,documentId:n,isSeries:a,previewUrl:s}=e;return r.createElement(i.Av,{className:di.wrapper,"data-e2e":"quickview-more-about-this-title-btn",href:s,onClick:Zr({documentId:n,linkType:qr.MORE_ABOUT})},function(e,t){if(t)return o.Z.t("home.logged_in.content_quickview.more_about_this_series");switch(e){case R.ARTICLE:return o.Z.t("home.logged_in.content_quickview.more_about_this_issue");case R.PODCAST_EPISODE:return o.Z.t("home.logged_in.content_quickview.more_about_this_episode");case R.SUMMARY_CANONICAL:return o.Z.t("home.logged_in.content_quickview.more_about_this_summary");default:return o.Z.t("shared.common.more_about_this_title")}}(t,a))}pi.propTypes={contentType:E.exports.string,documentId:E.exports.number.isRequired,isSeries:E.exports.bool,previewUrl:E.exports.string.isRequired},pi.defaultProps={contentType:null,isSeries:!1};var fi={exports:{}};!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r{var{"aria-label":t,"data-e2e":n,buttonStyle:i,children:o,className:a,disabled:u,onClick:l,onFocus:c,onKeyDown:d,onKeyPress:p,onKeyUp:f,onMouseDown:h,href:g,icon:m,rel:v,role:_,size:A,tabIndex:y,target:b,type:E}=e,w=(0,s.Nn)(g,b),x="button";return w&&(x="a"),r.createElement(x,{"aria-disabled":u?"true":"false","aria-label":t,className:hi(vi.wrapper,vi[i],vi[A],a,{[vi.disabled]:u}),"data-e2e":n,href:g,onClick:l,onFocus:c,onKeyDown:d,onKeyPress:p,onKeyUp:f,onMouseDown:h,rel:w?v:null,role:_,tabIndex:y,target:b,type:w?null:E},r.createElement("div",{className:vi.content},m?r.createElement(m,{"data-e2e":"btn-icon",className:vi.icon}):null,r.createElement("div",{className:hi(vi.children,{[vi.leftAlignedText]:Boolean(m)})},o)))};function Ai(e){var{onClick:t,readUrl:n}=e;return r.createElement(_i,{href:n,"data-e2e":"read-preview-button",onClick:t,size:gi.LARGE},o.Z.t("shared.actions.read_preview"))}function yi(e){var{isSaved:t}=e;return t?o.Z.t("shared.common.saved"):r.createElement(r.Fragment,null,r.createElement(i.d7,{atAndAbove:!0,size:Y.M},o.Z.t("shared.common.save")),r.createElement(i.d7,{below:!0,size:Y.M},o.Z.t("shared.common.save_for_later")))}_i.propTypes={"aria-label":E.exports.string,"data-e2e":E.exports.string,buttonStyle:E.exports.oneOf(Object.values(mi)),children:E.exports.oneOfType([E.exports.array,E.exports.element,E.exports.string]).isRequired,className:E.exports.string,disabled:E.exports.bool,onClick:E.exports.func,onFocus:E.exports.func,onKeyDown:E.exports.func,onKeyPress:E.exports.func,onKeyUp:E.exports.func,onMouseDown:E.exports.func,href:E.exports.string,icon:E.exports.elementType,rel:E.exports.string,role:E.exports.string,size:E.exports.oneOf(Object.values(gi)),tabIndex:E.exports.string,target:E.exports.string,type:E.exports.oneOf(Object.values({BUTTON:"button",SUBMIT:"submit"}))},_i.defaultProps={"aria-label":null,"data-e2e":null,buttonStyle:mi.DEFAULT,className:"",disabled:!1,icon:null,rel:null,size:gi.LARGE,type:"button"},Ai.defaultProps={onClick:s.ZT},Ai.propTypes={onClick:E.exports.func,readUrl:E.exports.string.isRequired},yi.propTypes={isSaved:E.exports.bool},yi.defaultProps={isSaved:!1};var bi=150;function Ei(e){var t,{document:n,isDisabled:i,isSaved:a,onClick:s}=e,[u,l]=(0,r.useState)(!1),c={title:(t=n.title,t.length<=bi?t:"".concat(t.slice(0,bi),"\u2026"))},d=a?o.Z.t("shared.common.library.remove_with_title",c):o.Z.t("shared.common.library.add_with_title",c),p=function(){var e=le((function*(){try{l(!0),yield s(a)}finally{l(!1)}}));return function(){return e.apply(this,arguments)}}();return r.createElement(_i,{"aria-label":d,"data-e2e":"quickview-save-btn",disabled:u||i,icon:a?it:rt,onClick:p,size:gi.LARGE,title:n.title},r.createElement(yi,{isSaved:a}))}Ei.propTypes={document:E.exports.shape({id:E.exports.number.isRequired,title:E.exports.string.isRequired}).isRequired,isDisabled:E.exports.bool,isSaved:E.exports.bool.isRequired,onClick:E.exports.func.isRequired,page:E.exports.string.isRequired},Ei.defaultProps={isDisabled:!1};var wi=(0,u.$j)(((e,t)=>{var{document:n}=t,{saved:r,finished:i}=e.savedDocuments;return{isSaved:n.id in r||n.id in i}}),((e,t)=>{var{document:n,page:r,requireConfirmation:i}=t;return{onClick:t=>{var a=function(e,t,n){if(!t)return(0,c.Z)(e);var r={name:U,isDismissable:!0,modalProps:{documentId:e,shouldCloseQuickivewOnUnsave:!0}};return n?(0,d.Z)(r):(0,p.Z)(e)}(n.id,t,i);return(0,s.L9)("library_btn:add_to_library:click",{doc_id:n.id,action:t?"remove":"add",page:r,source:"content_quickview"}),e((0,l.Z)((()=>e(a)),{trackingData:{page:r},signUpText:{topTag:o.Z.t("shared.common.library.sign_up_to_save")},loginParams:{add_to_library:n.id}}))}}}))(Ei);function xi(e){var{document:t,page:n,userContentStatus:i,inSavedCarousel:o}=e,{readUrl:u}=t,l=Gr(t.id,Fr.READ_PREVIEW);switch(i){case q.LOGGED_IN_SUBSCRIBER:case q.LOGGED_IN_FULL_ACCESS:case q.SUBSCRIBER_FULL_ACCESS:case q.SUBSCRIBER_DUNNING_LOCK:case q.USING_PROMO_CODE:return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.Gm,de({onClick:Gr(t.id,Fr.READ_NOW)},t)),r.createElement(wi,{document:t,page:n,requireConfirmation:o}));case q.LOGGED_IN_CANCELED_EXPIRED:return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.vn,{onClick:Gr(t.id,Fr.RESTART_SUBSCRIPTION)}),r.createElement(Ai,{readUrl:u,onClick:l}));case q.LOGGED_IN_PAUSED:case q.LOGGED_IN_TRIAL_INELIGIBLE:case q.LOGGED_IN_ABORTED:return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.SY,{onClick:Gr(t.id,Fr.RESUME_SUBSCRIPTION)}),r.createElement(Ai,{readUrl:u,onClick:l}));case q.LOGGED_OUT_PREVIEW:case q.LOGGED_IN_TRIAL_ELIGIBLE:case q.LOGGED_OUT_TRIAL_ELIGIBLE:return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.rO,{onClick:Gr(t.id,Fr.START_TRIAL),openSignUpModal:s.ZT}),r.createElement(Ai,{readUrl:u,onClick:l}));default:return null}}function Ii(e){var{author:t,categories:n,consumptionTime:i,description:a,hasProgress:u,id:l,issueUrl:c,page:d,publicationUrl:p,readUrl:f,releasedAt:h,showSavedCell:g,title:m,type:v,userContentStatus:_}=e;return r.createElement(r.Fragment,null,r.createElement(Ur,{xl:8,l:9,m:7,s:3},r.createElement("div",{className:si.metadata},r.createElement("span",null,o.Z.t("content_types.article")),r.createElement(ui,{contentType:v,consumptionTime:i}),r.createElement(et,{className:si.dot}),r.createElement("span",null,(0,s.ie)(h))),r.createElement(Hr,{"data-e2e":"quickview-title",documentId:l,href:f,title:m})),r.createElement(Ur,{xl:8,l:10,m:8,s:4},r.createElement(ci,{authorName:t,authorUrl:p,documentId:l,label:o.Z.t("shared.podcast_episode.from"),"data-e2e":"article-byline"}),r.createElement(ri,{categories:n}),r.createElement(Vr,{description:a}),c?r.createElement(pi,{contentType:v,documentId:l,previewUrl:c}):null),r.createElement(Ur,{xl:8,lg:10,md:8,sm:4,xs:4,className:si.bottomSection},r.createElement("div",{className:si.ctaContainer},r.createElement(xi,{document:{readUrl:f,hasProgress:u,id:l,title:m},page:d,userContentStatus:_,inSavedCarousel:g}))))}function Mi(e){var{className:t,onClick:n,url:a}=e,s=o.Z.t("home.logged_in.content_quickview.go_to_content_type_version",{content_type:o.Z.t("content_types.audiobook")});return r.createElement(i.Av,{"aria-label":s,className:t,href:a,leftIcon:Xe,onClick:n},o.Z.t("home.logged_in.content_quickview.also_available_as_an_audiobook"))}function Si(e){var{className:t,onClick:n,url:a}=e,s=o.Z.t("home.logged_in.content_quickview.go_to_content_type_version",{content_type:o.Z.t("content_types.ebook")});return r.createElement(i.Av,{"aria-label":s,className:t,href:a,leftIcon:$e,onClick:n},o.Z.t("home.logged_in.content_quickview.also_available_as_an_ebook"))}xi.propTypes={document:E.exports.shape({readUrl:E.exports.string.isRequired,hasProgress:E.exports.bool.isRequired,id:E.exports.number,title:E.exports.string.isRequired}).isRequired,inSavedCarousel:E.exports.bool.isRequired,page:E.exports.string.isRequired,userContentStatus:E.exports.oneOf(Object.values(q))},Ii.propTypes={author:E.exports.string,categories:E.exports.arrayOf(E.exports.shape({id:E.exports.number.isRequired,href:E.exports.string.isRequired,label:E.exports.string.isRequired})),consumptionTime:E.exports.number,description:E.exports.string,hasProgress:E.exports.bool,id:E.exports.number.isRequired,issueUrl:E.exports.string,readUrl:E.exports.string.isRequired,releasedAt:E.exports.string.isRequired,page:E.exports.string.isRequired,publicationUrl:E.exports.string,showSavedCell:E.exports.bool.isRequired,title:E.exports.string.isRequired,type:E.exports.string.isRequired,userContentStatus:E.exports.oneOf(Object.values(q))},Ii.defaultProps={categories:[],author:null,consumptionTime:null,description:null,issueUrl:null,publicationUrl:null},Mi.propTypes={className:E.exports.string,onClick:E.exports.func.isRequired,url:E.exports.string.isRequired},Mi.defaultProps={className:null},Si.propTypes={className:E.exports.string,onClick:E.exports.func.isRequired,url:E.exports.string.isRequired},Si.defaultProps={className:null};var Ci={wrapper:"AlternateFormat-module_wrapper__Z5bKJ",link:"AlternateFormat-module_link__iJ0uY"};function Ni(e){var{documentId:t,format:n}=e,{type:i,url:o}=n,a=qr.ALSO_AVAILABLE,s=i===R.AUDIOBOOK?Mi:Si;return r.createElement("div",{className:Ci.wrapper,"data-testid":"also-available"},r.createElement(s,{className:Ci.link,onClick:Zr({documentId:t,linkType:a,contentType:i}),type:i,url:o}))}function Ti(e){var{onClick:t,previewUrl:n}=e;return r.createElement(i.KM,{"data-e2e":"view-all-episodes-button",href:n,onClick:t},o.Z.t("content_preview.view_titles_in_series"))}function Li(e){var{document:t,page:n,userContentStatus:i,inSavedCarousel:o}=e,u=Gr(t.id,Fr.PLAY_SAMPLE);if(t.isSeries)return r.createElement("div",{className:si.ctasWrapper},r.createElement(Ti,{onClick:Gr(t.id,Fr.VIEW_TITLES_IN_SERIES),previewUrl:t.previewUrl}),r.createElement(wi,{document:t,page:n,requireConfirmation:o}));switch(i){case q.LOGGED_IN_SUBSCRIBER:case q.LOGGED_IN_FULL_ACCESS:case q.SUBSCRIBER_FULL_ACCESS:case q.SUBSCRIBER_DUNNING_LOCK:case q.USING_PROMO_CODE:return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.qV,de({onClick:Gr(t.id,Fr.LISTEN_NOW)},t)),r.createElement(wi,{document:t,page:n,requireConfirmation:o}));case q.LOGGED_IN_CANCELED_EXPIRED:return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.vn,{onClick:Gr(t.id,Fr.RESTART_SUBSCRIPTION)}),r.createElement(a.nZ,{url:t.audioSampleUrl,handleClick:u}));case q.LOGGED_IN_PAUSED:case q.LOGGED_IN_TRIAL_INELIGIBLE:case q.LOGGED_IN_ABORTED:return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.SY,{onClick:Gr(t.id,Fr.RESUME_SUBSCRIPTION)}),r.createElement(a.nZ,{url:t.audioSampleUrl,handleClick:u}));case q.LOGGED_OUT_PREVIEW:case q.LOGGED_IN_TRIAL_ELIGIBLE:case q.LOGGED_OUT_TRIAL_ELIGIBLE:return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.rO,{onClick:Gr(t.id,Fr.START_TRIAL),openSignUpModal:s.ZT}),r.createElement(a.nZ,{url:t.audioSampleUrl,handleClick:u}));default:return null}}Ni.propTypes={documentId:E.exports.number,format:E.exports.shape({type:E.exports.string.isRequired,url:E.exports.string.isRequired}).isRequired},Ni.defaultProps={documentId:null},Ti.propTypes={onClick:E.exports.func.isRequired,previewUrl:E.exports.string.isRequired},Li.propTypes={document:E.exports.shape({audioSampleUrl:E.exports.string.isRequired,hasProgress:E.exports.bool.isRequired,id:E.exports.number,isSeries:E.exports.bool,listenUrl:E.exports.string.isRequired,previewUrl:E.exports.string,title:E.exports.string.isRequired}).isRequired,inSavedCarousel:E.exports.bool.isRequired,page:E.exports.string.isRequired,userContentStatus:E.exports.oneOf(Object.values(q))};var Di={wrapper:"Contributors-module_wrapper__0XCuc",contributor:"Contributors-module_contributor__Tqa03"};function Oi(e){var{contributors:t,contributorType:n,"data-e2e":i,documentId:a,label:s}=e;if(!t.length)return null;var u=o.Z.t("shared.byline.and");return r.createElement("p",{className:Di.wrapper,"data-e2e":i},s," ",t.map(((e,i)=>{var o=i===t.length-1,{id:s,name:l,url:c}=e,d=o?" ".concat(u," "):", ";return 0===i&&(d=null),r.createElement("span",{key:l},d,r.createElement("a",{className:Di.contributor,href:c,"data-user_id":s,onClick:Zr({documentId:a,linkType:n,authorName:l})},l))})))}Oi.propTypes={contributors:E.exports.arrayOf(E.exports.shape({id:E.exports.number.isRequired,name:E.exports.string.isRequired,possessiveName:E.exports.string,url:E.exports.string.isRequired})).isRequired,contributorType:E.exports.oneOf([k.AUTHOR,k.NARRATOR]).isRequired,"data-e2e":E.exports.string,documentId:E.exports.number,label:E.exports.string.isRequired},Oi.defaultProps={"data-e2e":null,documentId:null};var ki=(e,t)=>{var{type:n}=e;return t===R.PODCAST_EPISODE?o.Z.t("shared.podcast_episode.from"):t===R.DOCUMENT?o.Z.t("shared.common.uploaded_by"):t===R.AUDIOBOOK&&n===k.AUTHOR?o.Z.t("shared.byline.written_by"):t===R.AUDIOBOOK&&n===k.PUBLISHER?o.Z.t("shared.byline.published_by"):o.Z.t("shared.byline.by")},Ri={wrapper:"Byline-module_wrapper__8ONpK"};function ji(e){var{contentType:t,contributors:n,"data-e2e":i,documentId:a,narrators:s}=e;if(!n.length&&!s.length)return null;var u=n[0];return r.createElement("div",{className:Ri.wrapper,"data-e2e":i},r.createElement(Oi,{"data-e2e":"authors",contributors:n,contributorType:k.AUTHOR,documentId:a,label:ki(u,t)}),s&&t===R.AUDIOBOOK?r.createElement(r.Fragment,null,", ",r.createElement(Oi,{"data-e2e":"narrators",contributors:s,contributorType:k.NARRATOR,documentId:a,label:o.Z.t("home.logged_in.content_quickview.byline.narrated_by"),isPossessive:!1})):null)}ji.propTypes={contentType:E.exports.string.isRequired,contributors:E.exports.arrayOf(E.exports.shape({id:E.exports.number.isRequired,name:E.exports.string.isRequired,possessiveName:E.exports.string,type:E.exports.string,url:E.exports.string.isRequired})),"data-e2e":E.exports.string.isRequired,documentId:E.exports.number,narrators:E.exports.arrayOf(E.exports.shape({name:E.exports.string.isRequired,type:E.exports.string.isRequired,id:E.exports.number.isRequired,url:E.exports.string.isRequired}))},ji.defaultProps={contributors:[],documentId:null,narrators:[]};var Pi={wrapper:"Rating-module_wrapper__uA7L3"};function Ui(e){var{className:t,documentId:n,href:o,ratingAverage:a}=e;return r.createElement(i.Av,{className:ge(Pi.wrapper,t),href:o,onClick:Zr({documentId:n,linkType:qr.RATING})},r.createElement(i.R4,{rating:a,style:L.INLINE_TEXT_NON_RESPONSIVE}))}Ui.propTypes={className:E.exports.string,documentId:E.exports.number.isRequired,href:E.exports.string.isRequired,ratingAverage:E.exports.number.isRequired},Ui.defaultProps={className:null};var zi=[R.AUDIOBOOK,R.BOOK];function Bi(e){return e.find((e=>zi.includes(e.type)))}function qi(e){var{authors:t,audioSampleUrl:n,categories:i,contentLength:a,description:s,editorialBlurb:u,hasProgress:l,id:c,isSeries:d,listenUrl:p,narrators:f,otherFormats:h,page:g,previewUrl:m,ratingAverage:v,showSavedCell:_,timeRemaining:A,title:y,titleCount:b,type:E,userContentStatus:w}=e,x=u||s,I=Bi(h),M=d?o.Z.t("content_types.audiobook_series"):o.Z.t("content_types.audiobook");return r.createElement(r.Fragment,null,r.createElement(Ur,{xl:8,l:9,m:7,s:3},r.createElement("div",{className:si.metadata},r.createElement("span",null,M),r.createElement(ui,{contentLength:a,contentType:E,isSeries:d,showSavedCell:_,timeRemaining:A,titleCount:b})),r.createElement(Hr,{"data-e2e":"quickview-title",documentId:c,href:m,title:y})),r.createElement(Ur,{xl:8,l:10,m:8,s:4},r.createElement(ji,{contentType:E,contributors:t,"data-e2e":"quickview-panel-byline",documentId:c,narrators:f}),r.createElement(Ui,{documentId:c,href:m,ratingAverage:v}),r.createElement(ri,{categories:i}),r.createElement(Vr,{description:x}),r.createElement(pi,{contentType:E,documentId:c,isSeries:d,previewUrl:m})),r.createElement(Ur,{xl:8,lg:10,md:8,sm:4,xs:4,className:si.bottomSection},r.createElement("div",{className:si.ctaContainer},r.createElement(Li,{document:{audioSampleUrl:n,hasProgress:l,id:c,isSeries:d,listenUrl:p,previewUrl:m,title:y},page:g,userContentStatus:w,inSavedCarousel:_}),I?r.createElement(Ni,{documentId:c,format:I}):null)))}function Fi(e){var{document:t,page:n,userContentStatus:i,inSavedCarousel:o}=e,{readUrl:u}=t,l=Gr(t.id,Fr.READ_PREVIEW);if(t.isSeries)return r.createElement("div",{className:si.ctasWrapper},r.createElement(Ti,{onClick:Gr(t.id,Fr.VIEW_TITLES_IN_SERIES),previewUrl:t.previewUrl}),r.createElement(wi,{document:t,page:n,requireConfirmation:o}));switch(i){case q.LOGGED_IN_SUBSCRIBER:case q.LOGGED_IN_FULL_ACCESS:case q.SUBSCRIBER_FULL_ACCESS:case q.SUBSCRIBER_DUNNING_LOCK:case q.USING_PROMO_CODE:return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.Gm,de({onClick:Gr(t.id,Fr.READ_NOW)},t)),r.createElement(wi,{document:t,page:n,requireConfirmation:o}));case q.LOGGED_IN_CANCELED_EXPIRED:return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.vn,{onClick:Gr(t.id,Fr.RESTART_SUBSCRIPTION)}),r.createElement(Ai,{readUrl:u,onClick:l}));case q.LOGGED_IN_PAUSED:case q.LOGGED_IN_TRIAL_INELIGIBLE:case q.LOGGED_IN_ABORTED:return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.SY,{onClick:Gr(t.id,Fr.RESUME_SUBSCRIPTION)}),r.createElement(Ai,{readUrl:u,onClick:l}));case q.LOGGED_OUT_PREVIEW:case q.LOGGED_IN_TRIAL_ELIGIBLE:case q.LOGGED_OUT_TRIAL_ELIGIBLE:return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.rO,{onClick:Gr(t.id,Fr.START_TRIAL),openSignUpModal:s.ZT}),r.createElement(Ai,{readUrl:u,onClick:l}));default:return null}}function Zi(e){var{authors:t,categories:n,contentLength:i,description:a,editorialBlurb:s,hasProgress:u,id:l,isSeries:c,otherFormats:d,page:p,previewUrl:f,ratingAverage:h,readUrl:g,showSavedCell:m,timeRemaining:v,title:_,titleCount:A,type:y,userContentStatus:b}=e,E=s||a,w=Bi(d),x=c?o.Z.t("content_types.ebook_series"):o.Z.t("content_types.ebook");return r.createElement(r.Fragment,null,r.createElement(Ur,{xl:8,l:9,m:7,s:3},r.createElement("div",{className:si.metadata},r.createElement("span",null,x),r.createElement(ui,{contentLength:i,contentType:y,isSeries:c,showSavedCell:m,timeRemaining:v,titleCount:A})),r.createElement(Hr,{"data-e2e":"quickview-title",documentId:l,href:f,title:_})),r.createElement(Ur,{xl:8,l:10,m:8,s:4},r.createElement(ji,{contentType:y,contributors:t,"data-e2e":"quickview-panel-byline",documentId:l}),r.createElement(Ui,{documentId:l,href:f,ratingAverage:h}),r.createElement(ri,{categories:n}),r.createElement(Vr,{description:E}),r.createElement(pi,{contentType:y,documentId:l,isSeries:c,previewUrl:f})),r.createElement(Ur,{xl:8,lg:10,md:8,sm:4,xs:4,className:si.bottomSection},r.createElement("div",{className:si.ctaContainer},r.createElement(Fi,{document:{hasProgress:u,id:l,isSeries:c,previewUrl:f,readUrl:g,title:_},page:p,userContentStatus:b,inSavedCarousel:m}),w?r.createElement(Ni,{documentId:l,format:w}):null)))}function Gi(e){var{document:t,page:n,inSavedCarousel:i}=e;return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.Gm,de({onClick:Gr(t.id,Fr.READ_NOW)},t)),r.createElement(wi,{document:t,page:n,requireConfirmation:i}))}function Yi(e){var{categories:t,contentLength:n,description:i,downvoteCount:s,id:u,page:l,previewUrl:c,readUrl:d,showSavedCell:p,timeRemaining:f,title:h,type:g,uploader:m,upvoteCount:v,views:_}=e;return r.createElement(r.Fragment,null,r.createElement(Ur,{xl:8,l:9,m:7,s:3},r.createElement("div",{className:si.metadata},r.createElement("span",null,o.Z.t("content_types.document")),r.createElement(ui,{contentLength:n,contentType:g,showSavedCell:p,timeRemaining:f}),r.createElement(et,{className:si.dot}),r.createElement("span",{"data-e2e":"metadata-views-count-wide"},o.Z.t("shared.doc_preview.views",{formatted_views:_}))),r.createElement(Hr,{"data-e2e":"quickview-title",documentId:u,href:c,title:h}),r.createElement(ji,{contentType:g,contributors:[m],"data-e2e":"quickview-panel-byline",documentId:u})),r.createElement(Ur,{xl:8,l:10,m:8,s:4},r.createElement(a.RW,{className:si.thumbRatings,downvotes:s,upvotes:v,style:ne.PERCENTAGE}),r.createElement(ri,{categories:t}),r.createElement(Vr,{description:i,documentId:u,previewUrl:c})),r.createElement(Ur,{xl:8,lg:10,md:8,sm:4,xs:4,className:si.bottomSection},r.createElement("div",{className:si.ctaContainer},r.createElement(Gi,{document:{id:u,readUrl:d,title:h},page:l,inSavedCarousel:p}))))}qi.propTypes={authors:E.exports.arrayOf(E.exports.shape({name:E.exports.string.isRequired,id:E.exports.number.isRequired,type:E.exports.string,url:E.exports.string.isRequired})),audioSampleUrl:E.exports.string.isRequired,categories:E.exports.arrayOf(E.exports.shape({id:E.exports.number.isRequired,href:E.exports.string.isRequired,label:E.exports.string.isRequired})),contentLength:E.exports.number,description:E.exports.string,editorialBlurb:E.exports.string,hasProgress:E.exports.bool,id:E.exports.number.isRequired,isSeries:E.exports.bool,listenUrl:E.exports.string.isRequired,narrators:E.exports.arrayOf(E.exports.shape({id:E.exports.number,name:E.exports.string,url:E.exports.string})),otherFormats:E.exports.arrayOf(E.exports.shape({id:E.exports.number,type:E.exports.string,url:E.exports.string})),page:E.exports.string.isRequired,previewUrl:E.exports.string.isRequired,ratingAverage:E.exports.number.isRequired,showSavedCell:E.exports.bool.isRequired,timeRemaining:E.exports.number,title:E.exports.string.isRequired,titleCount:E.exports.number,type:E.exports.string.isRequired,userContentStatus:E.exports.oneOf(Object.values(q))},qi.defaultProps={categories:[],contentLength:null,otherFormats:[],isSeries:!1,titleCount:null,timeRemaining:null},Fi.propTypes={document:E.exports.shape({hasProgress:E.exports.bool.isRequired,id:E.exports.number,isSeries:E.exports.bool,previewUrl:E.exports.string,readUrl:E.exports.string.isRequired,title:E.exports.string.isRequired}).isRequired,inSavedCarousel:E.exports.bool.isRequired,page:E.exports.string.isRequired,userContentStatus:E.exports.oneOf(Object.values(q))},Zi.propTypes={authors:E.exports.arrayOf(E.exports.shape({name:E.exports.string.isRequired,id:E.exports.number.isRequired,type:E.exports.string,url:E.exports.string.isRequired})),categories:E.exports.arrayOf(E.exports.shape({id:E.exports.number.isRequired,href:E.exports.string.isRequired,label:E.exports.string.isRequired})),contentLength:E.exports.number,description:E.exports.string,editorialBlurb:E.exports.string,hasProgress:E.exports.bool,id:E.exports.number.isRequired,isSeries:E.exports.bool,otherFormats:E.exports.arrayOf(E.exports.shape({id:E.exports.number,type:E.exports.string,url:E.exports.string})),page:E.exports.string.isRequired,previewUrl:E.exports.string.isRequired,ratingAverage:E.exports.number.isRequired,readUrl:E.exports.string,showSavedCell:E.exports.bool.isRequired,timeRemaining:E.exports.number,title:E.exports.string.isRequired,titleCount:E.exports.number,type:E.exports.string.isRequired,userContentStatus:E.exports.oneOf(Object.values(q))},Zi.defaultProps={categories:[],contentLength:null,otherFormats:[],isSeries:!1,timeRemaining:null,titleCount:null},Gi.propTypes={document:E.exports.object.isRequired,inSavedCarousel:E.exports.bool.isRequired,page:E.exports.string.isRequired},Yi.propTypes={categories:E.exports.arrayOf(E.exports.shape({id:E.exports.number.isRequired,href:E.exports.string.isRequired,label:E.exports.string.isRequired})),contentLength:E.exports.number,description:E.exports.string,downvoteCount:E.exports.number,id:E.exports.number.isRequired,page:E.exports.string.isRequired,previewUrl:E.exports.string.isRequired,readUrl:E.exports.string,title:E.exports.string.isRequired,type:E.exports.string.isRequired,uploader:E.exports.shape({name:E.exports.string.isRequired,id:E.exports.number.isRequired,url:E.exports.string.isRequired}).isRequired,showSavedCell:E.exports.bool.isRequired,timeRemaining:E.exports.number,upvoteCount:E.exports.number,views:E.exports.string},Yi.defaultProps={categories:[],contentLength:null,description:null,downvoteCount:null,readUrl:null,timeRemaining:null,upvoteCount:null,views:null};var Hi={errorContent:"Error-module_errorContent__XjC39",errorInfo:"Error-module_errorInfo__bP3QC",errorHeader:"Error-module_errorHeader__eZJiD",errorLink:"Error-module_errorLink__MApzW"};function Wi(e){var{url:t}=e;return r.createElement(Ur,{xl:12,m:8,s:4,className:Hi.errorContent},r.createElement("div",{className:Hi.errorInfo},r.createElement("div",{className:Hi.errorHeader},o.Z.t("home.logged_in.content_quickview.oops_something_went_wrong")),r.createElement(i.Av,{href:t,className:Hi.errorLink},o.Z.t("home.logged_in.content_quickview.view_the_full_title_details"))))}function Vi(e){var{articlesUrl:t,onClick:n}=e;return r.createElement(i.KM,{href:t,"data-e2e":"view-all-articles-button",onClick:n},o.Z.t("home.logged_in.content_quickview.view_all_articles"))}function Qi(e){var{document:t,page:n,inSavedCarousel:i}=e;return r.createElement("div",{className:si.ctasWrapper},r.createElement(Vi,{articlesUrl:t.previewUrl,onClick:Gr(t.id,Fr.VIEW_ALL_ARTICLES)}),r.createElement(wi,{document:t,page:n,requireConfirmation:i}))}function Ki(e){var{contentLength:t,description:n,editorialBlurb:i,id:a,page:s,previewUrl:u,showSavedCell:l,tagline:c,title:d,type:p}=e,f=i||n||c;return r.createElement(r.Fragment,null,r.createElement(Ur,{xl:8,l:9,m:7,s:3},r.createElement("div",{className:si.metadata},r.createElement("span",null,o.Z.t("content_types.magazine")),r.createElement(ui,{contentType:p,contentLength:t})),r.createElement(Hr,{"data-e2e":"quickview-title",documentId:a,href:u,title:d})),r.createElement(Ur,{xl:8,l:10,m:8,s:4},r.createElement(Vr,{description:f,documentId:a,previewUrl:u})),r.createElement(Ur,{xl:8,lg:10,md:8,sm:4,xs:4,className:si.bottomSection},r.createElement("div",{className:si.ctaContainer},r.createElement(Qi,{document:{id:a,previewUrl:u,title:d},page:s,inSavedCarousel:l}))))}Wi.propTypes={url:E.exports.string.isRequired},Vi.defaultProps={onClick:s.ZT},Vi.propTypes={articlesUrl:E.exports.string,onClick:E.exports.func},Qi.propTypes={document:E.exports.object.isRequired,inSavedCarousel:E.exports.bool.isRequired,page:E.exports.string.isRequired},Ki.propTypes={contentLength:E.exports.number,description:E.exports.string,editorialBlurb:E.exports.string,id:E.exports.number.isRequired,page:E.exports.string.isRequired,previewUrl:E.exports.string.isRequired,showSavedCell:E.exports.bool.isRequired,tagline:E.exports.string,title:E.exports.string.isRequired,type:E.exports.string.isRequired},Ki.defaultProps={contentLength:null,description:null,editorialBlurb:null,tagline:null};var Xi={titlePrefix:"SummaryTitle-module_titlePrefix__8lgoB"};function $i(e){var{authorPossessive:t,documentId:n,"data-e2e":i,href:a,title:s}=e;return r.createElement(Hr,{"data-e2e":i,documentId:n,href:a,isLongTitle:!0},r.createElement("span",{className:Xi.titlePrefix},"".concat(o.Z.t("shared.common.key_insights")," ").concat(t," ")),s)}$i.propTypes={authorPossessive:E.exports.string.isRequired,"data-e2e":E.exports.string.isRequired,documentId:E.exports.number.isRequired,href:E.exports.string.isRequired,title:E.exports.string.isRequired};var Ji={skeleton:"Skeleton-module_skeleton__g-IPg",shimmer:"Skeleton-module_shimmer__bUKuv"};function eo(e){var{className:t,height:n,width:i}=e,o={};return n&&(o.height="".concat(n,"px")),i&&(o.width="".concat(i,"px")),r.createElement("span",{className:ge(Ji.skeleton,t),style:o})}eo.propTypes={className:E.exports.string,height:E.exports.number,width:E.exports.number},eo.defaultProps={className:null,height:null,width:null};var to={wrapper:"BylineSkeleton-module_wrapper__DsVhq",byline:"BylineSkeleton-module_byline__bRkQZ",secondBylineSkeleton:"BylineSkeleton-module_secondBylineSkeleton__hITcX",audiobookByline:"BylineSkeleton-module_audiobookByline__-lGWV"};function no(e){var{type:t}=e;if(t===R.SUMMARY_CANONICAL)return null;var n=t===R.AUDIOBOOK;return r.createElement("div",{className:ge(to.wrapper,{[to.audiobookByline]:n})},r.createElement(eo,{width:200,className:to.byline}),n?r.createElement(i.d7,{above:!0,size:Y.XS},r.createElement(eo,{width:250,className:to.secondBylineSkeleton})):null)}no.propTypes={type:E.exports.oneOf(Object.values(R)).isRequired};var ro={wrapper:"CategoriesSkeleton-module_wrapper__O2-v4",category:"CategoriesSkeleton-module_category__JOqTL"};function io(e){var{type:t}=e;return t===R.PUBLICATION_ISSUE?null:r.createElement("div",{className:ro.wrapper},r.createElement(eo,{className:ro.category,width:100}),r.createElement(i.d7,{below:!0,size:Y.XS},r.createElement(eo,{className:ro.category,width:100})))}io.propTypes={type:E.exports.string.isRequired};var oo={wrapper:"CTASkeleton-module_wrapper__ST0go",ctaSkeleton:"CTASkeleton-module_ctaSkeleton__Zj1Dq",moreAboutCtaSkeleton:"CTASkeleton-module_moreAboutCtaSkeleton__eki1y",ctaWrapper:"CTASkeleton-module_ctaWrapper__r38nZ"};function ao(e){var{type:t}=e,{AUDIOBOOK:n,BOOK:i,PODCAST_EPISODE:o,SHEET_MUSIC:a}=R,s=[n,i,o,a];return r.createElement("div",{className:oo.wrapper},s.includes(t)?r.createElement(eo,{className:oo.moreAboutCtaSkeleton}):null,r.createElement("div",{className:oo.ctaWrapper},r.createElement(eo,{className:oo.ctaSkeleton}),r.createElement(eo,{className:oo.ctaSkeleton})))}ao.propTypes={type:E.exports.string.isRequired};var so={wrapper:"DescriptionSkeleton-module_wrapper__lhTWj"};function uo(){return r.createElement(r.Fragment,null,r.createElement("div",{className:so.wrapper},r.createElement(eo,null),r.createElement(eo,null),r.createElement(eo,null),r.createElement(eo,null),r.createElement(i.d7,{above:!0,size:Y.S},r.createElement(eo,null),r.createElement(eo,null))))}var lo={wrapper:"MetadataSkeleton-module_wrapper__d8kEe",metadata:"MetadataSkeleton-module_metadata__Nnd9-"};function co(){return r.createElement("div",{className:lo.wrapper},r.createElement(eo,{className:lo.metadata,width:150}))}var po={wrapper:"MoreAboutThisTitleSkeleton-module_wrapper__oSnKm",moreAboutThisTitle:"MoreAboutThisTitleSkeleton-module_moreAboutThisTitle__pCnP-"};function fo(e){var{type:t}=e,{DOCUMENT:n,PODCAST_EPISODE:i}=R;return t===n||t===i?null:r.createElement("div",{className:po.wrapper},r.createElement(eo,{className:po.moreAboutThisTitle,width:250}))}function ho(e){var{authorPossessive:t,id:n,previewUrl:i,title:s,type:u}=e,l=u===R.SUMMARY_CANONICAL?$i:Hr;return r.createElement(r.Fragment,null,r.createElement(a.TX,{text:o.Z.t("home.logged_in.content_quickview.loading")}),r.createElement(Ur,{xl:8,l:9,m:7,s:3},r.createElement(co,null),r.createElement(l,{authorPossessive:t,"data-e2e":"quickview-title",documentId:n,href:i,title:s})),r.createElement(Ur,{xl:8,l:10,m:8,s:4},r.createElement(no,{type:u}),r.createElement(co,null),r.createElement(io,{type:u}),r.createElement(uo,null),r.createElement(fo,{type:u})),r.createElement(Ur,{xl:8,lg:10,md:8,sm:4,xs:4,className:si.bottomSection},r.createElement(ao,{type:u})))}function go(e){var{episodesUrl:t,onClick:n}=e;return r.createElement(i.KM,{href:t,"data-e2e":"view-all-episodes-button",onClick:n},o.Z.t("home.logged_in.content_quickview.view_all_episodes"))}function mo(e){var{document:t,page:n,inSavedCarousel:i}=e,{readUrl:o}=t;return r.createElement("div",{className:si.ctasWrapper},r.createElement(go,{episodesUrl:o,onClick:Gr(t.id,Fr.VIEW_ALL_EPISODES)}),r.createElement(wi,{document:t,page:n,requireConfirmation:i}))}function vo(e){var{categories:t,contentLength:n,description:i,downvoteCount:s,id:u,page:l,previewUrl:c,podcastAuthor:d,readUrl:p,showSavedCell:f,title:h,type:g,upvoteCount:m}=e;return r.createElement(r.Fragment,null,r.createElement(Ur,{xl:8,l:9,m:7,s:3},r.createElement("div",{className:si.metadata},r.createElement("span",null,o.Z.t("content_types.podcast")),r.createElement(ui,{contentType:g,contentLength:n})),r.createElement(Hr,{"data-e2e":"quickview-title",documentId:u,href:c,title:h})),r.createElement(Ur,{xl:8,l:10,m:8,s:4},r.createElement(ci,{authorName:d,"data-e2e":"podcast-by-line",documentId:u,label:o.Z.t("shared.byline.by")}),r.createElement(a.RW,{className:si.thumbRatings,downvotes:s,upvotes:m,style:ne.PERCENTAGE}),r.createElement(ri,{categories:t}),r.createElement(Vr,{description:i})),r.createElement(Ur,{xl:8,lg:10,md:8,sm:4,xs:4,className:si.bottomSection},r.createElement("div",{className:si.ctaContainer},r.createElement(mo,{document:{readUrl:p,id:u,title:h},page:l,inSavedCarousel:f}))))}function _o(e){var{document:t,page:n,inSavedCarousel:i}=e;return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.qV,{hasProgress:t.hasProgress,listenUrl:t.listenUrl,onClick:Gr(t.id,Fr.LISTEN_NOW),shouldRoadblock:!1}),r.createElement(wi,{document:t,page:n,requireConfirmation:i}))}function Ao(e){var{categories:t,contentLength:n,description:i,downvoteCount:s,hasProgress:u,id:l,listenUrl:c,page:d,previewUrl:p,podcastTitle:f,podcastUrl:h,showSavedCell:g,timeRemaining:m,title:v,type:_,upvoteCount:A}=e;return r.createElement(r.Fragment,null,r.createElement(Ur,{xl:8,l:9,m:7,s:3},r.createElement("div",{className:si.metadata},r.createElement("span",null,o.Z.t("content_types.podcast_episode")),r.createElement(ui,{contentLength:n,contentType:_,showSavedCell:g,timeRemaining:m})),r.createElement(Hr,{"data-e2e":"quickview-title",documentId:l,href:p,title:v})),r.createElement(Ur,{xl:8,l:10,m:8,s:4},r.createElement(ci,{authorName:f,authorUrl:h,"data-e2e":"podcast-by-line",documentId:l,label:o.Z.t("shared.podcast_episode.from")}),r.createElement(a.RW,{className:si.thumbRatings,downvotes:s,upvotes:A,style:ne.PERCENTAGE}),r.createElement(ri,{categories:t}),r.createElement(Vr,{description:i}),r.createElement(pi,{contentType:_,documentId:l,previewUrl:p})),r.createElement(Ur,{xl:8,lg:10,md:8,sm:4,xs:4,className:si.bottomSection},r.createElement("div",{className:si.ctaContainer},r.createElement(_o,{document:{hasProgress:u,id:l,listenUrl:c,title:v},page:d,inSavedCarousel:g}))))}function yo(e){var{document:t,page:n,userContentStatus:i,inSavedCarousel:o}=e,{readUrl:u}=t,l=Gr(t.id,Fr.READ_PREVIEW);switch(i){case q.LOGGED_IN_SUBSCRIBER:case q.LOGGED_IN_FULL_ACCESS:case q.SUBSCRIBER_FULL_ACCESS:case q.SUBSCRIBER_DUNNING_LOCK:case q.USING_PROMO_CODE:return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.Gm,de({onClick:Gr(t.id,Fr.READ_NOW)},t)),r.createElement(wi,{document:t,page:n,requireConfirmation:o}));case q.LOGGED_IN_CANCELED_EXPIRED:return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.vn,{onClick:Gr(t.id,Fr.RESTART_SUBSCRIPTION)}),r.createElement(Ai,{readUrl:u,onClick:l}));case q.LOGGED_IN_PAUSED:case q.LOGGED_IN_TRIAL_INELIGIBLE:case q.LOGGED_IN_ABORTED:return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.SY,{onClick:Gr(t.id,Fr.RESUME_SUBSCRIPTION)}),r.createElement(Ai,{readUrl:u,onClick:l}));case q.LOGGED_OUT_PREVIEW:case q.LOGGED_IN_TRIAL_ELIGIBLE:case q.LOGGED_OUT_TRIAL_ELIGIBLE:return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.rO,{onClick:Gr(t.id,Fr.START_TRIAL),openSignUpModal:s.ZT}),r.createElement(Ai,{readUrl:u,onClick:l}));default:return null}}function bo(e){var{authors:t,categories:n,contentLength:i,description:a,hasProgress:s,id:u,page:l,previewUrl:c,ratingAverage:d,readUrl:p,showSavedCell:f,title:h,type:g,userContentStatus:m}=e;return r.createElement(r.Fragment,null,r.createElement(Ur,{xl:8,l:9,m:7,s:3},r.createElement("div",{className:si.metadata},r.createElement("span",null,o.Z.t("content_types.sheet_music")),r.createElement(ui,{contentType:g,contentLength:i})),r.createElement(Hr,{"data-e2e":"quickview-title",documentId:u,href:c,title:h})),r.createElement(Ur,{xl:8,l:10,m:8,s:4},r.createElement(ji,{contentType:g,contributors:t,"data-e2e":"quickview-panel-byline",documentId:u}),r.createElement(Ui,{documentId:u,href:c,ratingAverage:d}),r.createElement(ri,{categories:n}),r.createElement(Vr,{description:a}),r.createElement(pi,{contentType:g,documentId:u,previewUrl:c})),r.createElement(Ur,{xl:8,lg:10,md:8,sm:4,xs:4,className:si.bottomSection},r.createElement("div",{className:si.ctaContainer},r.createElement(yo,{document:{readUrl:p,hasProgress:s,id:u,title:h},page:l,userContentStatus:m,inSavedCarousel:f}))))}function Eo(e){var{document:t,page:n,userContentStatus:i,inSavedCarousel:o}=e,{audioSampleUrl:u,hasListenProgress:l,hasReadProgress:c,id:d,listenUrl:p,readUrl:f}=t;switch(i){case q.LOGGED_IN_SUBSCRIBER:case q.LOGGED_IN_FULL_ACCESS:case q.SUBSCRIBER_FULL_ACCESS:case q.SUBSCRIBER_DUNNING_LOCK:case q.USING_PROMO_CODE:return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.Gm,{hasProgress:c,onClick:Gr(d,Fr.READ_NOW),readUrl:f}),r.createElement(a.qV,{hasProgress:l,listenUrl:p,onClick:Gr(d,Fr.LISTEN_NOW)}),r.createElement(wi,{document:t,page:n,requireConfirmation:o}));case q.LOGGED_IN_CANCELED_EXPIRED:return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.vn,{onClick:Gr(d,Fr.RESTART_SUBSCRIPTION)}),r.createElement(a.nZ,{url:u,handleClick:Gr(d,Fr.PLAY_SAMPLE)}));case q.LOGGED_IN_PAUSED:case q.LOGGED_IN_TRIAL_INELIGIBLE:case q.LOGGED_IN_ABORTED:return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.SY,{onClick:Gr(d,Fr.RESUME_SUBSCRIPTION)}),r.createElement(a.nZ,{url:u,handleClick:Gr(d,Fr.PLAY_SAMPLE)}));case q.LOGGED_OUT_PREVIEW:case q.LOGGED_IN_TRIAL_ELIGIBLE:case q.LOGGED_OUT_TRIAL_ELIGIBLE:return r.createElement("div",{className:si.ctasWrapper},r.createElement(a.rO,{onClick:Gr(d,Fr.START_TRIAL),openSignUpModal:s.ZT}),r.createElement(a.nZ,{url:u,handleClick:Gr(d,Fr.PLAY_SAMPLE)}));default:return null}}fo.propTypes={type:E.exports.string.isRequired},ho.propTypes={authorPossessive:E.exports.string,id:E.exports.number.isRequired,previewUrl:E.exports.string.isRequired,title:E.exports.string.isRequired,type:E.exports.string.isRequired},go.defaultProps={onClick:s.ZT},go.propTypes={episodesUrl:E.exports.string,onClick:E.exports.func},mo.propTypes={document:E.exports.shape({readUrl:E.exports.string.isRequired,id:E.exports.number,title:E.exports.string.isRequired}).isRequired,inSavedCarousel:E.exports.bool.isRequired,page:E.exports.string.isRequired},vo.propTypes={categories:E.exports.arrayOf(E.exports.shape({id:E.exports.number.isRequired,href:E.exports.string.isRequired,label:E.exports.string.isRequired})),contentLength:E.exports.number,description:E.exports.string,downvoteCount:E.exports.number,id:E.exports.number.isRequired,page:E.exports.string.isRequired,podcastAuthor:E.exports.string,previewUrl:E.exports.string.isRequired,readUrl:E.exports.string,showSavedCell:E.exports.bool.isRequired,title:E.exports.string.isRequired,type:E.exports.string.isRequired,upvoteCount:E.exports.number},vo.defaultProps={categories:[],contentLength:null,description:null,downvoteCount:null,podcastAuthor:null,readUrl:null,upvoteCount:null},_o.propTypes={document:E.exports.shape({hasProgress:E.exports.bool.isRequired,id:E.exports.number,listenUrl:E.exports.string.isRequired,title:E.exports.string.isRequired}).isRequired,inSavedCarousel:E.exports.bool.isRequired,page:E.exports.string.isRequired},Ao.propTypes={categories:E.exports.arrayOf(E.exports.shape({id:E.exports.number.isRequired,href:E.exports.string.isRequired,label:E.exports.string.isRequired})),contentLength:E.exports.number,description:E.exports.string,downvoteCount:E.exports.number,hasProgress:E.exports.bool,id:E.exports.number.isRequired,listenUrl:E.exports.string,page:E.exports.string.isRequired,podcastTitle:E.exports.string,podcastUrl:E.exports.string,previewUrl:E.exports.string.isRequired,showSavedCell:E.exports.bool.isRequired,timeRemaining:E.exports.number,title:E.exports.string.isRequired,type:E.exports.string.isRequired,upvoteCount:E.exports.number},Ao.defaultProps={categories:[],contentLength:null,description:null,downvoteCount:null,hasProgress:!1,listenUrl:null,podcastTitle:null,podcastUrl:null,timeRemaining:null,upvoteCount:null},yo.propTypes={document:E.exports.shape({readUrl:E.exports.string.isRequired,hasProgress:E.exports.bool.isRequired,id:E.exports.number,title:E.exports.string.isRequired}).isRequired,inSavedCarousel:E.exports.bool.isRequired,page:E.exports.string.isRequired,userContentStatus:E.exports.oneOf(Object.values(q))},bo.propTypes={authors:E.exports.arrayOf(E.exports.shape({name:E.exports.string.isRequired,id:E.exports.number.isRequired,type:E.exports.string,url:E.exports.string.isRequired})),categories:E.exports.arrayOf(E.exports.shape({id:E.exports.number.isRequired,href:E.exports.string.isRequired,label:E.exports.string.isRequired})),contentLength:E.exports.number,description:E.exports.string,hasProgress:E.exports.bool,id:E.exports.number.isRequired,page:E.exports.string.isRequired,previewUrl:E.exports.string.isRequired,ratingAverage:E.exports.number.isRequired,showSavedCell:E.exports.bool.isRequired,readUrl:E.exports.string,title:E.exports.string.isRequired,type:E.exports.string.isRequired,userContentStatus:E.exports.oneOf(Object.values(q))},bo.defaultProps={categories:[],contentLength:null},Eo.propTypes={document:E.exports.shape({audioSampleUrl:E.exports.string.isRequired,hasListenProgress:E.exports.bool.isRequired,hasReadProgress:E.exports.bool.isRequired,id:E.exports.number.isRequired,listenUrl:E.exports.string.isRequired,previewUrl:E.exports.string.isRequired,readUrl:E.exports.string.isRequired,title:E.exports.string.isRequired}).isRequired,inSavedCarousel:E.exports.bool.isRequired,page:E.exports.string.isRequired,userContentStatus:E.exports.oneOf(Object.values(q))},Eo.defaultProps={userContentStatus:null};var wo={summaryDescription:"Summary-module_summaryDescription__QPiTa"};function xo(e){var{authorPossessive:t,audioSampleUrl:n,categories:i,consumptionTime:s,description:u,downvoteCount:l,hasListenProgress:c,hasReadProgress:d,id:p,listenUrl:f,page:h,previewUrl:g,readUrl:m,showSavedCell:v,title:_,type:A,upvoteCount:y,userContentStatus:b}=e;return r.createElement(r.Fragment,null,r.createElement(Ur,{xl:8,l:9,m:7,s:3},r.createElement("div",{className:si.metadata},r.createElement("span",null,o.Z.t("content_types.snapshot")),r.createElement(ui,{consumptionTime:s,contentType:A})),r.createElement($i,{authorPossessive:t,"data-e2e":"quickview-title",documentId:p,href:g,isLongTitle:!0,title:_})),r.createElement(Ur,{xl:8,l:10,m:8,s:4},r.createElement(a.RW,{className:si.thumbRatings,downvotes:l,upvotes:y,style:ne.PERCENTAGE}),r.createElement(ri,{categories:i}),r.createElement(Vr,{className:wo.summaryDescription,description:u}),r.createElement(pi,{contentType:A,documentId:p,previewUrl:g})),r.createElement(Ur,{xl:8,lg:10,md:8,sm:4,xs:4,className:si.bottomSection},r.createElement("div",{className:si.ctaContainer},r.createElement(Eo,{document:{audioSampleUrl:n,hasListenProgress:c,hasReadProgress:d,id:p,listenUrl:f,readUrl:m,previewUrl:g,title:_},inSavedCarousel:v,page:h,userContentStatus:b}))))}function Io(e,t,n){return e[k.IDS_KEYS[n]].map((e=>se(se({},t[e]),{},{type:n})))}function Mo(e){var{document:t,loadingState:n,page:i,showSavedCell:o,userContentStatus:a,users:s}=e;if(!n||n===F.LOADING)return r.createElement(ho,de({},t,{onClose:!0}));if(n===F.ERROR)return r.createElement(Wi,{url:t.previewUrl});switch(t.type){case R.ARTICLE:return r.createElement(Ii,de({},t,{page:i,userContentStatus:a,showSavedCell:o}));case R.AUDIOBOOK:return r.createElement(qi,de({},t,{authors:Io(t,s,k.AUTHOR),narrators:Io(t,s,k.NARRATOR),page:i,showSavedCell:o,userContentStatus:a}));case R.BOOK:return r.createElement(Zi,de({},t,{authors:Io(t,s,k.AUTHOR),page:i,showSavedCell:o,userContentStatus:a}));case R.DOCUMENT:return r.createElement(Yi,de({},t,{page:i,showSavedCell:o,uploader:s[t.uploaderId]}));case R.PUBLICATION_ISSUE:return r.createElement(Ki,de({},t,{page:i,userContentStatus:a,showSavedCell:o}));case R.PODCAST:return r.createElement(vo,de({},t,{page:i,showSavedCell:o}));case R.PODCAST_EPISODE:return r.createElement(Ao,de({},t,{page:i,showSavedCell:o}));case R.SHEET_MUSIC:case R.SHEET_MUSIC_CHAPTER:return r.createElement(bo,de({},t,{authors:Io(t,s,k.AUTHOR),page:i,userContentStatus:a,showSavedCell:o}));case R.SUMMARY_CANONICAL:return r.createElement(xo,de({},t,{page:i,showSavedCell:o,userContentStatus:a}));default:return null}}function So(e,t){var n=(0,r.useRef)(null),i=(0,r.useCallback)((r=>{var{target:i}=r,o=r.path||r.composedPath();n.current.contains(i)||t.current.contains(i)||function(e){for(var t of e){if(t.dataset&&t.dataset[P.QUICKVIEW_CELL])return!0;if(t.dataset&&t.dataset[P.QUICKVIEW_CAROUSEL_PADDLE])return!0;if(t.dataset&&t.dataset[P.MODAL])return!0}return!1}(o)||"function"===typeof e&&e()}),[e]);return(0,r.useCallback)((e=>{n.current&&(n.current=null,document.removeEventListener("click",i,!0)),e&&(n.current=e,document.addEventListener("click",i,!0))}),[i])}xo.propTypes={audioSampleUrl:E.exports.string.isRequired,authorPossessive:E.exports.string.isRequired,categories:E.exports.arrayOf(E.exports.shape({id:E.exports.number.isRequired,href:E.exports.string.isRequired,label:E.exports.string.isRequired})),consumptionTime:E.exports.number,description:E.exports.string,downvoteCount:E.exports.number.isRequired,hasListenProgress:E.exports.bool.isRequired,hasReadProgress:E.exports.bool.isRequired,id:E.exports.number.isRequired,listenUrl:E.exports.string,page:E.exports.string.isRequired,previewUrl:E.exports.string.isRequired,readUrl:E.exports.string,showSavedCell:E.exports.bool.isRequired,title:E.exports.string.isRequired,type:E.exports.string.isRequired,upvoteCount:E.exports.number.isRequired,userContentStatus:E.exports.oneOf(Object.values(q))},xo.defaultProps={categories:[],consumptionTime:null,listenUrl:null,readUrl:null},Mo.propTypes={document:E.exports.shape({authorIds:E.exports.array,id:E.exports.number.isRequired,narratorIds:E.exports.array,previewUrl:E.exports.string,type:E.exports.string.isRequired,uploaderId:E.exports.number}),loadingState:E.exports.oneOf(Object.values(F)),page:E.exports.string.isRequired,showSavedCell:E.exports.bool.isRequired,userContentStatus:E.exports.oneOf(Object.values(q)),users:E.exports.object.isRequired},Mo.defaultProps={userContentStatus:null};var Co={enter:si.enter,enterActive:si.enterActive,exit:si.exit,exitActive:si.exitActive};function No(e){var{carouselListRef:t,document:n,isActive:a,loadingState:s,onClose:u,page:l,prefersReducedMotion:c,showSavedCell:d,userContentStatus:p,users:f}=e,[h,g]=(0,r.useState)(!1),m=(0,r.useRef)(null),v=(0,r.useRef)(null),_=So((()=>u(null,G)),t),A=c?0:250;return r.createElement(hr,{component:null},a?r.createElement(sr,{onEntered:()=>g(!0),onExited:()=>{g(!1),"function"===typeof v.current&&v.current()},timeout:A,classNames:Co},r.createElement("div",{className:si.wrapper,"data-testid":"openPanel","data-e2e":"quickview-panel"},r.createElement("div",{className:si.offsetContainer,ref:m},r.createElement(Lr,{ref:_,className:si.panelContainer},r.createElement(hr,{component:null},n&&h?r.createElement(sr,{onEntered:()=>{v.current=zr(m.current,u)},key:n.id,timeout:A,classNames:Co},r.createElement(Dr,{className:si.innerWrapper},r.createElement(Mo,{document:n,loadingState:s,page:l,showSavedCell:d,userContentStatus:p,users:f}))):null),r.createElement("div",{className:si.closeButtonWrapper},r.createElement(i.OB,{"data-e2e":"quickview-close-btn",hiddenText:o.Z.t("home.logged_in.content_quickview.close"),icon:Je,onClick:u})))))):null)}No.propTypes={carouselListRef:E.exports.shape({current:E.exports.any}),document:E.exports.shape({authorIds:E.exports.array,id:E.exports.number.isRequired,narratorIds:E.exports.array,previewUrl:E.exports.string,type:E.exports.string.isRequired,uploaderId:E.exports.number}),documentId:E.exports.number,isActive:E.exports.bool.isRequired,loadingState:E.exports.oneOf(Object.values(F)),onClose:E.exports.func.isRequired,page:E.exports.string.isRequired,prefersReducedMotion:E.exports.bool,showSavedCell:E.exports.bool.isRequired,userContentStatus:E.exports.oneOf(Object.values(q)),users:E.exports.object.isRequired},No.defaultProps={carouselListRef:null,document:null,loadingState:null,prefersReducedMotion:!1,userContentStatus:null};var To=(0,u.$j)(((e,t)=>{var{documentId:n}=t,r=f.Z(n)(e);return{currentUser:e.user,document:r,loadingState:h.Z(e)[n],userContentStatus:(0,g.C)({contentItem:r,user:e.user}),users:e.users}}),null)((0,y.kT)(No)),Lo={wrapper:"ReadingList-module_wrapper__HTz-y",hoverOverlay:"ReadingList-module_hoverOverlay__2hIQs",linkWrap:"ReadingList-module_linkWrap__qR0YF",main:"ReadingList-module_main__O4cVs",username:"ReadingList-module_username__w3BjY",avatar:"ReadingList-module_avatar__K4kpW",sourceText:"ReadingList-module_sourceText__DCPxE",title:"ReadingList-module_title__hTSa5",subtitle:"ReadingList-module_subtitle__spiJE",imageContainer:"ReadingList-module_imageContainer__kMphd",image:"ReadingList-module_image__7q6WM",metadata:"ReadingList-module_metadata__XzxWo"};function Do(e){var{title:t,subtitle:n,itemCount:i,avatarImageUrl:s,className:u,username:l,imageUrl:c,retinaImageUrl:d,collectionUrl:p}=e;return r.createElement("article",{className:ge(Lo.wrapper,u),"data-e2e":"cell"},r.createElement("a",{className:Lo.linkWrap,href:p},r.createElement("div",{className:Lo.main},r.createElement("div",{className:Lo.username},r.createElement("img",{alt:"",className:Lo.avatar,src:s}),r.createElement("span",{className:Lo.sourceText},l)),r.createElement("h3",{className:Lo.title,"data-e2e":"title"},t),r.createElement("p",{className:Lo.subtitle},n)),r.createElement("div",{className:Lo.imageContainer},r.createElement(a.wY,{altText:t,className:Lo.image,src:c,srcSet:"".concat(d||c," 2x")}),r.createElement("div",{className:Lo.hoverOverlay})),r.createElement("div",{className:Lo.metadata},r.createElement("span",null,o.Z.t("shared.common.read_count",{count:i})))))}Do.propTypes={title:E.exports.string.isRequired,subtitle:E.exports.string.isRequired,avatarImageUrl:E.exports.string.isRequired,username:E.exports.string.isRequired,imageUrl:E.exports.string.isRequired,retinaImageUrl:E.exports.string,collectionUrl:E.exports.string.isRequired,itemCount:E.exports.number.isRequired,className:E.exports.string},Do.defaultProps={className:null,retinaImageUrl:null};var Oo={wrapper:"ReadingListCell-module_wrapper__l-PPe",avatar:"ReadingListCell-module_avatar__Q2Gh-",byline:"ReadingListCell-module_byline__OLb3G",content:"ReadingListCell-module_content__hLckS",imageContainer:"ReadingListCell-module_imageContainer__o7plU",image:"ReadingListCell-module_image__5-TPs",itemCountTextButton:"ReadingListCell-module_itemCountTextButton__EF6ya",linkOverlay:"ReadingListCell-module_linkOverlay__XTFWa",subtitle:"ReadingListCell-module_subtitle__vCxb9",textContent:"ReadingListCell-module_textContent__n5wRr",title:"ReadingListCell-module_title__QyaF1",truncate:"ReadingListCell-module_truncate__WPE65"};function ko(e){var{avatarImageUrl:t,className:n,collectionUrl:u,imageUrl:l,itemCount:c,subtitle:d,title:p,username:f}=e,h=(0,r.useRef)(),[g,m]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{m((0,s.r5)(h))}),[]),r.createElement("article",{className:ge(Oo.wrapper,n),"data-e2e":"cell"},r.createElement("a",{className:Oo.linkOverlay,href:u},r.createElement(a.TX,null,p)),r.createElement("div",{className:Oo.imageContainer},r.createElement(a.wY,{altText:p,className:Oo.image,src:l,srcSet:"".concat(l," 2x")})),r.createElement("div",{className:Oo.avatar},r.createElement(i.pd,{imageUrl:t,isAuthor:!1,style:N.OUTLINE})),r.createElement("div",{className:Oo.content},r.createElement("div",{ref:h,className:Oo.textContent},r.createElement("h2",{className:Oo.byline},o.Z.t("shared.lists.curated_by")," ",f),r.createElement("h3",{className:Oo.title,"data-e2e":"title"},p),r.createElement(i.d7,{atAndBelow:!0,size:Y.S},r.createElement("p",{className:ge(Oo.subtitle,{[Oo.truncate]:g})},d))),r.createElement(i.Av,{className:Oo.itemCountTextButton,href:u},o.Z.t("shared.lists.view_total_titles",{count:c}))))}ko.propTypes={avatarImageUrl:E.exports.string.isRequired,className:E.exports.string,collectionUrl:E.exports.string.isRequired,imageUrl:E.exports.string.isRequired,itemCount:E.exports.number.isRequired,subtitle:E.exports.string.isRequired,title:E.exports.string.isRequired,username:E.exports.string.isRequired},ko.defaultProps={className:null};var Ro={buttonIconSaved:"SaveIcon-module_buttonIconSaved__Fk-sQ"};function jo(e){var{isSaved:t,isLoading:n}=e;return r.createElement(a.$,{content:t?o.Z.t("content_preview.save.remove"):o.Z.t("content_preview.save.add")},r.createElement(a.JO,{className:ge({[Ro.buttonIconSaved]:t&&!n}),icon:t?"saved_for_later_1px":"save_for_later_1px"}))}jo.propTypes={isSaved:E.exports.bool,isLoading:E.exports.bool},jo.defaultProps={isSaved:!1,isLoading:!1};var Po={saveButton:"SaveButton-module_saveButton__uuTyA"};function Uo(e){var{className:t,id:n,page:i,title:o,requireConfirmation:s}=e;return r.createElement(a.Ob,{className:ge(t,Po.saveButton),id:n,title:o,page:i,requireConfirmation:s},r.createElement(jo,null))}Uo.defaultProps={requireConfirmation:!1},Uo.propTypes={className:E.exports.string.isRequired,id:E.exports.number.isRequired,page:E.exports.string.isRequired,title:E.exports.string.isRequired,requireConfirmation:E.exports.bool};var zo={wrapper:"Standard-common-module_wrapper__Zqc4Q",rectangleImageCell:"Standard-common-module_rectangleImageCell__aL2Jj",image:"Standard-common-module_image__-Z2Yt",squareImageCell:"Standard-common-module_squareImageCell__M7QAW",consumptionTime:"Standard-common-module_consumptionTime__bITIy",link:"Standard-common-module_link__sm3YR",saveButton:"Standard-common-module_saveButton__GgGSI",textProminent:"Standard-common-module_textProminent__iqlLB",textTop:"Standard-common-module_textTop__rShk9",textMuted:"Standard-common-module_textMuted__AehQG",textBottom:"Standard-common-module_textBottom__AW6Zu",ratingStars:"Standard-common-module_ratingStars__S2Wco",visuallyLastItem:"Standard-common-module_visuallyLastItem__GNgPC"},Bo="Article-module_wrapper__28FlP",qo="Article-module_anchor__-UGiD",Fo="Article-module_author__9vk1l",Zo="Article-module_description__DsvSc",Go="Article-module_mainImage__loysf",Yo="Article-module_publicationImage__edYal",Ho="Article-module_title__Ui9TT",Wo="Article-module_noImage__tqal0",Vo="Article-module_titleConsumptionTime__7KwRj",Qo="Article-module_topSection__OVf3K";function Ko(e){var{author:t,className:n,consumptionTime:i,description:s,id:u,imageUrl:l,page:c,pageWidth:d,previewUrl:p,publicationImageUrl:f,publicationRetinaImageUrl:h,retinaImageUrl:g,title:m}=e,[v,_]=(0,r.useState)(null),A=(0,r.useRef)(null),y=(0,r.useRef)(null);return(0,r.useEffect)((()=>{var{offsetTop:e}=A.current,{offsetHeight:t}=y.current,n=t-e;_({height:"".concat(n,"px"),WebkitLineClamp:Math.round(n/17)})}),[d]),r.createElement("article",{className:ge(n,Bo,zo.wrapper,zo.rectangleImageCell),ref:y,"data-e2e":"cell"},r.createElement("a",{className:qo,href:p},r.createElement("div",{className:Qo},r.createElement(a.wY,{altText:t,className:Yo,src:f,srcSet:h}),r.createElement("div",{className:Vo},r.createElement("div",{className:Fo,"data-e2e":"author"},t),r.createElement("div",{"data-e2e":"consumption-time"},o.Z.t("content_lengths.reading_minutes",{minutes:wt(i)})))),((e,t,n)=>e&&t?r.createElement(a.wY,{altText:n,className:Go,src:e,srcSet:t}):null)(l,g,m),r.createElement("div",{className:ge(Ho,{[Wo]:!l}),"data-e2e":"title"},m),r.createElement("p",{className:Zo,ref:A,style:v},s)),r.createElement(Uo,{className:zo.saveButton,id:u,page:c,title:m}))}Ko.propTypes={author:E.exports.string.isRequired,className:E.exports.string,consumptionTime:E.exports.number.isRequired,description:E.exports.string.isRequired,id:E.exports.number.isRequired,imageUrl:E.exports.string,page:E.exports.string.isRequired,pageWidth:E.exports.number.isRequired,previewUrl:E.exports.string.isRequired,publicationImageUrl:E.exports.string.isRequired,publicationRetinaImageUrl:E.exports.string.isRequired,retinaImageUrl:E.exports.string,title:E.exports.string.isRequired},Ko.defaultProps={className:null,imageUrl:null,retinaImageUrl:null};var Xo=(0,u.$j)((e=>({pageWidth:e.viewport.width})))(Ko);function $o(e){var{author:t,className:n,id:i,imageUrl:s,page:u,previewUrl:l,ratingAverage:c,retinaImageUrl:d,title:p}=e;return r.createElement("article",{className:ge(n,zo.wrapper,zo.squareImageCell),"data-e2e":"cell"},r.createElement("a",{className:zo.link,href:l},r.createElement("span",{className:ge(zo.textProminent,zo.textTop),"data-e2e":"title"},p),r.createElement(a.TX,null," ".concat(o.Z.t("shared.common.title_author_separator")," ")),r.createElement("span",{className:ge(zo.textMuted,zo.textBottom),"data-e2e":"author"},t),r.createElement(a.u,{className:ge(zo.visuallyLastItem,zo.ratingStars),rating:c,showText:!0}),r.createElement(a.wY,{className:zo.image,altText:p,src:s,srcSet:d})),r.createElement(Uo,{className:zo.saveButton,id:i,page:u,title:p}))}function Jo(e){var{author:t,className:n,id:i,imageUrl:s,page:u,previewUrl:l,ratingAverage:c,retinaImageUrl:d,title:p}=e;return r.createElement("article",{className:ge(n,zo.wrapper,zo.rectangleImageCell),"data-e2e":"cell"},r.createElement("a",{className:zo.link,href:l},r.createElement("span",{className:ge(zo.textProminent,zo.textTop),"data-e2e":"title"},p),r.createElement(a.TX,null," ".concat(o.Z.t("shared.common.title_author_separator")," ")),r.createElement("span",{className:ge(zo.textMuted,zo.textBottom),"data-e2e":"author"},t),r.createElement(a.u,{className:ge(zo.visuallyLastItem,zo.ratingStars),rating:c,showText:!0}),r.createElement(a.wY,{className:zo.image,altText:p,src:s,srcSet:d})),r.createElement(Uo,{className:zo.saveButton,id:i,page:u,title:p}))}$o.propTypes={author:E.exports.string.isRequired,className:E.exports.string,id:E.exports.number.isRequired,imageUrl:E.exports.string.isRequired,page:E.exports.string.isRequired,previewUrl:E.exports.string.isRequired,ratingAverage:E.exports.number.isRequired,retinaImageUrl:E.exports.string.isRequired,title:E.exports.string.isRequired},$o.defaultProps={className:null},Jo.propTypes={author:E.exports.string.isRequired,className:E.exports.string,id:E.exports.number.isRequired,imageUrl:E.exports.string.isRequired,page:E.exports.string.isRequired,previewUrl:E.exports.string.isRequired,ratingAverage:E.exports.number.isRequired,retinaImageUrl:E.exports.string.isRequired,title:E.exports.string.isRequired},Jo.defaultProps={className:null};var ea="Document-module_wrapper__H6hHC",ta="Document-module_title__Y3gLE",na="Document-module_uploadedBy__wQWFb",ra="Document-module_controls__GJiAW",ia="Document-module_button__WPqYw",oa="Document-module_downloadButton__K9q17",aa="Document-module_uploader__QM3wE",sa="Document-module_saveButton__dqUrm";function ua(e){var{author:t,className:n,id:i,imageUrl:s,isDownloadable:u,openDownloadDocument:l,page:c,previewUrl:d,retinaImageUrl:p,title:f}=e;return r.createElement("article",{className:ge(n,ea,zo.wrapper,zo.rectangleImageCell),"data-e2e":"cell"},r.createElement("a",{className:zo.link,href:d},r.createElement("span",{className:ge(ta,zo.textProminent,zo.textTop),"data-e2e":"title"},f),r.createElement("span",{className:na},o.Z.t("shared.common.uploaded_by")),r.createElement("span",{className:ge([aa,zo.textMuted]),"data-e2e":"author"},t),r.createElement(a.wY,{className:zo.image,altText:f,src:s,srcSet:p})),r.createElement("div",{className:ra},u?r.createElement(a.$,{content:o.Z.t("shared.common.download")},r.createElement(a.Av,{className:ge(ia,oa),onClick:l},r.createElement(a.JO,{icon:"download_with_line"}),r.createElement(a.TX,null,"".concat(o.Z.t("shared.common.download")," ").concat(f)))):null,r.createElement(Uo,{className:ge(ia,sa),id:i,page:c,title:f})))}ua.propTypes={author:E.exports.string.isRequired,className:E.exports.string,id:E.exports.number.isRequired,isDownloadable:E.exports.bool,imageUrl:E.exports.string.isRequired,openDownloadDocument:E.exports.func.isRequired,page:E.exports.string.isRequired,previewUrl:E.exports.string.isRequired,retinaImageUrl:E.exports.string.isRequired,title:E.exports.string.isRequired},ua.defaultProps={className:null,isDownloadable:!0};var la=(0,u.$j)(null,((e,t)=>{var{"data-e2e":n,id:r,page:i}=t;return{openDownloadDocument:()=>e(A({"data-e2e":n,documentId:r,page:i}))}}))(ua),ca={wrapper:"Magazine-module_wrapper__pvo-I",image:"Magazine-module_image__HGoTO",oneLine:"Magazine-module_oneLine__CO8sl",textBottom:"Magazine-module_textBottom__v1-oL"};function da(e){var{author:t,className:n,id:i,imageUrl:s,page:u,previewUrl:l,retinaImageUrl:c,title:d}=e;return r.createElement("article",{className:ge(n,ca.wrapper,zo.wrapper,zo.rectangleImageCell),"data-e2e":"cell"},r.createElement("a",{className:zo.link,href:l},r.createElement("span",{className:ge(zo.textProminent,ca.oneLine),"data-e2e":"author"},t),r.createElement(a.TX,null," ".concat(o.Z.t("shared.common.title_author_separator")," ")),r.createElement("span",{className:ge(zo.visuallyLastItem,zo.textMuted,ca.textBottom,zo.textBottom),"data-e2e":"title"},d),r.createElement(a.wY,{className:ge(zo.image,ca.image),altText:d,src:s,srcSet:c})),r.createElement(Uo,{className:zo.saveButton,id:i,page:u,title:d}))}da.propTypes={author:E.exports.string.isRequired,className:E.exports.string,id:E.exports.number.isRequired,imageUrl:E.exports.string.isRequired,page:E.exports.string.isRequired,previewUrl:E.exports.string.isRequired,retinaImageUrl:E.exports.string.isRequired,title:E.exports.string.isRequired},da.defaultProps={className:null};var pa={roundedCornerImage:"Podcast-module_roundedCornerImage__CqHdR",textProminent:"Podcast-module_textProminent__-x060",textTop:"Podcast-module_textTop__9S8es"};function fa(e){var{contentLength:t,className:n,id:i,imageUrl:s,page:u,previewUrl:l,retinaImageUrl:c,title:d}=e;return r.createElement("article",{className:ge(n,zo.wrapper,zo.squareImageCell),"data-e2e":"cell"},r.createElement("a",{className:zo.link,href:l},r.createElement("span",{className:ge(pa.textProminent,pa.textTop),"data-e2e":"title"},d),r.createElement("span",{className:ge(zo.textMuted,zo.visuallyLastItem)},o.Z.t("shared.podcast_series.num_podcast_episodes",{count:t})),r.createElement(a.wY,{className:ge(zo.image,pa.roundedCornerImage),altText:d,src:s,srcSet:c})),r.createElement(Uo,{className:zo.saveButton,id:i,page:u,title:d}))}function ha(e){var{author:t,className:n,consumptionTime:i,id:s,imageUrl:u,page:l,previewUrl:c,retinaImageUrl:d,title:p}=e;return r.createElement("article",{className:ge(n,zo.wrapper,zo.squareImageCell),"data-e2e":"cell"},r.createElement("a",{className:zo.link,href:c},r.createElement("span",{className:ge(zo.textProminent,zo.textTop),"data-e2e":"title"},p),r.createElement(a.TX,null," ".concat(o.Z.t("shared.common.title_author_separator")," ")),r.createElement("span",{className:ge(zo.textMuted,zo.textBottom),"data-e2e":"author"},t),r.createElement("div",{className:ge(zo.visuallyLastItem,zo.consumptionTime),"data-e2e":"consumption-time"},o.Z.t("content_lengths.listening_minutes",{minutes:wt(i)})),r.createElement(a.wY,{className:zo.image,altText:p,src:u,srcSet:d})),r.createElement(Uo,{className:zo.saveButton,id:s,page:l,title:p}))}fa.propTypes={contentLength:E.exports.number.isRequired,className:E.exports.string,id:E.exports.number.isRequired,imageUrl:E.exports.string.isRequired,page:E.exports.string.isRequired,previewUrl:E.exports.string.isRequired,retinaImageUrl:E.exports.string.isRequired,title:E.exports.string.isRequired},fa.defaultProps={className:null},ha.propTypes={author:E.exports.string.isRequired,className:E.exports.string,consumptionTime:E.exports.number.isRequired,id:E.exports.number.isRequired,imageUrl:E.exports.string.isRequired,page:E.exports.string.isRequired,previewUrl:E.exports.string.isRequired,retinaImageUrl:E.exports.string.isRequired,title:E.exports.string.isRequired},ha.defaultProps={className:null};var ga={roundedCorners:"Summary-module_roundedCorners__R31KC"};function ma(e){var{authorPossessive:t,className:n,consumptionTime:i,id:s,imageUrl:u,page:l,previewUrl:c,retinaImageUrl:d,title:p}=e;return r.createElement("article",{className:ge(n,zo.wrapper,zo.rectangleImageCell),"data-e2e":"cell"},r.createElement("a",{className:zo.link,href:c},r.createElement("span",{className:ge(zo.textMuted,zo.textTop),"data-e2e":"author"},o.Z.t("shared.common.key_insights")," ",t),r.createElement("span",{className:ge(zo.textProminent,zo.textBottom),"data-e2e":"title"},p),r.createElement("div",{className:ge(zo.visuallyLastItem,zo.consumptionTime),"data-e2e":"consumption-time"},o.Z.t("content_lengths.listening_minutes",{minutes:wt(i)})),r.createElement(a.wY,{className:ge(zo.image,ga.roundedCorners),altText:p,src:u,srcSet:d})),r.createElement(Uo,{className:zo.saveButton,id:s,page:l,title:p}))}function va(e){var{author:t,className:n,id:i,imageUrl:s,page:u,previewUrl:l,ratingAverage:c,retinaImageUrl:d,title:p}=e;return r.createElement("article",{className:ge(n,zo.wrapper,zo.rectangleImageCell),"data-e2e":"cell"},r.createElement("a",{className:zo.link,href:l},r.createElement("span",{className:ge(zo.textProminent,zo.textTop),"data-e2e":"title"},p),r.createElement(a.TX,null," ".concat(o.Z.t("shared.common.title_author_separator")," ")),r.createElement("span",{className:ge(zo.textMuted,zo.textBottom),"data-e2e":"author"},t),r.createElement(a.u,{className:ge(zo.visuallyLastItem,zo.ratingStars),rating:c,showText:!0}),r.createElement(a.wY,{className:zo.image,altText:p,src:s,srcSet:d})),r.createElement(Uo,{className:zo.saveButton,id:i,page:u,title:p}))}ma.propTypes={authorPossessive:E.exports.string.isRequired,className:E.exports.string,consumptionTime:E.exports.number.isRequired,id:E.exports.number.isRequired,imageUrl:E.exports.string.isRequired,page:E.exports.string.isRequired,previewUrl:E.exports.string.isRequired,retinaImageUrl:E.exports.string.isRequired,title:E.exports.string.isRequired},ma.defaultProps={className:null},va.propTypes={author:E.exports.string.isRequired,className:E.exports.string,id:E.exports.number.isRequired,imageUrl:E.exports.string.isRequired,page:E.exports.string.isRequired,previewUrl:E.exports.string.isRequired,ratingAverage:E.exports.number.isRequired,retinaImageUrl:E.exports.string.isRequired,title:E.exports.string.isRequired},va.defaultProps={className:null};var _a=["document"];function Aa(e){var{document:t}=e,n=pe(e,_a);switch(t.type){case R.ARTICLE:return r.createElement(Xo,de({},n,t));case R.AUDIOBOOK:return r.createElement($o,de({},n,t));case R.BOOK:return r.createElement(Jo,de({},n,t));case R.DOCUMENT:return r.createElement(la,de({},n,t));case R.MAGAZINE:case R.PUBLICATION_ISSUE:return r.createElement(da,de({},n,t));case R.PODCAST:return r.createElement(fa,de({},n,t));case R.PODCAST_EPISODE:return r.createElement(ha,de({},n,t));case R.SHEET_MUSIC:return r.createElement(va,de({},n,t));case R.SUMMARY_CANONICAL:return r.createElement(ma,de({},n,t));default:return Et("Standard",t.type),null}}Aa.propTypes={className:E.exports.string,document:E.exports.object.isRequired,page:E.exports.string.isRequired};var ya=(0,u.$j)(((e,t)=>{var{documentId:n}=t;return{document:f.Z(n)(e)}}),null)(Aa);function ba(e){var{document:t,documentId:n,page:i,showSaveAction:o,showSavedCell:u,target:l}=e;if(!t)return bt(n),null;var{articleCount:c,className:d,consumptionTime:p,downvoteCount:f,id:h,imageUrl:g,isSeries:m,percentCompleted:v,ratingAverage:_,retinaImageUrl:A,timeRemaining:y,title:b,type:E,upvoteCount:w}=t,x=e=>{e.stopPropagation()};if(!j.includes(E))return Et("Standard",E),null;var I,M=(0,s.e9)(null,null,null,h);E===R.SHEET_MUSIC_CHAPTER&&(I=M.replace(/100/,"200"));var S={articleCount:c,consumptionTime:p,downvoteCount:f,id:h,isSeries:m,page:i,ratingAverage:_,showSaveAction:o,showSavedCell:u,title:b,type:E,upvoteCount:w};return r.createElement("article",{className:ge(d,Pt.wrapper,{[Pt.article]:E===R.ARTICLE}),"data-e2e":"cell"},r.createElement("a",{className:Pt.linkOverlay,href:yt(t,u),target:l},r.createElement(a.TX,null,b)),E===R.ARTICLE?r.createElement(r.Fragment,null,r.createElement(rn,de({},t,{className:ge(Pt.metadata,Pt.articleMetadata),handleAuthorClick:x,hasArticleImage:!!g})),g?r.createElement(a.wY,{altText:b,className:Pt.articleImage,src:g,srcSet:A}):r.createElement("p",{className:Pt.articleDescription,"data-e2e":"description"},t.description)):r.createElement(r.Fragment,null,r.createElement("div",{className:Pt.accentColorContainer,style:{backgroundColor:M,color:I}},r.createElement(oe,{imageUrl:g,retinaImageUrl:A,title:b,type:E})),r.createElement(rn,de({},t,{className:Pt.metadata,handleAuthorClick:x}))),u?r.createElement("div",{className:Pt.savedBottomSection},r.createElement(jt,de({},S,{percentCompleted:null!==v&&void 0!==v?v:0,timeRemaining:y}))):r.createElement(kt,S))}ba.propTypes={document:E.exports.object.isRequired,documentId:E.exports.number.isRequired,page:E.exports.string.isRequired,showSaveAction:E.exports.bool,showSavedCell:E.exports.bool,target:E.exports.string},ba.defaultProps={showSaveAction:!0,showSavedCell:!1,target:"_self"};var Ea=(0,u.$j)(((e,t)=>{var{documentId:n}=t;return{document:f.Z(n)(e)}}),null)(ba),wa={progressContainer:"ProgressIndicator-module_progressContainer__-CXMK",progressOutlineRing:"ProgressIndicator-module_progressOutlineRing__GS7sG",progressFillRing:"ProgressIndicator-module_progressFillRing__SvYAn",svgContainer:"ProgressIndicator-module_svgContainer__66IkL"},xa=e=>{switch(e){case R.AUDIOBOOK:case R.SUMMARY_CANONICAL:return o.Z.t("shared.common.progress.listened");default:return o.Z.t("shared.common.progress.read")}},Ia=(e,t)=>e*(1-t/100);function Ma(e){var{documentId:t,contentType:n,percentCompleted:i,diameter:o,thickness:a}=e,s=(o+a)/2,u=o+a,l="".concat(Math.round(i),"% ").concat(xa(n)),c=o/2,d=Math.PI*c*2;return r.createElement("span",{style:{height:o+a}},r.createElement("div",{className:wa.progressContainer},r.createElement("svg",{role:"img",className:wa.svgContainer,"aria-labelledby":t,width:u,height:u},r.createElement("title",{id:t},l),r.createElement("circle",{className:wa.progressOutlineRing,cx:s,cy:s,fill:"none",r:c,strokeWidth:a}),r.createElement("circle",{className:wa.progressFillRing,cx:s,cy:s,fill:"none",r:c,strokeDasharray:d,style:{strokeDashoffset:Ia(d,i)},strokeWidth:a}))))}Ma.propTypes={contentType:E.exports.oneOf(Object.values(R)),documentId:E.exports.number.isRequired,percentCompleted:(e,t,n)=>{var r=e[t];if(r<0||r>100)return new Error("Invalid prop ".concat(t," supplied to ").concat(n,". ").concat(t," must be valued between 0 -> 100"))},diameter:E.exports.number,thickness:E.exports.number},Ma.defaultProps={contentType:R.BOOK,percentCompleted:0,diameter:15,thickness:3};var Sa={wrapper:"Saved-module_wrapper__76qnR",rectangleImageCell:"Saved-module_rectangleImageCell__Ye0hM",image:"Saved-module_image__U21e1",squareImageCell:"Saved-module_squareImageCell__UX2mD",consumptionTime:"Saved-module_consumptionTime__N7DD4",link:"Saved-module_link__xR0aX",saveButton:"Saved-module_saveButton__6vs1Q",textProminent:"Saved-module_textProminent__YlaY7",textTop:"Saved-module_textTop__-ad-5",textMuted:"Saved-module_textMuted__uyQHF",textBottom:"Saved-module_textBottom__8AN36",textSmall:"Saved-module_textSmall__NQ97V",visuallyLastItem:"Saved-module_visuallyLastItem__sUrIf",progress:"Saved-module_progress__o02HW",timeRemaining:"Saved-module_timeRemaining__O2hNq"};function Ca(e){var{author:t,className:n,id:i,imageUrl:s,isSeries:u,page:l,percentCompleted:c,readUrl:d,retinaImageUrl:p,title:f,timeRemaining:h}=e;return r.createElement("article",{className:ge(n,Sa.wrapper,Sa.squareImageCell),"data-e2e":"cell"},r.createElement("a",{className:Sa.link,href:d,target:"_blank"},r.createElement("span",{className:ge(Sa.textProminent,Sa.textTop),"data-e2e":"title"},f),r.createElement(a.TX,null," ".concat(o.Z.t("shared.common.title_author_separator")," ")),r.createElement("span",{className:ge(Sa.textMuted,Sa.textBottom),"data-e2e":"author"},t),u?r.createElement("div",{className:ge(Sa.textMuted,Sa.visuallyLastItem,Sa.textSmall),"data-e2e":"content-type"},o.Z.t("shared.content_types.series")):r.createElement("div",{className:Sa.progress,"data-e2e":"time-remaining"},r.createElement(Ma,{documentId:i,contentType:R.AUDIOBOOK,percentCompleted:c}),r.createElement("span",{className:Sa.timeRemaining},Mt(h))),r.createElement(a.wY,{className:Sa.image,altText:f,src:s,srcSet:p})),r.createElement(Uo,{className:Sa.saveButton,id:i,page:l,title:f,requireConfirmation:!0}))}function Na(e){var{author:t,className:n,id:i,imageUrl:s,page:u,percentCompleted:l,readUrl:c,retinaImageUrl:d,timeRemaining:p,title:f,isSeries:h}=e;return r.createElement("article",{className:ge(n,Sa.wrapper,Sa.rectangleImageCell),"data-e2e":"cell"},r.createElement("a",{className:Sa.link,href:c},r.createElement("span",{className:ge(Sa.textProminent,Sa.textTop),"data-e2e":"title"},f),r.createElement(a.TX,null," ".concat(o.Z.t("shared.common.title_author_separator")," ")),r.createElement("span",{className:ge(Sa.textMuted,Sa.textBottom),"data-e2e":"author"},t),h?r.createElement("div",{className:ge(Sa.textMuted,Sa.visuallyLastItem,Sa.textSmall),"data-e2e":"content-type"},o.Z.t("shared.content_types.series")):r.createElement("div",{className:Sa.progress,"data-e2e":"time-remaining"},r.createElement(Ma,{documentId:i,contentType:R.BOOK,percentCompleted:l}),r.createElement("span",{className:Sa.timeRemaining},o.Z.t("shared.time_remaining.pages",{count:p}))),r.createElement(a.wY,{className:Sa.image,altText:f,src:s,srcSet:d})),r.createElement(Uo,{className:Sa.saveButton,id:i,page:u,title:f,requireConfirmation:!0}))}function Ta(e){var{author:t,className:n,id:i,imageUrl:s,page:u,readUrl:l,retinaImageUrl:c,title:d}=e;return r.createElement("article",{className:ge(n,Sa.wrapper,Sa.rectangleImageCell),"data-e2e":"cell"},r.createElement("a",{className:Sa.link,href:l},r.createElement("span",{className:ge(Sa.textProminent,Sa.textTop),"data-e2e":"author"},t),r.createElement(a.TX,null," ".concat(o.Z.t("shared.common.title_author_separator")," ")),r.createElement("span",{className:ge(Sa.textMuted,Sa.textBottom),"data-e2e":"title"},d),r.createElement("div",{className:ge(Sa.textSmall,Sa.visuallyLastItem,Sa.textBottom),"data-e2e":"content-type"},o.Z.t("shared.common.issue")),r.createElement(a.wY,{className:Sa.image,altText:d,src:s,srcSet:c})),r.createElement(Uo,{className:Sa.saveButton,id:i,page:u,title:d,requireConfirmation:!0}))}function La(e){var{author:t,className:n,id:i,imageUrl:s,page:u,percentCompleted:l,readUrl:c,retinaImageUrl:d,timeRemaining:p,title:f}=e;return r.createElement("article",{className:ge(n,Sa.wrapper,Sa.squareImageCell),"data-e2e":"cell"},r.createElement("a",{className:Sa.link,href:c,target:"_blank"},r.createElement("span",{className:ge(Sa.textProminent,Sa.textTop),"data-e2e":"title"},f),r.createElement(a.TX,null," ".concat(o.Z.t("shared.common.title_author_separator")," ")),r.createElement("span",{className:ge(Sa.textMuted,Sa.textBottom),"data-e2e":"author"},t),r.createElement("div",{className:Sa.progress},r.createElement(Ma,{documentId:i,contentType:R.PODCAST_EPISODE,percentCompleted:l}),r.createElement("span",{className:Sa.timeRemaining,"data-e2e":"time-remaining"},Mt(p))),r.createElement(a.wY,{className:Sa.image,altText:f,src:s,srcSet:d})),r.createElement(Uo,{className:Sa.saveButton,id:i,page:u,title:f,requireConfirmation:!0}))}Ca.propTypes={author:E.exports.string.isRequired,className:E.exports.string,id:E.exports.number.isRequired,imageUrl:E.exports.string.isRequired,isSeries:E.exports.bool,page:E.exports.string.isRequired,percentCompleted:E.exports.number,readUrl:E.exports.string.isRequired,retinaImageUrl:E.exports.string.isRequired,timeRemaining:E.exports.number.isRequired,title:E.exports.string.isRequired},Ca.defaultProps={className:null,isSeries:!1},Na.propTypes={author:E.exports.string.isRequired,className:E.exports.string,id:E.exports.number.isRequired,imageUrl:E.exports.string.isRequired,page:E.exports.string.isRequired,percentCompleted:E.exports.number,readUrl:E.exports.string.isRequired,retinaImageUrl:E.exports.string.isRequired,timeRemaining:E.exports.number.isRequired,title:E.exports.string.isRequired,isSeries:E.exports.bool},Na.defaultProps={className:null,isSeries:!1},Ta.propTypes={author:E.exports.string.isRequired,className:E.exports.string,id:E.exports.number.isRequired,imageUrl:E.exports.string.isRequired,page:E.exports.string.isRequired,readUrl:E.exports.string.isRequired,retinaImageUrl:E.exports.string.isRequired,title:E.exports.string.isRequired},Ta.defaultProps={className:null},La.propTypes={author:E.exports.string.isRequired,className:E.exports.string,id:E.exports.number.isRequired,imageUrl:E.exports.string.isRequired,page:E.exports.string.isRequired,percentCompleted:E.exports.number,readUrl:E.exports.string.isRequired,retinaImageUrl:E.exports.string.isRequired,timeRemaining:E.exports.number.isRequired,title:E.exports.string.isRequired},La.defaultProps={className:null};var Da="Removed-module_removed__HWVcQ",Oa="Removed-module_message__9YSwC",ka="Removed-module_title__uBLSv",Ra="Removed-module_subtitle__9PPVc",ja=[R.AUDIOBOOK,R.PODCAST,R.PODCAST_EPISODE];function Pa(e){var{id:t,title:n,type:i,addDocumentToSaved:s}=e,u=ja.includes(i),l=ge(Sa.wrapper,{[Sa.rectangleImageCell]:!u,[Sa.squareImageCell]:u});return r.createElement("div",{className:l},r.createElement("div",{className:Da},r.createElement("div",{className:Oa},r.createElement("p",{className:ka},n),r.createElement("p",{className:Ra},o.Z.t("shared.common.removed_from_saved"))),r.createElement(a.Av,{onClick:()=>s(t)},r.createElement(a.TX,null,o.Z.t("shared.common.undo_title_removed_from_saved",{title:n})),o.Z.t("shared.common.undo"))))}Pa.propTypes={id:E.exports.number.isRequired,title:E.exports.string.isRequired,type:E.exports.oneOf(Object.values(R)).isRequired,addDocumentToSaved:E.exports.func.isRequired};var Ua=(0,u.$j)(null,((e,t)=>({addDocumentToSaved:()=>e((0,c.Z)(t.id))})))(Pa);function za(e){var{author:t,className:n,id:i,imageUrl:s,page:u,readUrl:l,retinaImageUrl:c,title:d,type:p}=e;return r.createElement("article",{className:ge(n,Sa.wrapper,Sa.rectangleImageCell),"data-e2e":"cell"},r.createElement("a",{className:Sa.link,href:l},r.createElement("span",{className:ge(Sa.textProminent,Sa.textTop),"data-e2e":"title"},d),r.createElement(a.TX,null," ".concat(o.Z.t("shared.common.title_author_separator")," ")),r.createElement("span",{className:ge(Sa.textMuted,Sa.textBottom),"data-e2e":"author"},t),r.createElement("div",{className:ge(Sa.textSmall,Sa.textBottom),"data-e2e":"content-type"},p===R.SHEET_MUSIC_CHAPTER?o.Z.t("content_types.song"):o.Z.t("shared.common.songbook")),r.createElement(a.wY,{className:Sa.image,altText:d,src:s,srcSet:c})),r.createElement(Uo,{className:Sa.saveButton,id:i,page:u,title:d,requireConfirmation:!0}))}za.propTypes={type:E.exports.oneOf([R.SHEET_MUSIC,R.SHEET_MUSIC_CHAPTER]).isRequired,author:E.exports.string.isRequired,className:E.exports.string,id:E.exports.number.isRequired,imageUrl:E.exports.string.isRequired,page:E.exports.string.isRequired,readUrl:E.exports.string.isRequired,retinaImageUrl:E.exports.string.isRequired,title:E.exports.string.isRequired},za.defaultProps={className:null};var Ba={roundedCornerImage:"Podcast-module_roundedCornerImage__Ama7g",textProminent:"Podcast-module_textProminent__8MTcE",textTop:"Podcast-module_textTop__UYPyi"};function qa(e){var{contentLength:t,className:n,id:i,imageUrl:s,page:u,readUrl:l,retinaImageUrl:c,title:d}=e;return r.createElement("article",{className:ge(n,Sa.wrapper,Sa.squareImageCell),"data-e2e":"cell"},r.createElement("a",{className:Sa.link,href:l},r.createElement("span",{className:ge(Ba.textProminent,Ba.textTop),"data-e2e":"title"},d),r.createElement("span",{className:ge(Sa.textMuted,Sa.textSmall,Sa.visuallyLastItem),"data-e2e":"content-type"},o.Z.t("shared.podcast_series.num_podcast_episodes",{count:t})),r.createElement(a.wY,{className:ge(Sa.image,Ba.roundedCornerImage),altText:d,src:s,srcSet:c})),r.createElement(Uo,{className:Sa.saveButton,id:i,page:u,title:d,requireConfirmation:!0}))}qa.propTypes={contentLength:E.exports.number.isRequired,className:E.exports.string,id:E.exports.number.isRequired,imageUrl:E.exports.string.isRequired,page:E.exports.string.isRequired,readUrl:E.exports.string.isRequired,retinaImageUrl:E.exports.string.isRequired,title:E.exports.string.isRequired},qa.defaultProps={className:null};var Fa={wrapper:"Document-module_wrapper__N7glB",title:"Document-module_title__l4LON",uploadedBy:"Document-module_uploadedBy__PPXSz",author:"Document-module_author__qVbeN"};function Za(e){var{author:t,className:n,id:i,imageUrl:s,page:u,readUrl:l,percentCompleted:c,retinaImageUrl:d,timeRemaining:p,title:f}=e;return r.createElement("article",{className:ge(n,Fa.wrapper,Sa.wrapper,Sa.rectangleImageCell),"data-e2e":"cell"},r.createElement("a",{className:Sa.link,href:l},r.createElement("span",{className:Fa.title,"data-e2e":"title"},f),r.createElement("span",{className:Fa.uploadedBy},o.Z.t("shared.common.uploaded_by")),r.createElement("span",{className:ge(Sa.textMuted,Fa.author),"data-e2e":"author"},t),r.createElement("div",{className:Sa.progress},r.createElement(Ma,{documentId:i,contentType:R.BOOK,percentCompleted:c}),r.createElement("span",{className:Sa.timeRemaining,"data-e2e":"time-remaining"},o.Z.t("shared.time_remaining.pages",{count:p}))),r.createElement(a.wY,{className:Sa.image,altText:f,src:s,srcSet:d})),r.createElement(Uo,{className:Sa.saveButton,id:i,page:u,title:f,requireConfirmation:!0}))}Za.propTypes={author:E.exports.string.isRequired,className:E.exports.string,id:E.exports.number.isRequired,imageUrl:E.exports.string.isRequired,page:E.exports.string.isRequired,percentCompleted:E.exports.number,readUrl:E.exports.string.isRequired,retinaImageUrl:E.exports.string.isRequired,timeRemaining:E.exports.number.isRequired,title:E.exports.string.isRequired},Za.defaultProps={className:null};var Ga="Article-module_wrapper__aqs8G",Ya="Article-module_anchor__xryl-",Ha="Article-module_description__Cpif2",Wa="Article-module_mainImage__K7HNC",Va="Article-module_publicationImage__jT5oJ",Qa="Article-module_title__eTwwW",Ka="Article-module_noImage__-7pHd",Xa="Article-module_author__FkA3C",$a="Article-module_authorContainer__2RZ0j",Ja="Article-module_consumptionTime__ayzcH";function es(e){var{author:t,className:n,consumptionTime:i,description:s,id:u,imageUrl:l,page:c,pageWidth:d,readUrl:p,publicationImageUrl:f,publicationRetinaImageUrl:h,retinaImageUrl:g,title:m}=e,[v,_]=(0,r.useState)(null),A=(0,r.useRef)(null),y=(0,r.useRef)(null);return(0,r.useEffect)((()=>{var{offsetTop:e}=A.current,{offsetHeight:t}=y.current,n=t-e;_({height:"".concat(n,"px"),WebkitLineClamp:Math.round(n/17)})}),[d]),r.createElement("article",{className:ge(n,Sa.wrapper,Sa.rectangleImageCell),ref:y,"data-e2e":"cell"},r.createElement("a",{className:Ya,href:p},l&&g?r.createElement(a.wY,{altText:m,className:Wa,src:l,srcSet:g}):null,r.createElement("div",{className:ge(Qa,{[Ka]:!l}),"data-e2e":"title"},m),r.createElement("div",{className:$a},r.createElement(a.wY,{altText:t,className:Va,src:f,srcSet:h}),r.createElement("div",{className:Xa,"data-e2e":"author"},t)),r.createElement("p",{className:Ha,ref:A,style:v},s),r.createElement("div",{className:Sa.progress},r.createElement("div",{className:Ja,"data-e2e":"consumption-time"},o.Z.t("content_lengths.reading_minutes",{minutes:wt(i)})))),r.createElement(Uo,{className:Sa.saveButton,id:u,page:c,title:m,requireConfirmation:!0}))}es.propTypes={author:E.exports.string.isRequired,className:E.exports.string,consumptionTime:E.exports.number.isRequired,description:E.exports.string.isRequired,id:E.exports.number.isRequired,imageUrl:E.exports.string,page:E.exports.string.isRequired,pageWidth:E.exports.number.isRequired,readUrl:E.exports.string.isRequired,publicationImageUrl:E.exports.string.isRequired,publicationRetinaImageUrl:E.exports.string.isRequired,retinaImageUrl:E.exports.string,title:E.exports.string.isRequired},es.defaultProps={className:Ga,imageUrl:null,retinaImageUrl:null};var ts=(0,u.$j)((e=>({pageWidth:e.viewport.width})))(es),ns={roundedCorners:"Summary-module_roundedCorners__ht1iO"};function rs(e){var{authorPossessive:t,className:n,id:i,imageUrl:s,page:u,consumptionTime:l,readUrl:c,retinaImageUrl:d,title:p}=e;return r.createElement("article",{className:ge(n,Sa.wrapper,Sa.rectangleImageCell,ns.roundedCorners),"data-e2e":"cell"},r.createElement("a",{className:Sa.link,href:c},r.createElement("span",{className:ge(Sa.textMuted,Sa.textTop),"data-e2e":"author"},o.Z.t("shared.common.key_insights")," ",t),r.createElement("span",{className:ge(Sa.textProminent,Sa.textBottom),"data-e2e":"title"},p),r.createElement("div",{className:ge(Sa.textSmall,Sa.visuallyLastItem),"data-e2e":"consumption-time"},o.Z.t("content_lengths.reading_minutes",{minutes:wt(l)})),r.createElement(a.wY,{className:Sa.image,altText:p,src:s,srcSet:d})),r.createElement(Uo,{className:Sa.saveButton,id:i,page:u,title:p,requireConfirmation:!0}))}function is(e){var{document:t,page:n,isSaved:i}=e;if(!i)return r.createElement(Ua,{id:t.id,title:t.title,type:t.type});switch(t.type){case R.BOOK:return r.createElement(Na,de({},t,{page:n}));case R.AUDIOBOOK:return r.createElement(Ca,de({},t,{page:n}));case R.PUBLICATION_ISSUE:return r.createElement(Ta,de({},t,{page:n}));case R.PODCAST_EPISODE:return r.createElement(La,de({},t,{page:n}));case R.SHEET_MUSIC:case R.SHEET_MUSIC_CHAPTER:return r.createElement(za,de({},t,{page:n}));case R.PODCAST:return r.createElement(qa,de({},t,{page:n}));case R.DOCUMENT:return r.createElement(Za,de({},t,{page:n}));case R.ARTICLE:return r.createElement(ts,de({},t,{page:n}));case R.SUMMARY_CANONICAL:return r.createElement(rs,de({},t,{page:n}));default:return Et("Saved",t.type),null}}rs.propTypes={authorPossessive:E.exports.string.isRequired,className:E.exports.string,id:E.exports.number.isRequired,imageUrl:E.exports.string.isRequired,page:E.exports.string.isRequired,readUrl:E.exports.string.isRequired,retinaImageUrl:E.exports.string.isRequired,consumptionTime:E.exports.number,title:E.exports.string.isRequired},rs.defaultProps={className:null,consumptionTime:0},is.propTypes={document:E.exports.object.isRequired,page:E.exports.string.isRequired,isSaved:E.exports.bool.isRequired};var os=(0,u.$j)(((e,t)=>{var{documentId:n}=t,{saved:r,finished:i}=e.savedDocuments;return{isSaved:!!r[n]||!!i[n],document:f.Z(n)(e)}}),null)(is);function as(e){var{document:t,isSaved:n,page:i}=e,{author:o,id:a,title:s,type:u}=t,l=u===R.AUDIOBOOK||u===R.PODCAST_EPISODE?"_blank":"_self";return n?r.createElement(Ea,{documentId:a,page:i,target:l,showSavedCell:!0}):r.createElement(Un,{author:o,id:a,title:s})}as.propTypes={document:E.exports.object.isRequired,isSaved:E.exports.bool.isRequired,page:E.exports.string.isRequired};var ss=(0,u.$j)(((e,t)=>{var{documentId:n}=t,{saved:r,finished:i}=e.savedDocuments;return{isSaved:!(!r[n]&&!i[n]),document:f.Z(n)(e)}}),null)(as)},9371:(e,t,n)=>{"use strict";n.d(t,{WK:()=>vo,Ss:()=>bo,f9:()=>Io,d7:()=>hn,lr:()=>or,c0:()=>mr,YJ:()=>Qn,XZ:()=>vr,h_:()=>Zl,SV:()=>wn,IH:()=>Ir,Tx:()=>Wo,rB:()=>Ii,Io:()=>na,a:()=>Li,JO:()=>qn,jl:()=>Bi,pd:()=>Oi,BZ:()=>Ri,wY:()=>Fi,C5:()=>In,qV:()=>Jl,M5:()=>sa,f5:()=>Sr,WU:()=>la,_g:()=>pa,e_:()=>ya,nZ:()=>ac,ee:()=>La,Gm:()=>cc,vn:()=>ka,SY:()=>Ua,Ob:()=>Nu,np:()=>Du,GX:()=>Jn,ob:()=>sr,$j:()=>Nn,Fx:()=>On,rO:()=>sl,u:()=>Qu,Nj:()=>ol,vm:()=>Gi,hU:()=>ii,ML:()=>ql,Av:()=>Un,oi:()=>Wi,RW:()=>wl,$:()=>ro,Bf:()=>Rn,Ld:()=>Pl,TX:()=>jn,id:()=>yr});var r=n(7294),i=n(3980),o=n.n(i),a=n(2779),s=n.n(a),u=n(1320),l=n(7933),c=n(2436),d=n.n(c),p=n(6002),f=n(6940),h=n(9207),g=n(7903),m=n(8192),v=n.n(m),_=n(2109),A=n.n(_),y=n(8123),b=n.n(y),E=n(9585),w=n.n(E),x=n(3598),I=n.n(x),M=n(5202),S=n.n(M),C=n(1161),N=n.n(C),T=n(7858),L=n.n(T),D=n(4367),O=n.n(D),k=n(9197),R=n.n(k),j=n(3353),P=n.n(j),U=n(3571),z=n.n(U),B=n(3004),q=n.n(B),F=n(9638),Z=n.n(F),G=n(6150),Y=n.n(G),H=n(2363),W=n.n(H),V=n(1777),Q=n.n(V),K=n(9661),X=n.n(K),$=n(1517),J=n.n($),ee=n(7540),te=n.n(ee),ne=n(2367),re=n.n(ne),ie=n(259),oe=n.n(ie),ae=n(3976),se=n.n(ae),ue=n(6338),le=n.n(ue),ce=n(4993),de=n(9478),pe=n(984),fe=n(1605),he=n(8481),ge=n(39),me=n(375),ve=n(4040),_e=n(1182);function Ae(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var ye=n(3935);const be=!1,Ee=r.createContext(null);var we=function(e){return e.scrollTop},xe="unmounted",Ie="exited",Me="entering",Se="entered",Ce="exiting",Ne=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Ie,r.appearStatus=Me):i=Se:i=t.unmountOnExit||t.mountOnEnter?xe:Ie,r.state={status:i},r.nextCallback=null,r}(0,_e.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===xe?{status:Ie}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Me&&n!==Se&&(t=Me):n!==Me&&n!==Se||(t=Ce)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Me){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ye.findDOMNode(this);n&&we(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ie&&this.setState({status:xe})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[ye.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||be?this.safeSetState({status:Se},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:Me},(function(){t.props.onEntering(o,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:Se},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ye.findDOMNode(this);t&&!be?(this.props.onExit(r),this.safeSetState({status:Ce},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Ie},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Ie},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ye.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===xe)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,ve.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r.createElement(Ee.Provider,{value:null},"function"===typeof n?n(e,i):r.cloneElement(r.Children.only(n),i))},t}(r.Component);function Te(){}Ne.contextType=Ee,Ne.propTypes={},Ne.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Te,onEntering:Te,onEntered:Te,onExit:Te,onExiting:Te,onExited:Te},Ne.UNMOUNTED=xe,Ne.EXITED=Ie,Ne.ENTERING=Me,Ne.ENTERED=Se,Ne.EXITING=Ce;const Le=Ne;var De=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=Ae(n.className,r):n.setAttribute("class",Ae(n.className&&n.className.baseVal||"",r)));var n,r}))},Oe=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i{const t=(0,r.useRef)(null),[n,i]=(0,r.useState)(ln);return(0,r.useEffect)((()=>{const n=((e,t)=>{const n=e?e.current:null;return!!n&&n.offsetHeight>t})(t,e);i(n?cn:un)}),[]),{truncationRef:t,truncationState:n,handleTruncationExpandClick:()=>i(dn)}};var fn=n(6790);function hn(e){var{above:t=!1,atOrAbove:n=!1,atOrBelow:i=!1,below:o=!1,children:a=null,classes:u="",inline:l=!1,width:c=null}=e,d=l?"span":"div";return r.createElement(d,{className:s()("breakpoint_hide b".concat(c),u,{at_or_above:n,above:t,at_or_below:i,below:o}),"data-e2e":e["data-e2e"]},a)}e=n.hmd(e);var gn=(e,t,n)=>{var{atOrAbove:r,atOrBelow:i,above:o,below:a}=e;if(1!==[r,o,i,a].filter((e=>e)).length)return new Error("\n Invalid props: ".concat(n,' requires only one of the\n props "atOrAbove", "above", "atOrBelow", or "below"\n in order to apply the appropriate media query'))};function mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}hn.propTypes={"data-e2e":o().string,above:gn,atOrAbove:gn,atOrBelow:gn,below:gn,children:o().any.isRequired,classes:o().string,inline:o().bool,width:o().oneOf(Object.values(u.AV)).isRequired},hn.defaultProps={"data-e2e":null};class wn extends r.Component{constructor(e){var t;super(e),t=this,yn(this,"reportToSentry",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.props.disableSentry||(0,u.Tb)(e,Object.assign({},t.props.extraInfo,{trace:n}))})),this.state={hasError:!1}}componentDidCatch(e,t){this.reportToSentry(e,t),this.setState({hasError:!0},(()=>this.props.onError(e,t)))}render(){return this.state.hasError?[]:this.props.children}}wn.propTypes={children:o().any.isRequired,disableSentry:o().bool,extraInfo:o().object,onError:o().func},wn.defaultProps={disableSentry:!1,extraInfo:{},onError:u.ZT};var xn=["href","to","children","className"];function In(e){var{href:t,to:n,children:i,className:o}=e,a=En(e,xn),s=n?l.rU:"a";return r.createElement(s,bn({href:t,to:n,className:o},a),i)}In.propTypes={to:o().oneOfType([o().string,o().func,o().object]),href:o().string,className:o().string,children:o().node},In.defaultProps={to:"",href:"",className:""};var Mn=function(e){return r.createElement("svg",e,r.createElement("clipPath",{id:"a"},r.createElement("path",{d:"M200.666 382h28v28h-28z"})),r.createElement("path",{clipPath:"url(#a)",d:"M214.666 382c-7.732 0-14 6.269-14 14 0 7.732 6.268 14 14 14s14-6.268 14-14c0-7.731-6.268-14-14-14m0 23.882c-5.449 0-9.883-4.433-9.883-9.882 0-5.448 4.434-9.883 9.883-9.883s9.883 4.435 9.883 9.883c0 5.449-4.434 9.882-9.883 9.882",fill:"#02b7a1",transform:"translate(-199.666 -381)"}),r.createElement("path",{clipPath:"url(#a)",d:"M214.666 382v4.118c5.449 0 9.883 4.433 9.883 9.882s-4.434 9.882-9.883 9.882V410c7.732 0 14-6.268 14-14s-6.268-14-14-14",fill:"#017f70",transform:"translate(-199.666 -381)"}))};Mn.defaultProps={height:"30",viewBox:"0 0 30 30",width:"30",xmlns:"http://www.w3.org/2000/svg"};var Sn="small",Cn="wrapper__spinner";function Nn(e){var{className:t,size:n,slow:i}=e,o=s()(Cn,t,"spinner",n,{slow:i});return r.createElement("div",{key:"spinner","aria-hidden":"true",className:o,"data-e2e":e["data-e2e"]},r.createElement(Mn,null))}Nn.propTypes={className:o().string,"data-e2e":o().string,size:o().oneOf([Sn,"large"]),slow:o().bool},Nn.defaultProps={className:null,"data-e2e":null,size:Sn,slow:!1};var Tn=function(e){return r.createElement("svg",e,r.createElement("clipPath",{id:"a"},r.createElement("path",{d:"M200.666 382h28v28h-28z"})),r.createElement("path",{clipPath:"url(#a)",d:"M214.666 382c-7.732 0-14 6.269-14 14 0 7.732 6.268 14 14 14s14-6.268 14-14c0-7.731-6.268-14-14-14m0 23.882c-5.449 0-9.883-4.433-9.883-9.882 0-5.448 4.434-9.883 9.883-9.883s9.883 4.435 9.883 9.883c0 5.449-4.434 9.882-9.883 9.882",fill:"#02b7a1",transform:"translate(-199.666 -381)"}),r.createElement("path",{clipPath:"url(#a)",d:"M214.666 382v4.118c5.449 0 9.883 4.433 9.883 9.882s-4.434 9.882-9.883 9.882V410c7.732 0 14-6.268 14-14s-6.268-14-14-14",fill:"#017f70",transform:"translate(-199.666 -381)"}))};Tn.defaultProps={height:"30",viewBox:"0 0 30 30",width:"30",xmlns:"http://www.w3.org/2000/svg"};var Ln="small",Dn="wrapper__spinner";function On(e){var{className:t,size:n,slow:i}=e;return r.createElement("div",{key:"spinner","aria-hidden":"true",className:s()(Dn,t,"spinner",n,{slow:i}),"data-e2e":e["data-e2e"],"data-testid":"spinner"},r.createElement(Tn,null))}On.propTypes={"data-e2e":o().string,className:o().string,size:o().oneOf([Ln,"large"]),slow:o().bool},On.defaultProps={"data-e2e":null,className:null,size:Ln,slow:!1};var kn={wrapper:"TopTag-module_wrapper__Hap1c",line:"TopTag-module_line__fbkqD"};function Rn(e){var{className:t,"data-e2e":n,label:i}=e;return r.createElement("div",{className:s()(t,kn.wrapper),"data-e2e":n},r.createElement("span",{className:kn.line,"data-testid":"top-tag"},i))}function jn(e){var{"aria-atomic":t,"aria-live":n,children:i,className:o,id:a,role:u,tag:l,text:c}=e,d=l,p=i||c,f={"aria-atomic":t,"aria-live":n,"data-e2e":e["data-e2e"],className:s()(o,"visually_hidden"),id:a,role:u};return r.createElement(d,f,p)}Rn.propTypes={"data-e2e":o().string,className:o().string,label:o().string.isRequired},Rn.defaultProps={"data-e2e":"top-tag"},jn.propTypes={"aria-atomic":o().string,"aria-live":o().string,"data-e2e":o().string,children:o().oneOfType([o().array,o().element,o().string]),className:o().string,id:o().string,role:o().string,tag:o().string,text:o().string},jn.defaultProps={"data-e2e":null,children:null,tag:"span",text:""};var Pn="wrapper__text_button";function Un(e){e.dataProps&&console.warn("'dataProps' is deprecated, convert to data-* props"),e.ariaProps&&console.warn("'ariaProps' is deprecated, convert to aria-* props");var t="button",n=null,i="undefined"!==typeof e.href||"undefined"!==typeof e.target;i&&(t="a",n=e.rel);var o=e.disabled||e.loading,a=s()(Pn,e.className,{disabled:o,loading:e.loading});return r.createElement(t,{"aria-disabled":o&&!i?"true":null,"aria-expanded":e["aria-expanded"],"aria-haspopup":e["aria-haspopup"],"aria-label":e["aria-label"],"data-e2e":e["data-e2e"],className:a,"data-tooltip":e["data-tooltip"],href:e.href,id:e.id,onBlur:e.onBlur,onClick:e.onClick,onFocus:e.onFocus,onKeyDown:e.onKeyDown,onKeyPress:e.onKeyPress,onKeyUp:e.onKeyUp,onMouseDown:e.onMouseDown,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onMouseOver:e.onMouseOver,onMouseOut:e.onMouseOut,ref:e.nodeRef,rel:n,role:e.role,tabIndex:e.tabIndex,target:e.target,title:e.title,type:"button"===t?e.type:null},e.children||e.text)}Un.propTypes={"aria-expanded":o().oneOfType([o().bool,o().string]),"aria-haspopup":o().oneOfType([o().bool,o().string]),"aria-label":o().string,"data-e2e":o().string,"data-tooltip":o().string,ariaProps:o().object,children:o().oneOfType([o().array,o().element,o().string]),className:o().string,dataProps:o().object,disabled:o().bool,href:o().string,id:o().string,loading:o().bool,nodeRef:o().oneOfType([o().func,o().shape({current:o().any})]),onBlur:o().func,onClick:o().func,onFocus:o().func,onKeyDown:o().func,onKeyPress:o().func,onKeyUp:o().func,onMouseDown:o().func,onMouseEnter:o().func,onMouseLeave:o().func,onMouseOver:o().func,onMouseOut:o().func,rel:o().string,role:o().string,tabIndex:o().string,target:o().string,text:o().string,title:o().string,type:o().string},Un.defaultProps={"aria-expanded":null,"aria-haspopup":null,"aria-label":null,"data-e2e":"text-button","data-tooltip":null,ariaProps:null,dataProps:null,loading:!1,rel:null,text:null,type:"button"};var zn="DS2",Bn={8:"DS2_default_8",16:"DS2_default_16",24:"DS2_default_24",48:"DS2_default_48"};function qn(e){var t,{className:n,"data-e2e":i,hiddenText:o,icon:a}=e,u=a,l="";if(o&&(t=r.createElement(jn,{text:o})),a.includes(zn)||(u="ic_".concat(a)),a.includes(zn)){var c=a.split("_"),d=c.length-1,p=Number(c[d]);l=Bn[p]}return r.createElement("span",{className:s()("font_icon_container",n),"data-e2e":i},r.createElement("span",{"aria-hidden":"true",className:s()("icon icon-".concat(u),l)}),t)}qn.propTypes={className:o().string,"data-e2e":o().string,icon:o().string.isRequired,hiddenText:o().string},qn.defaultProps={className:null,"data-e2e":null};var Fn="BACK",Zn="FORWARD",Gn=(e,t,n)=>{(0,u.VX)(e,t,n,500,"scrollLeft")},Yn=(e,t)=>{for(var n=0;nt||o)return{element:r,index:n}}},Hn=(e,t)=>{for(var n=0;n=t)return{element:r,index:n}}};function Wn(e,t,n){for(var r=null,i=0,o=e-1;o>=0;o--){var a=t[o],s=t[o+1];if((i+=a.offsetWidth)>n){r=s;break}if(0===a.offsetLeft){r=a;break}}return r}var Vn={paddle:"Paddle-module_paddle__SzeOx",hidden:"Paddle-module_hidden__GfxC3",keyboard_focus:"Paddle-module_keyboard_focus__qAK-v",paddleButton:"Paddle-module_paddleButton__8LGBk",circularPaddleIcon:"Paddle-module_circularPaddleIcon__1Ckgl",pageLeft:"Paddle-module_pageLeft__xUptH",pageRight:"Paddle-module_pageRight__VgB5e"};function Qn(e){var{"data-e2e":t,children:n,className:i,direction:o,hidden:a,hiddenText:u,keyboardFocus:l,nodeRef:c,onClick:d}=e,p=null;return o===Fn&&(p=Vn.pageLeft),o===Zn&&(p=Vn.pageRight),r.createElement("div",{"data-e2e":t,className:s()(i,p,Vn.paddle,{[Vn.hidden]:a})},r.createElement(Un,{className:s()(Vn.paddleButton,{keyboard_focus:l,hidden:a}),onClick:d,nodeRef:c,tabIndex:a?"-1":null},r.createElement("span",{className:s()(Vn.circularPaddleIcon,"circularPaddleIcon")},r.createElement(qn,{icon:"right_caret_alt",hiddenText:u}),n)))}Qn.propTypes={"data-e2e":o().string,children:o().oneOfType([o().array,o().element,o().string]),className:o().string,direction:o().oneOf([Fn,Zn]).isRequired,hidden:o().bool,hiddenText:o().string,keyboardFocus:o().bool,nodeRef:o().oneOfType([o().func,o().shape({current:o().any})]),onClick:o().func},Qn.defaultProps={"data-e2e":null,children:[],className:"",hidden:!1,hiddenText:"",keyboardFocus:!1,nodeRef:u.ZT,onClick:u.ZT};var Kn="SkipLink-module_wrapper__XtWjh",Xn="SkipLink-module_keyboardFocus__L10IH",$n="SkipLink-module_skipLink__fg3ah";class Jn extends r.Component{constructor(e){super(e),this.state={focused:!1}}render(){var{className:e,handleKeyPress:t,onClick:n,skipLinkRef:i,keyboardFocus:o,text:a}=this.props,u=s()(e,Kn,{visually_hidden:!this.state.focused,[Xn]:o}),l=a||p.Z.t("shared.skip_link.skip_content");return r.createElement("div",{className:u,"data-e2e":this.props["data-e2e"]},r.createElement(Un,{className:s()($n,"skip_link"),href:"#",nodeRef:i,onClick:e=>{e.preventDefault(),n(e)},onKeyDown:t,onFocus:()=>this.setState({focused:!0}),onBlur:()=>this.setState({focused:!1})},l))}}Jn.propTypes={"data-e2e":o().string,className:o().string,onClick:o().func,handleKeyPress:o().func,keyboardFocus:o().bool,skipLinkRef:o().oneOfType([o().func,o().shape({current:o().any})]),text:o().string},Jn.defaultProps={"data-e2e":null,className:"",onClick:u.ZT,handleKeyPress:u.ZT,keyboardFocus:!1,skipLinkRef:null,text:null};var er="Carousel-module_outerWrapper__o1Txx",tr="Carousel-module_scrollingWrapper__VvlGe",nr="Carousel-module_paddlesWrapper__GOyhQ",rr="Carousel-module_leftBlur__g-vSK",ir="Carousel-module_rightBlur__VKAKK";class or extends r.Component{constructor(e){super(e),yn(this,"manageFocusBetweenPaddles",(()=>{this.isAtScrollStart?this.forwardPaddle.current.focus():this.isAtScrollEnd&&this.backPaddle.current.focus()})),yn(this,"setPaddlesVisible",(()=>{this.setState({renderBackPaddle:!this.isAtScrollStart,renderForwardPaddle:!this.isAtScrollEnd})})),yn(this,"handleBackPaddleClick",(()=>{var{offsetWidth:e}=this.carouselScrolling.current,{left:t}=this.carouselScrolling.current.getBoundingClientRect(),{index:n}=Hn(this.listItems,t),r=Wn(n,this.listItems,e);Gn(this.carouselScrolling.current,r?r.offsetLeft-this.listItemMargin:0,this.manageFocusBetweenPaddles)})),yn(this,"handleForwardPaddleClick",(()=>{var{right:e}=this.carouselScrolling.current.getBoundingClientRect(),t=this.listItems,{element:n}=Yn(t,e);Gn(this.carouselScrolling.current,n.offsetLeft-this.listItemMargin,this.manageFocusBetweenPaddles)})),yn(this,"handleKeyPress",(e=>{e.which===u.keyMappings.enter&&(e.preventDefault(),this.handleSkip(e))})),yn(this,"handlePaddleClick",((e,t)=>{e.preventDefault(),t===Fn&&this.handleBackPaddleClick(),t===Zn&&this.handleForwardPaddleClick()})),yn(this,"handleResize",(()=>{this.setPaddlesVisible()})),yn(this,"handleScroll",(e=>{this.props.onScroll(e),this.setPaddlesVisible()})),yn(this,"handleSkip",(e=>{if(this.props.handleSkip)return this.props.handleSkip(e);var t=(0,u.Ng)(document);if(t&&t.length){var n=this.getSkipTarget(this.carouselContainer.current,t,t.indexOf(this.skipLink.current));n&&n.focus()}})),yn(this,"renderSkipLink",(()=>{var{keyboardFocus:e,renderSkipLink:t}=this.props,n={className:"skipLink",handleKeyPress:this.handleKeyPress,skipLinkRef:this.skipLink,keyboardFocus:e,text:p.Z.t("shared.carousels.skip_carousel")};return t?t(n):r.createElement(Jn,n)})),this.state={renderBackPaddle:!1,renderForwardPaddle:!1},this.handleResize=d()(this.handleResize,50),this.handleScroll=d()(this.handleScroll,50),this.backPaddle=r.createRef(),this.carouselContainer=r.createRef(),this.carouselScrolling=e.carouselScrollingRef||r.createRef(),this.forwardPaddle=r.createRef(),this.skipLink=r.createRef(),this._listItemMargin=null,this._listItems=null,this._animationHalfSecond=500}componentDidMount(){if(this.setPaddlesVisible(),this.carouselScrolling.current.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleResize),this.props.selectedItemRef&&this.props.selectedItemRef.current){var e=this.props.selectedItemRef.current.offsetLeft-24;Gn(this.carouselScrolling.current,e,this.manageFocusBetweenPaddles)}}componentWillUnmount(){this.carouselScrolling.current.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize)}get isAtScrollEnd(){var{scrollLeft:e,clientWidth:t,scrollWidth:n}=this.carouselScrolling.current;return Math.ceil(e)+t>=n}get isAtScrollStart(){return this.carouselScrolling.current.scrollLeft<=1}get listItems(){if(this._listItems)return this._listItems;var e=this.carouselScrolling.current.querySelectorAll("ul > li");if(e.length)return this._listItems=Array.from(e),this._listItems;throw new Error("Children of a carousel MUST be a unordered list")}get listItemMargin(){var e=this.carouselScrolling.current.querySelector("ul > li"),t=e&&window.getComputedStyle(e).marginRight;if(t)return this._listItemMargin=parseInt(t,10),this._listItemMargin;this._listItemMargin=0;var n="Child list items must define a margin right, and remove the final right margin";return console.error(n),this._listItemMargin}getSkipTarget(e,t,n){return(0,u.Ph)(e,t,n)||(0,u.zW)(e,t,n)}renderPaddle(e){var{renderPaddle:t,keyboardFocus:n}=this.props,i={keyboardFocus:n,onClick:t=>this.handlePaddleClick(t,e)};return e===Fn&&(i=Object.assign({},i,{className:"paddleBack","data-e2e":"paddle-back",direction:e,hidden:!this.state.renderBackPaddle,hiddenText:p.Z.t("shared.carousels.carousel_previous"),nodeRef:this.backPaddle})),e===Zn&&(i=Object.assign({},i,{className:"paddleForward","data-e2e":"paddle-forward",direction:e,hidden:!this.state.renderForwardPaddle,hiddenText:p.Z.t("shared.carousels.carousel_next"),keyboardFocus:n,nodeRef:this.forwardPaddle})),t?t(i):r.createElement(Qn,i)}render(){return r.createElement("div",{className:this.props.className,"data-e2e":this.props["data-e2e"],ref:this.carouselContainer},this.renderSkipLink(),r.createElement("div",{className:s()(er,"outerWrapper",{[rr]:this.props.blurEdges&&this.state.renderBackPaddle,[ir]:this.props.blurEdges&&this.state.renderForwardPaddle,leftBlur:this.props.blurEdges&&this.state.renderBackPaddle,rightBlur:this.props.blurEdges&&this.state.renderForwardPaddle})},r.createElement("nav",{className:s()(nr,"paddlesWrapper")},this.renderPaddle(Fn),this.renderPaddle(Zn)),r.createElement("div",{tabIndex:"-1",ref:this.carouselScrolling,className:s()(tr,"scrollingWrapper")},this.props.children)))}}or.propTypes={"data-e2e":o().string,blurEdges:o().bool,carouselScrollingRef:o().oneOfType([o().func,o().shape({current:o().any})]),children:o().node.isRequired,className:o().string,handleSkip:o().func,keyboardFocus:o().bool,onScroll:o().func,renderPaddle:o().func,renderSkipLink:o().func,selectedItemRef:o().any},or.defaultProps={"data-e2e":null,blurEdges:!0,className:"",handleSkip:null,keyboardFocus:!1,onScroll:u.ZT,renderPaddle:null,renderSkipLink:null};var ar={wrapper:"SkipLink-ds2-module_wrapper__giXHr",keyboardFocus:"SkipLink-ds2-module_keyboardFocus__lmZo6",skipLink:"SkipLink-ds2-module_skipLink__3mrwL"};function sr(e){var{"data-e2e":t,className:n,handleKeyPress:i,keyboardFocus:o,onClick:a,skipLinkRef:u,text:l}=e,[c,d]=(0,r.useState)(!1),f=s()(n,ar.wrapper,{visually_hidden:!c,[ar.keyboardFocus]:o}),g=l||p.Z.t("shared.skip_link.skip_content");return r.createElement("div",{className:f,"data-e2e":t},r.createElement(h.Av,{className:s()(ar.skipLink,"skip_link"),href:"#",nodeRef:u,onClick:e=>{e.preventDefault(),a(e)},onKeyDown:i,onFocus:()=>d(!0),onBlur:()=>d(!1)},g))}sr.propTypes={"data-e2e":o().string,className:o().string,handleKeyPress:o().func,keyboardFocus:o().bool,onClick:o().func,skipLinkRef:o().oneOfType([o().func,o().shape({current:o().any})]),text:o().string},sr.defaultProps={"data-e2e":null,className:"",onClick:u.ZT,handleKeyPress:u.ZT,keyboardFocus:!1,skipLinkRef:null,text:null};var ur="Carousel-ds2-module_leftBlur__31RaF",lr="Carousel-ds2-module_rightBlur__kG3DM",cr="Carousel-ds2-module_outerWrapper__5z3ap",dr="Carousel-ds2-module_scrollingWrapper__HSFvp",pr="Carousel-ds2-module_paddlesWrapper__kOamO",fr="Carousel-ds2-module_paddleBack__xdWgl",hr="Carousel-ds2-module_paddleForward__HIaoc",gr="Carousel-ds2-module_marginAlign__uESn0";class mr extends r.Component{constructor(e){super(e),yn(this,"manageFocusBetweenPaddles",(()=>{this.isAtScrollStart?this.forwardPaddle.current.focus():this.isAtScrollEnd&&this.backPaddle.current.focus()})),yn(this,"setPaddlesVisible",(()=>{this.setState({renderBackPaddle:!this.isAtScrollStart,renderForwardPaddle:!this.isAtScrollEnd})})),yn(this,"handleBackPaddleClick",(()=>{var{scrollWithMargin:e}=this.props,{offsetWidth:t}=this.carouselScrolling.current,{left:n}=this.carouselScrolling.current.getBoundingClientRect(),{index:r}=Hn(this.listItems,n),i=Wn(r,this.listItems,t);this.props.onPaddleClick&&this.props.onPaddleClick(Fn),Gn(this.carouselScrolling.current,e?i.offsetLeft-this.listItemMargin:i.offsetLeft,(()=>this.handlePaddleClickScrollEnded(Fn,i)))})),yn(this,"handleForwardPaddleClick",(()=>{var{scrollWithMargin:e}=this.props,{right:t}=this.carouselScrolling.current.getBoundingClientRect(),n=this.listItems,{element:r}=Yn(n,t);this.props.onPaddleClick&&this.props.onPaddleClick(Zn),Gn(this.carouselScrolling.current,e?r.offsetLeft-this.listItemMargin:r.offsetLeft,(()=>this.handlePaddleClickScrollEnded(Zn,r)))})),yn(this,"handleKeyPress",(e=>{e.which===u.keyMappings.enter&&(e.preventDefault(),this.handleSkip(e))})),yn(this,"handlePaddleClick",((e,t)=>{e.preventDefault(),t===Fn&&this.handleBackPaddleClick(),t===Zn&&this.handleForwardPaddleClick()})),yn(this,"handleResize",(()=>{this.setPaddlesVisible()})),yn(this,"handleScroll",(e=>{this.props.onScroll&&this.props.onScroll(e),this.setPaddlesVisible()})),yn(this,"handleSkip",(e=>{if(this.props.handleSkip)return this.props.handleSkip(e);var t=(0,u.Ng)(document);if(t&&t.length){var n=this.getSkipTarget(this.carouselContainer.current,t,t.indexOf(this.skipLink.current));n&&n.focus()}})),yn(this,"renderSkipLink",(()=>{var{keyboardFocus:e,renderSkipLink:t}=this.props,n={className:"skipLink",handleKeyPress:this.handleKeyPress,skipLinkRef:this.skipLink,keyboardFocus:e,text:p.Z.t("shared.carousels.skip_carousel")};return t?t(n):r.createElement(sr,n)})),this.state={renderBackPaddle:!1,renderForwardPaddle:!1},this.handleResize=d()(this.handleResize,50),this.handleScroll=d()(this.handleScroll,50),this.backPaddle=r.createRef(),this.carouselContainer=r.createRef(),this.carouselScrolling=e.carouselScrollingRef||r.createRef(),this.forwardPaddle=r.createRef(),this.skipLink=r.createRef(),this._listItemMargin=null,this._listItems=null,this._animationHalfSecond=500}componentDidMount(){if(this.setPaddlesVisible(),this.carouselScrolling.current.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleResize),this.props.selectedItemRef&&this.props.selectedItemRef.current){var e=this.props.selectedItemRef.current.offsetLeft-24;Gn(this.carouselScrolling.current,e,this.manageFocusBetweenPaddles)}}componentWillUnmount(){this.carouselScrolling.current.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize)}get isAtScrollEnd(){var{scrollLeft:e,clientWidth:t,scrollWidth:n}=this.carouselScrolling.current;return Math.ceil(e)+t>=n}get isAtScrollStart(){return this.carouselScrolling.current.scrollLeft<=1}get listItems(){if(this._listItems&&!this.props.paginated)return this._listItems;var e=this.carouselScrolling.current.querySelectorAll("ul > li");if(e.length)return this._listItems=Array.from(e),this._listItems;throw new Error("Children of a carousel MUST be a unordered list")}get listItemMargin(){var e=this.carouselScrolling.current.querySelector("ul > li"),t=e&&window.getComputedStyle(e).marginRight;if(t)return this._listItemMargin=parseInt(t,10),this._listItemMargin;this._listItemMargin=0;var n="Child list items must define a margin right, and remove the final right margin";return console.error(n),this._listItemMargin}getSkipTarget(e,t,n){return(0,u.Ph)(e,t,n)||(0,u.zW)(e,t,n)}handlePaddleClickScrollEnded(e,t){this.manageFocusBetweenPaddles(),this.props.onPaddleClickScrollEnded&&this.props.onPaddleClickScrollEnded(e,t)}renderPaddle(e){var{blurEdges:t,renderPaddle:n,renderPastMargin:i}=this.props,o={onClick:t=>this.handlePaddleClick(t,e)};return e===Fn&&(o=Object.assign({},o,{className:s()(fr,{[ur]:t}),"data-e2e":"paddle-back",["data-".concat(f.qI.QUICKVIEW_CAROUSEL_PADDLE)]:"paddle-back",direction:e,hidden:!this.state.renderBackPaddle,hiddenText:p.Z.t("shared.carousels.carousel_previous"),nodeRef:this.backPaddle})),e===Zn&&(o=Object.assign({},o,{className:s()(hr,{[lr]:t,[gr]:!i}),"data-e2e":"paddle-forward",["data-".concat(f.qI.QUICKVIEW_CAROUSEL_PADDLE)]:"paddle-forward",direction:e,hidden:!this.state.renderForwardPaddle,hiddenText:p.Z.t("shared.carousels.carousel_next"),nodeRef:this.forwardPaddle})),n?n(o):r.createElement(h.q6,o)}render(){return r.createElement("div",{className:this.props.className,"data-e2e":this.props["data-e2e"],ref:this.carouselContainer},this.renderSkipLink(),r.createElement("div",{className:cr},r.createElement("nav",{className:pr},this.renderPaddle(Fn),this.renderPaddle(Zn)),r.createElement("div",{tabIndex:"-1",ref:this.carouselScrolling,className:dr},this.props.children)))}}mr.propTypes={"data-e2e":o().string,blurEdges:o().bool,carouselScrollingRef:o().oneOfType([o().func,o().shape({current:o().any})]),children:o().node.isRequired,className:o().string,handleSkip:o().func,keyboardFocus:o().bool,onPaddleClick:o().func,onPaddleClickScrollEnded:o().func,onScroll:o().func,paginated:o().bool,renderPaddle:o().func,renderPastMargin:o().bool,renderSkipLink:o().func,selectedItemRef:o().any,scrollWithMargin:o().bool},mr.defaultProps={"data-e2e":null,blurEdges:!1,className:"",handleSkip:null,keyboardFocus:!1,onPaddleClick:null,onPaddleClickScrollEnded:null,onScroll:null,paginated:!1,renderPaddle:null,renderPastMargin:!1,renderSkipLink:null,scrollWithMargin:!0};class vr extends r.Component{constructor(e){super(e),yn(this,"onFocus",(()=>{this.setState({focused:!0})})),yn(this,"on_blur",(()=>{this.setState({focused:!1})})),yn(this,"handleKeyPress",(e=>{e.which===u.keyMappings.enter&&this.props.onChange(!this.props.selected)})),yn(this,"handleChange",(e=>{this.props.onChange(e)})),this.state={focused:!1},this.uid=u.hQ}renderDescription(){return this.props.description&&r.createElement("span",{className:"description",id:this.uid("description")},this.props.description)}render(){var{labelText:e,description:t,value:n,disabled:i,selected:o,id:a,name:u}=this.props,l=o?"icon-ic_small_checkbox_fill":"icon-ic_small_checkbox_outline";return r.createElement("div",{className:s()(this.props.className,"wrapper__checkbox"),"data-e2e":this.props["data-e2e"]},r.createElement("label",{className:s()("checkbox_label ".concat(l),{checked:o,focused:this.state.focused,with_description:t}),htmlFor:a||this.uid(u)},r.createElement(jn,null,r.createElement("input",{id:a||this.uid(u),name:u,onChange:this.handleChange,onFocus:this.onFocus,onBlur:this.on_blur,type:"checkbox",value:n,checked:o,disabled:i,className:"checkbox_input checkbox","aria-describedby":t?this.uid("description"):null,onKeyPress:this.handleKeyPress})),r.createElement("span",{className:"input_text"},e),this.renderDescription()))}}vr.propTypes={"data-e2e":o().string,className:o().string,description:o().string,disabled:o().bool,id:o().string,labelText:o().string,name:o().string,onChange:o().func,selected:o().bool,value:o().string},vr.defaultProps={"data-e2e":null,className:"",description:"",disabled:!1,id:"",labelText:"",name:"",onChange:u.ZT,selected:!1,value:""};var _r={wrapper:"Time-module_wrapper__tVeep"};function Ar(e){var{time:t}=e;return t?r.createElement("div",{className:_r.wrapper,"data-e2e":"content-time"},r.createElement(qn,{icon:"clock_small"}),r.createElement("span",null,(0,u.xz)(t))):null}Ar.propTypes={time:o().number};var yr=function(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2])return t?p.Z.t("home.logged_in.content_quickview.count_titles",{count:t}):p.Z.t("shared.content_types.series").toLowerCase();switch(e){case f.qe.AUDIOBOOK:return(0,u.xz)(t);case f.qe.PODCAST_EPISODE:return(0,u.xz)(t,!0);case f.qe.PODCAST:return p.Z.t("shared.podcast_series.num_episodes",{count:t});case f.qe.PUBLICATION_ISSUE:return p.Z.t("shared.content_lengths.articles_with_count",{count:t});case f.qe.SHEET_MUSIC:return p.Z.t("shared.content_lengths.songs_with_count",{count:t});case f._c.CURATED_COLLECTION:return p.Z.t("shared.common.read_count",{count:t});default:return p.Z.t("shared.content_lengths.page_with_count",{count:t})}},br=e=>{switch(e){case f.qe.PODCAST:case f.qe.PUBLICATION_ISSUE:return"series_16";case f.qe.AUDIOBOOK:case f.qe.PODCAST_EPISODE:return"clock_small";default:return"pages_small"}},Er={wrapper:"Length-module_wrapper__mxjem"};function wr(e){var{className:t,length:n,contentType:i,isSeries:o,showIcon:a}=e;return n||o?r.createElement("div",{className:s()(Er.wrapper,t),"data-e2e":"content-length"},a?r.createElement(qn,{icon:br(i)}):null,r.createElement("span",{"data-e2e":"podcast-series-header-total-episodes"},yr(i,n,o))):null}wr.propTypes={className:o().string,contentType:o().string.isRequired,isSeries:o().bool.isRequired,length:o().number,showIcon:o().bool},wr.defaultProps={className:null,showIcon:!0};o().string,o().number,o().number,o().string.isRequired,o().bool;var xr="wrapper__filled-button";function Ir(e){e.dataProps&&console.warn("'dataProps' is deprecated, convert to data-* props"),e.ariaProps&&console.warn("'ariaProps' is deprecated, convert to aria-* props");var t="button",n=null,i="undefined"!==typeof e.href||"undefined"!==typeof e.target;i&&(t="a",n=e.rel);var o=e.disabled||e.loading,a=s()(xr,e.className,{disabled:o,loading:e.loading});return r.createElement(t,{"aria-disabled":o&&!i?"true":null,className:a,"data-e2e":e["data-e2e"],"data-tooltip":e["data-tooltip"],href:e.href,id:e.id,onClick:e.onClick,onMouseDown:e.onMouseDown,onFocus:e.onFocus,onKeyPress:e.onKeyPress,onKeyUp:e.onKeyUp,onKeyDown:e.onKeyDown,ref:e.nodeRef,rel:n,role:e.role,target:e.target,title:e.title,type:"button"===t?e.type:null},e.children,e.loading?r.createElement(Nn,{className:"".concat(xr,"__spinner")}):null)}Ir.propTypes={"data-e2e":o().string,"data-tooltip":o().string,ariaProps:o().object,children:o().oneOfType([o().array,o().element,o().string]),className:o().string,dataProps:o().object,disabled:o().bool,href:o().string,id:o().string,loading:o().bool,nodeRef:o().oneOfType([o().func,o().shape({current:o().any})]),onClick:o().func,onKeyDown:o().func,onFocus:o().func,onKeyPress:o().func,onKeyUp:o().func,onMouseDown:o().func,rel:o().string,role:o().string,target:o().string,title:o().string,type:o().string},Ir.defaultProps={"data-tooltip":null,"data-e2e":null,ariaProps:null,dataProps:null,loading:!1,rel:null,type:"button"};var Mr="wrapper__outline-button";function Sr(e){e.dataProps&&console.warn("'dataProps' is deprecated, convert to data-* props"),e.ariaProps&&console.warn("'ariaProps' is deprecated, convert to aria-* props");var t="button",n=null,i="undefined"!==typeof e.href||"undefined"!==typeof e.target;i&&(t="a",n=e.rel);var o=e.disabled||e.loading,a=s()(Mr,e.className,{disabled:o,loading:e.loading});return r.createElement(t,{"aria-disabled":o&&!i?"true":null,className:a,"data-e2e":e["data-e2e"],"data-tooltip":e["data-tooltip"],href:e.href,id:e.id,onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyPress:e.onKeyPress,ref:e.nodeRef,rel:n,role:e.role,target:e.target,title:e.title,type:"button"===t?e.type:null},e.children,e.loading?r.createElement(Nn,{className:"".concat(Mr,"__spinner")}):null)}Sr.propTypes={"data-tooltip":o().string,"data-e2e":o().string,ariaProps:o().object,children:o().oneOfType([o().array,o().element,o().string]),className:o().string,dataProps:o().object,disabled:o().bool,href:o().string,id:o().string,loading:o().bool,nodeRef:o().oneOfType([o().func,o().shape({current:o().any})]),onClick:o().func,onKeyDown:o().func,onKeyPress:o().func,rel:o().string,role:o().string,target:o().string,title:o().string,type:o().string},Sr.defaultProps={"data-tooltip":null,"data-e2e":"outline-button",ariaProps:null,dataProps:null,loading:!1,rel:null,type:"button"};var Cr={primaryBlack:"SubscriptionCTAs-common-module_primaryBlack__DHBXw",primaryTeal:"SubscriptionCTAs-common-module_primaryTeal__MFD3-",primaryWhite:"SubscriptionCTAs-common-module_primaryWhite__PLY80"},Nr="ReadFreeButton-module_wrapper__WFuqw";function Tr(e){var t,{className:n,"data-e2e":i,isLoggedIn:o,onClick:a,openSignUpModal:l,subscribeUrl:c,theme:d,trialDuration:h}=e;switch(d){case f.tK.SECONDARY_TEAL:t=Sr;break;case f.tK.LINK:t=Un;break;default:t=Ir}return r.createElement(t,{className:s()(n,Cr[d],Nr),onClick:()=>{a(),o?(0,u.uX)(c):l({loc:"read_free_btn",nextUrl:c})},"data-e2e":i},p.Z.t("shared.trial_duration.read_free_days",{trialDuration:h}))}Tr.propTypes={"data-e2e":o().string,className:o().string,isLoggedIn:o().bool.isRequired,onClick:o().func,openSignUpModal:o().func.isRequired,subscribeUrl:o().string.isRequired,theme:o().oneOf(Object.values(f.tK)),trialDuration:o().number.isRequired},Tr.defaultProps={"data-e2e":"read-free-btn",className:null,onClick:u.ZT,theme:f.tK.PRIMARY_TEAL};var Lr=e=>({isLoggedIn:e.user.isLoggedIn,subscribeUrl:e.static.routes.subscribeUrl,trialDuration:e.personalization.trialDuration}),Dr=(0,g.$j)(Lr)(Tr);function Or(e){var t,{className:n,"data-e2e":i,onClick:o,subscribeUrl:a,theme:u}=e;switch(u){case f.tK.SECONDARY_TEAL:t=Sr;break;case f.tK.LINK:t=Un;break;default:t=Ir}return r.createElement(t,{className:s()(n,Cr[u]),"data-e2e":i,href:a,onClick:o},p.Z.t("shared.common.restart_subscription"))}Or.propTypes={"data-e2e":o().string,className:o().string,onClick:o().func,subscribeUrl:o().string.isRequired,theme:o().oneOf(Object.values(f.tK))},Or.defaultProps={"data-e2e":"restart-subscription-btn",className:null,onClick:u.ZT,theme:f.tK.PRIMARY_TEAL};var kr=e=>({subscribeUrl:e.static.routes.subscribeUrl}),Rr=(0,g.$j)(kr)(Or);function jr(e){var t,{className:n,"data-e2e":i,onClick:o,theme:a,url:u}=e;switch(a){case f.tK.SECONDARY_TEAL:t=Sr;break;case f.tK.LINK:t=Un;break;default:t=Ir}return r.createElement(t,{className:s()(n,Cr[a]),"data-e2e":i,href:u,onClick:o},p.Z.t("shared.resume_membership"))}jr.propTypes={"data-e2e":o().string,className:o().string,onClick:o().func,theme:o().oneOf(Object.values(f.tK)),url:o().string.isRequired},jr.defaultProps={"data-e2e":"resume-membership",className:null,onClick:u.ZT,theme:f.tK.PRIMARY_TEAL};var Pr={LARGE:"large",SMALL:"small"},Ur={DEFAULT:"default",DANGER:"danger",DISABLED:"disabled",MONOTONE_BLACK:"monotoneBlack",MONOTONE_WHITE:"monotoneWhite"},zr={wrapper:"SecondaryButton-module_wrapper__QDpQU",children:"SecondaryButton-module_children__ksrPs",content:"SecondaryButton-module_content__EnqZr",danger:"SecondaryButton-module_danger__XDXox",default:"SecondaryButton-module_default__fSJVe",disabled:"SecondaryButton-module_disabled__Sj7op",icon:"SecondaryButton-module_icon__ycvCA",large:"SecondaryButton-module_large__4X4YL",leftAlignedText:"SecondaryButton-module_leftAlignedText__94gfx",monotoneBlack:"SecondaryButton-module_monotoneBlack__BhGzv",monotoneWhite:"SecondaryButton-module_monotoneWhite__HRKau",small:"SecondaryButton-module_small__OS1BT"},Br=e=>{var{"aria-label":t,"data-e2e":n,buttonStyle:i,children:o,className:a,disabled:l,onClick:c,onFocus:d,onKeyDown:p,onKeyPress:f,onKeyUp:h,onMouseDown:g,href:m,icon:v,rel:_,role:A,size:y,tabIndex:b,target:E,type:w}=e,x=(0,u.Nn)(m,E),I="button";return x&&(I="a"),r.createElement(I,{"aria-disabled":l?"true":"false","aria-label":t,className:s()(zr.wrapper,zr[i],zr[y],a,{[zr.disabled]:l}),"data-e2e":n,href:m,onClick:c,onFocus:d,onKeyDown:p,onKeyPress:f,onKeyUp:h,onMouseDown:g,rel:x?_:null,role:A,tabIndex:b,target:E,type:x?null:w},r.createElement("div",{className:zr.content},v?r.createElement(v,{"data-e2e":"btn-icon",className:zr.icon}):null,r.createElement("div",{className:s()(zr.children,{[zr.leftAlignedText]:Boolean(v)})},o)))};Br.propTypes={"aria-label":o().string,"data-e2e":o().string,buttonStyle:o().oneOf(Object.values(Ur)),children:o().oneOfType([o().array,o().element,o().string]).isRequired,className:o().string,disabled:o().bool,onClick:o().func,onFocus:o().func,onKeyDown:o().func,onKeyPress:o().func,onKeyUp:o().func,onMouseDown:o().func,href:o().string,icon:o().elementType,rel:o().string,role:o().string,size:o().oneOf(Object.values(Pr)),tabIndex:o().string,target:o().string,type:o().oneOf(Object.values({BUTTON:"button",SUBMIT:"submit"}))},Br.defaultProps={"aria-label":null,"data-e2e":null,buttonStyle:Ur.DEFAULT,className:"",disabled:!1,icon:null,rel:null,size:Pr.LARGE,type:"button"};var qr=e=>{switch(e){case f.iG.SECONDARY_BUTTON:return Br;case f.iG.TEXT_BUTTON:return h.Av;case f.iG.PRIMARY_BUTTON:default:return h.KM}},Fr={SUBSCRIBER:"subscriber",DUNNING_LOCK:"dunning_lock",PAUSED:"paused",ABORTED:"aborted",CANCELED_EXPIRED:"canceled_expired",TRIAL_INELIGIBLE:"trial_ineligible",TRIAL_ELIGIBLE:"trial_eligible",USING_PROMO_CODE:"using_promo_code"};function Zr(e){var{user:{canResumeMembership:t,isAborted:n,isLoggedIn:r,isSubscriber:i,isPaused:o,isEligibleForFreeTrial:a,hasDunningLock:s,usingPromoCode:l}}=e;return l?Fr.USING_PROMO_CODE:r&&n&&!t&&!i?Fr.CANCELED_EXPIRED:r&&n?Fr.ABORTED:r&&i&&s?Fr.DUNNING_LOCK:r&&i?Fr.SUBSCRIBER:r&&o?Fr.PAUSED:!r||i||a?a?Fr.TRIAL_ELIGIBLE:((0,u.Tb)(new Error("Undefined user subscription status")),null):Fr.TRIAL_INELIGIBLE}var Gr=e=>({url:Zr(e)===Fr.PAUSED?e.static.routes.unpauseAccountUrl:e.static.routes.subscribeUrl}),Yr=(0,g.$j)(Gr)(jr);function Hr(e){var t,{className:n,"data-e2e":i,onClick:o,rootPath:a,theme:u}=e;switch(u){case f.tK.SECONDARY_TEAL:t=Sr;break;case f.tK.LINK:t=Un;break;default:t=Ir}return r.createElement(t,{className:s()(n,Cr[u]),"data-e2e":i,href:a,onClick:o},p.Z.t("shared.start_exploring"))}Hr.propTypes={"data-e2e":o().string,className:o().string,onClick:o().func,rootPath:o().string.isRequired,theme:o().oneOf(Object.values(f.tK))},Hr.defaultProps={"data-e2e":"start-exploring-btn",className:null,onClick:u.ZT,theme:f.tK.PRIMARY_TEAL};var Wr=e=>({rootPath:e.static.routes.rootPath}),Vr=(0,g.$j)(Wr)(Hr);function Qr(e){var t,{className:n,"data-e2e":i,isLoggedIn:o,onClick:a,openSignUpModal:l,subscribeUrl:c,theme:d}=e;switch(d){case f.tK.SECONDARY_TEAL:t=Sr;break;case f.tK.LINK:t=Un;break;default:t=Ir}return r.createElement(t,{className:s()(n,Cr[d]),onClick:()=>{a(),o?(0,u.uX)(c):l({loc:"start_subscription_btn",nextUrl:c})},"data-e2e":i},p.Z.t("shared.common.start_your_subscription"))}Qr.propTypes={"data-e2e":o().string,className:o().string,isLoggedIn:o().bool.isRequired,onClick:o().func,openSignUpModal:o().func.isRequired,subscribeUrl:o().string.isRequired,theme:o().oneOf(Object.values(f.tK)),trialDuration:o().number},Qr.defaultProps={"data-e2e":"start-subscription-btn",className:null,onClick:u.ZT,theme:f.tK.PRIMARY_TEAL};var Kr=e=>({isLoggedIn:e.user.isLoggedIn,subscribeUrl:e.static.routes.subscribeUrl}),Xr=(0,g.$j)(Kr)(Qr),$r="StartTrialButton-module_wrapper__R5LJk";function Jr(e){var t,{className:n,"data-e2e":i,isLoggedIn:o,onClick:a,openSignUpModal:l,subscribeUrl:c,theme:d,trialDuration:h}=e;switch(d){case f.tK.SECONDARY_TEAL:t=Sr;break;case f.tK.LINK:t=Un;break;default:t=Ir}return r.createElement(t,{className:s()(n,Cr[d],$r),onClick:()=>{a(),o?(0,u.uX)(c):l({loc:"start_free_trial",nextUrl:c})},"data-e2e":i},p.Z.t("shared.trial_duration.start_trial_days",{trialDuration:h}))}Jr.propTypes={"data-e2e":o().string,className:o().string,isLoggedIn:o().bool.isRequired,onClick:o().func,openSignUpModal:o().func.isRequired,subscribeUrl:o().string.isRequired,theme:o().oneOf(Object.values(f.tK)),trialDuration:o().number.isRequired},Jr.defaultProps={"data-e2e":"start-trial-btn",className:null,onClick:u.ZT,theme:f.tK.PRIMARY_TEAL};var ei=e=>({isLoggedIn:e.user.isLoggedIn,subscribeUrl:e.static.routes.subscribeUrl,trialDuration:e.personalization.trialDuration}),ti=(0,g.$j)(ei)(Jr);function ni(e){var{className:t,copyType:n,"data-e2e":i,onClick:o,openSignUpModal:a,theme:s,userSubscriptionStatus:l}=e,c={className:t,"data-e2e":i,onClick:o,theme:s};switch(l){case Fr.USING_PROMO_CODE:return r.createElement(Xr,bn({openSignUpModal:a},c));case Fr.TRIAL_ELIGIBLE:var d=n===f.bg.START_TRIAL?ti:Dr;return r.createElement(d,bn({openSignUpModal:a},c));case Fr.PAUSED:return r.createElement(Yr,c);case Fr.ABORTED:case Fr.CANCELED_EXPIRED:case Fr.TRIAL_INELIGIBLE:case Fr.DUNNING_LOCK:return r.createElement(Rr,c);case Fr.SUBSCRIBER:return r.createElement(Vr,c);default:var p='SubscriptionCTAs (components package), "'.concat(l,'" does not have a default button behavior.');return"undefined"!==typeof window?(0,u.Tb)(new Error(p)):console.error(p),null}}ni.propTypes={"data-e2e":o().string,className:o().string,copyType:o().oneOf(Object.values(f.bg)),onClick:o().func,openSignUpModal:o().func.isRequired,theme:o().oneOf(Object.values(f.tK)),userSubscriptionStatus:o().oneOf(Object.values(Fr))},ni.defaultProps={className:null,copyType:f.bg.READ_FREE,onClick:u.ZT,theme:f.tK.PRIMARY_TEAL};var ri=e=>({userSubscriptionStatus:Zr(e)}),ii=(0,g.$j)(ri)(ni);function oi(e,t){return e===t}var ai=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:oi,n=null,r=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;ie.static.routes,e=>e.i18n.currentLanguage,e=>e.user,e=>e.personalization],((e,t,n,r)=>{var{iosStoreUrl:i,androidStoreUrl:o}=e,{currentLanguage:a}=t,{isLoggedIn:s}=n,{subscriptionPrice:u}=r;return{iosStoreUrl:i,androidStoreUrl:o,currentLanguage:a,isLoggedIn:s,subscriptionPrice:u}}));var ui={xs:"(max-width: ".concat(f.j$.DS2[f.zf.XS],"px)"),sm:"(max-width: ".concat(f.j$.DS2[f.zf.S],"px) and (min-width: ").concat(f.j$.DS2[f.zf.XS]+1,"px)"),md:"(max-width: ".concat(f.j$.DS2[f.zf.M],"px) and (min-width: ").concat(f.j$.DS2[f.zf.S]+1,"px)"),lg:"(min-width: ".concat(f.j$.DS2[f.zf.L],"px)")};function li(e){var{image:t,altText:n="",defaultImageSize:i="lg",pictureClass:o="",imgClass:a=""}=e,s=(0,r.useMemo)((()=>Object.keys(t).map((e=>r.createElement("source",{key:e,media:ui[e],srcSet:"".concat((0,u.up)(t[e]["1x"]),", ").concat((0,u.up)(t[e]["2x"]))})))),[t]);return t?r.createElement("picture",{className:o},s,r.createElement("img",{className:a,src:(0,u.up)(t[i]["1x"]),srcSet:(0,u.up)(t[i]["2x"]),alt:n})):null}li.propTypes={image:o().objectOf(o().string).isRequired,altText:o().string,defaultImageSize:o().string,pictureClass:o().string,imgClass:o().string};var ci="ConversionBanner-module_wrapper__GHTPD",di="ConversionBanner-module_body__-Ueku",pi="ConversionBanner-module_bodyText__l6qHo",fi="ConversionBanner-module_button__DUCzM",hi="ConversionBanner-module_buttonWrapper__LseCC",gi="ConversionBanner-module_content__LFcwJ",mi="ConversionBanner-module_heading__d1TMA",vi="ConversionBanner-module_imageWrapper__Trvdw",_i="ConversionBanner-module_picture__dlQzk",Ai="ConversionBanner-module_image__hqsBC",yi="ConversionBanner-module_trialText__jpNtc",bi=e=>p.Z.t("explore.banner.after_trial",{price:e});function Ei(e){var{contentType:t,className:n}=e,{iosStoreUrl:i,androidStoreUrl:o,currentLanguage:a,isLoggedIn:u,subscriptionPrice:l}=function(){var{iosStoreUrl:e,androidStoreUrl:t,currentLanguage:n,isLoggedIn:r,subscriptionPrice:i}=(0,g.v9)(si,g.wU);return{iosStoreUrl:e,androidStoreUrl:t,currentLanguage:n,isLoggedIn:r,subscriptionPrice:i}}(),c=function(){var e=(0,g.I0)();return(0,r.useCallback)((t=>{var{contentType:n,nextUrl:r}=t;e((0,ce.Z)({trackingData:{loc:"category_banner",page:"".concat(n," category")},nextUrl:r}))}),[e])}();if(u)return null;var d=li({image:(0,r.useMemo)((()=>function(e){switch(e){case f.a2.ES.prefix:return{lg:{"1x":Q(),"2x":"".concat(X()," 2x")},md:{"1x":J(),"2x":"".concat(te()," 2x")},sm:{"1x":re(),"2x":"".concat(oe()," 2x")},xs:{"1x":se(),"2x":"".concat(le()," 2x")}};case f.a2.PT.prefix:return{lg:{"1x":O(),"2x":"".concat(R()," 2x")},md:{"1x":P(),"2x":"".concat(z()," 2x")},sm:{"1x":q(),"2x":"".concat(Z()," 2x")},xs:{"1x":Y(),"2x":"".concat(W()," 2x")}};default:return{lg:{"1x":v(),"2x":"".concat(A()," 2x")},md:{"1x":b(),"2x":"".concat(w()," 2x")},sm:{"1x":I(),"2x":"".concat(S()," 2x")},xs:{"1x":N(),"2x":"".concat(L()," 2x")}}}}(a)),[a]),pictureClass:_i,imgClass:Ai}),h=(0,r.useCallback)((e=>c(t,e)),[c]);return r.createElement("div",{className:s()(ci,n),"data-e2e":"subscription-banner"},r.createElement("div",{className:di},r.createElement("div",{className:gi},r.createElement("h4",{className:mi},p.Z.t("landing.hero.read_listen_anywhere_anytime")),r.createElement("div",{className:pi,dangerouslySetInnerHTML:{__html:p.Z.t("explore.banner.subtitle",{ios_store_url:i,android_store_url:o})}}),r.createElement("div",{className:hi},r.createElement(ii,{className:fi,"data-e2e":"category-banner-cta",openSignUpModal:h,theme:f.tK.PRIMARY_BLACK})),r.createElement("p",{className:yi,dangerouslySetInnerHTML:{__html:bi(l)}})),r.createElement("div",{className:vi},d)))}Ei.propTypes={className:o().string,contentType:o().string.isRequired},Ei.defaultProps={className:""};var wi={flash:"Flash-ds2-module_flash__ks1Nu",enterDone:"Flash-ds2-module_enterDone__b640r",enterActive:"Flash-ds2-module_enterActive__6QOf0",enter:"Flash-ds2-module_enter__s5nSw",exit:"Flash-ds2-module_exit__ppmNE",exitActive:"Flash-ds2-module_exitActive__4mWrM",exitDone:"Flash-ds2-module_exitDone__iRzPy",closeButton:"Flash-ds2-module_closeButton__-wyk7",content:"Flash-ds2-module_content__innEl",icon:"Flash-ds2-module_icon__COB94",textContent:"Flash-ds2-module_textContent__ZJ7C0",textCentered:"Flash-ds2-module_textCentered__lYEyN",success:"Flash-ds2-module_success__EpSI6",notice:"Flash-ds2-module_notice__WvvrX",info:"Flash-ds2-module_info__FFZgu",error:"Flash-ds2-module_error__anJYN"},xi={[f.Se.ERROR]:Re.DOR,[f.Se.INFO]:Re.Jf2,[f.Se.NOTICE]:Re.Jf2,[f.Se.SUCCESS]:Re.JUF};class Ii extends r.Component{constructor(e){super(e),yn(this,"handleClick",(e=>{var{target:{tagName:t}}=e;if("A"!==t)return null;var{clickTrackingData:n,onClick:r}=this.props;if(!0===!!n){var{name:i,data:o={}}=n;(0,u.L9)(i,o)}r()})),yn(this,"handleClose",(e=>{e.stopPropagation(),this.setState({isVisible:!1,maxHeight:0});var{cookie:t,closeTrackingData:n,onClose:r}=this.props;if(!0===!!t&&(0,u.Qo)(t.name,t.value,t.duration),!0===!!n){var{name:i,data:o={}}=n;(0,u.L9)(i,o)}r()})),yn(this,"handleInView",(()=>{var{inView:e,viewTrackingData:t}=this.props;if(!0===!!t){var{name:n,data:r={}}=t;(0,u.L9)(n,r)}e()})),yn(this,"handleExited",(()=>{this.props.closeFlash()})),this.state={isVisible:!1,maxHeight:0}}componentDidMount(){this.setState({isVisible:!0,maxHeight:"100%"},(()=>this.handleInView()))}get label(){switch(this.props.flashType){case f.Se.SUCCESS:return p.Z.t("shared.common.success");case f.Se.ERROR:return p.Z.t("shared.common.error");case f.Se.INFO:return p.Z.t("shared.common.info");case f.Se.NOTICE:default:return p.Z.t("shared.common.notice")}}renderContent(){var{content:e,isIconHidden:t,raw:n}=this.props,i=s()(wi.textContent,{[wi.textCentered]:t});return n?r.createElement("span",{className:i,"data-testid":"flash-content-raw",onClick:this.handleClick,dangerouslySetInnerHTML:{__html:e}}):r.createElement("span",{className:i,"data-testid":"flash-content"},e)}render(){var{className:e,content:t,"data-testid":n,flashType:i,isDismissable:o,isIconHidden:a}=this.props;if(!t)return null;var{maxHeight:u}=this.state,l=xi[i];return r.createElement("div",{"data-testid":n,tabIndex:"-1"},r.createElement(ke,{in:this.state.isVisible,timeout:250,onExited:this.handleExited,classNames:{enter:wi.enter,enterActive:wi.enterActive,enterDone:wi.enterDone,exit:wi.exit,exitActive:wi.exitActive,exitDone:wi.exitDone}},r.createElement("div",{className:s()(wi.flash,wi[i],{[wi.textCentered]:a},e),style:{maxHeight:u},"data-e2e":"flash"},r.createElement("div",{className:wi.content,"data-e2e":"flash-content"},r.createElement(jn,{tag:"h1"},this.label),a?null:r.createElement(l,{className:wi.icon}),this.renderContent()),o?r.createElement("span",{className:wi.closeButton},r.createElement(h.OB,{buttonStyle:f.DH,onClick:this.handleClose,icon:Re.EEu,hiddenText:p.Z.t("chrome.flash.close_notification")})):null)))}}Ii.propTypes={className:o().string,clickTrackingData:o().shape({data:o().object,name:o().string.isRequired}),closeFlash:o().func,closeTrackingData:o().shape({data:o().object,name:o().string.isRequired}),cookie:o().shape({duration:o().number,name:o().string,value:o().any}),content:o().node,"data-testid":o().string,flashType:o().oneOf(Object.values(f.Se)),inView:o().func,isDismissable:o().bool,isIconHidden:o().bool,onClick:o().func,onClose:o().func,raw:o().bool,viewTrackingData:o().shape({data:o().object,name:o().string.isRequired})},Ii.defaultProps={className:"",clickTrackingData:null,closeFlash:u.ZT,closeTrackingData:null,content:null,"data-testid":"",inView:u.ZT,isDismissable:!0,isIconHidden:!1,onClick:u.ZT,onClose:u.ZT,raw:!1,viewTrackingData:null};var Mi={DAY:28,MONTH:11,YEAR:2022},Si="holiday_banner:holiday_2022",Ci={DAY:25,MONTH:12,YEAR:2022},Ni={COOKIE:{DURATION:60,NAME:f.HR.HOLIDAY_BANNER_2022,VALUE:"true"},DATA_DOG_EVENTS:{ACTION:{CLICK:"gift_url_click",CLOSE:"close_button_click",VIEW:"in_view"},NAME:"feature",SOURCE:"holiday_banner_2022"},DATES:{CAMPAIGN:Mi,CAMPAIGN_START_EPOCH_DATE:new Date(Mi.YEAR,Mi.MONTH-1,Mi.DAY).getTime(),DAYS_BEFORE_USING_COUNTDOWN_COPY:7,HOLIDAY:Ci,HOLIDAY_EPOCH_DATE:new Date(Ci.YEAR,Ci.MONTH-1,Ci.DAY).getTime()},TRACK_EVENT_NAMES:{CLICK:"".concat(Si,":gift_url:click"),CLOSE:"".concat(Si,":close_button:click"),VIEW:"".concat(Si,":in_view")}};function Ti(e){var{country:t,page:n,giftUrl:i,isSubscriber:o,isTrialing:a,userId:s}=e,[l,c]=(0,r.useState)(!1),[d,h]=(0,r.useState)(!1),g=new Date(Date.now()).getTime();if((0,r.useEffect)((()=>{c(!!(0,u.ej)(Ni.COOKIE.NAME))}),[]),(0,r.useEffect)((()=>{h((e=>{var{country:t,dateToday:n,hasHolidayBannerCookie:r,isSubscriber:i,isTrialing:o}=e;return t===f.od.UNITED_STATES&&!(n>Ni.DATES.HOLIDAY_EPOCH_DATE)&&!(n{u.Zd.increment(Ni.DATA_DOG_EVENTS.NAME,vn(vn({},e),{},{isMobile:(0,u.tq)().toString(),isSubscriber:o.toString(),isTrialing:a.toString(),page:n,source:Ni.DATA_DOG_EVENTS.SOURCE}))},v=(e=>({get GIFT_LINK(){return p.Z.t("shared.holiday_banner.shop_subscriptions")},get TITLE(){var t=Math.ceil((Ni.DATES.HOLIDAY_EPOCH_DATE-e)/864e5);if(t<=Ni.DATES.DAYS_BEFORE_USING_COUNTDOWN_COPY){var n=0===t?1:t;return p.Z.t("shared.holiday_banner.days_left_title",{count:n})}return p.Z.t("shared.holiday_banner.everyday_title")}}))(g),_={page:n,isSubscriber:o,isTrialing:a,userId:s},A="
".concat(v.TITLE,"
").concat(v.GIFT_LINK,"");return r.createElement(Ii,{clickTrackingData:{data:_,name:Ni.TRACK_EVENT_NAMES.CLICK},closeTrackingData:{data:_,name:Ni.TRACK_EVENT_NAMES.CLOSE},content:A,cookie:{duration:Ni.COOKIE.DURATION,name:Ni.COOKIE.NAME,value:Ni.COOKIE.VALUE},"data-testid":"holiday-banner",flashType:f.Se.NOTICE,isIconHidden:!0,inView:()=>{m({action:Ni.DATA_DOG_EVENTS.ACTION.VIEW})},raw:!0,onClick:()=>{m({action:Ni.DATA_DOG_EVENTS.ACTION.CLICK})},onClose:()=>{m({action:Ni.DATA_DOG_EVENTS.ACTION.CLOSE})},viewTrackingData:{data:_,name:Ni.TRACK_EVENT_NAMES.VIEW}})}Ti.propTypes={country:o().string.isRequired,giftUrl:o().string.isRequired,isSubscriber:o().bool.isRequired,isTrialing:o().bool.isRequired,page:o().string,userId:o().number.isRequired},Ti.default={page:""};(0,g.$j)((e=>({country:e.user.country,giftUrl:e.static.routes.giftUrl,isSubscriber:e.user.isSubscriber,isTrialing:e.user.isTrialing,userId:e.user.id})))(Ti);function Li(){var e="google_one_tap_prompt_container";return r.createElement("div",{id:e,"data-prompt_parent_id":e,"data-testid":e.replace(/_/g,"-"),style:{position:"absolute",right:"-7px",top:"72px"}})}var Di="wrapper__input_error";function Oi(e){var{message:t,children:n}=e;return r.createElement("div",{role:"alert",className:s()(Di,"error_msg"),"data-e2e":e["data-e2e"]},t||n)}Oi.propTypes={"data-e2e":o().string,message:o().string,children:o().oneOfType([o().array,o().element,o().string])},Oi.defaultProps={"data-e2e":null,message:null,children:null};var ki={wrapper:"InputGroup-module_wrapper__BEjzI",legend:"InputGroup-module_legend__C5Cgq",horizontal:"InputGroup-module_horizontal__-HsbJ"};function Ri(e){var{children:t,className:n,hideLegend:i,horizontal:o,legend:a}=e,u=i?jn:r.Fragment;return r.createElement("fieldset",{className:s()(ki.wrapper,n,{[ki.horizontal]:o})},a?r.createElement(u,null,r.createElement("legend",{className:ki.legend},a)):null,t)}Ri.propTypes={children:o().node.isRequired,className:o().string,hideLegend:o().bool,horizontal:o().bool,legend:o().string},Ri.defaultProps={hideLegend:!1,horizontal:!1};var ji=new Map;function Pi(e,t){e.forEach((n=>{n.isIntersecting&&(ji.get(n.target)(n,t,e),t.unobserve(n.target))}))}var Ui=null;function zi(e,t){ji.get(e)||(ji.set(e,t),(Ui||(Ui=new IntersectionObserver(Pi))).observe(e))}function Bi(e){var{children:t,className:n,onInView:i,onClick:o,Tag:a,"data-e2e":s}=e,u=(0,r.useRef)(null),l=(e,t,n)=>{i(e,t,n)};return(0,r.useEffect)((()=>{zi(u.current,l)}),[]),r.createElement(a,{className:n,ref:u,onClick:o,"data-e2e":s},t)}Bi.propTypes={children:o().node.isRequired,className:o().string,onInView:o().func.isRequired,onClick:o().func,Tag:o().string,"data-e2e":o().string},Bi.defaultProps={className:"",Tag:"div",onClick:null,"data-e2e":null};var qi={image:"LazyImage-module_image__uh0sq",loaded:"LazyImage-module_loaded__st9-P"};function Fi(e){var{"aria-label":t,"data-e2e":n,altText:i,className:o,imageStyles:a,src:l,srcSet:c,Tag:d}=e;if(!l)return null;c||(0,u.Tb)(new Error("LazyImage rendered without srcSet, src: ".concat(l))),i||(0,u.Tb)(new Error("LazyImage rendered without alt text, src: ".concat(l)));var[p,f]=(0,r.useState)(!1),[h,g]=(0,r.useState)(!1);return r.createElement(Bi,{className:o,Tag:d,onInView:()=>{f(!0)}},r.createElement("img",{className:s()(qi.image,{[qi.loaded]:h},a),onLoad:()=>g(!0),alt:i,"aria-label":t,"data-e2e":n,src:p?l:null,srcSet:p?c:null}))}Fi.propTypes={"aria-label":o().string,"data-e2e":o().string,altText:o().string,className:o().string,imageStyles:o().string,src:o().string,srcSet:o().string,Tag:o().string},Fi.defaultProps={"aria-label":null,"data-e2e":null,altText:null,className:null,src:null,srcSet:null,Tag:"div"};o().arrayOf(o().shape({value:o().any,name:o().string})).isRequired,o().string,o().string.isRequired,o().any.isRequired,o().func.isRequired,o().string.isRequired;o().string.isRequired,o().string.isRequired;var Zi={stickyHeader:"StickyHeader-module_stickyHeader__xXq6q"};function Gi(e){var{children:t}=e;return r.createElement("div",{className:Zi.stickyHeader},t)}Gi.propTypes={children:o().node.isRequired};class Yi extends r.Component{constructor(e){super(e),yn(this,"handleChange",(e=>{var{maxLength:t,onChange:n}=this.props,r=t?e.target.value.slice(0,t):e.target.value;n&&"function"===typeof n?n(r):this.setState({value:r})})),yn(this,"getErrors",(()=>{if(!this.props.errors||0===this.props.errors.length)return[];var e=[];return this.props.errors.forEach((t=>{t.input===this.props.name&&e.push(t)})),e})),yn(this,"renderErrors",(()=>{var e=[],t=this.getErrors();return t.length>0&&(e=t.map(((e,t)=>r.createElement("span",{key:t,className:"error_msg"},r.createElement(qn,{icon:"warn"}),r.createElement(jn,{tag:"span",text:p.Z.t("shared.common.forms.error")+" "}),r.createElement("span",null,e.message))))),e})),this.state={value:e.value},this.textAreaRef=r.createRef()}getValue(){return this.props.value&&this.props.onChange&&"function"===typeof this.props.onChange?this.props.value:this.state.value}renderBottomHelp(){var{showCount:e,helpTextBottom:t,maxLength:n}=this.props;return e||t?r.createElement("div",{className:"help_bottom"},e&&r.createElement("span",null,"".concat(this.getValue().length,"/").concat(n)),t&&r.createElement("span",null,t)):null}renderLabel(){return this.props.renderLabel?this.props.renderLabel():r.createElement("span",{className:"label_text"},this.props.label," ")}renderRequired(){return this.props.required?r.createElement("em",{className:this.props.hideRequired?"visually_hidden":null},p.Z.t("shared.common.forms.required")):null}renderTextArea(){var e=this.getErrors().length>0;return r.createElement("textarea",{"aria-invalid":e,ref:this.props.nodeRef||this.textAreaRef,id:this.props.id||(0,u.hQ)("textarea"),name:this.props.name,type:this.props.type,onKeyDown:this.props.handleKeydown,className:s()(this.props.className||{},{field_err:e},{disabled:this.props.disabled}),placeholder:this.props.placeholder,disabled:this.props.disabled,value:this.getValue(),onChange:this.handleChange,onFocus:this.props.onFocus,cols:this.props.cols,rows:this.props.rows,maxLength:this.props.maxLength})}render(){var e=this.getErrors().length>0;return r.createElement("div",{className:s()("wrapper__text_area","textarea_component"),"data-e2e":this.props["data-e2e"]},r.createElement("div",{className:s()(this.props.wrapperClassName,{has_error:e},"textarea_label")},r.createElement("label",{htmlFor:this.props.id||(0,u.hQ)("textarea")},this.renderLabel(),this.renderRequired(),this.props.showOptional&&r.createElement("span",{className:"optional_text"},p.Z.t("shared.common.forms.optional")),e&&r.createElement(jn,{tag:"strong",text:"".concat(p.Z.t("shared.common.forms.invalid"),",")}),this.props.helpText&&r.createElement("span",{className:"help"},this.props.helpText),this.renderTextArea(),this.renderErrors(),this.renderBottomHelp())))}}Yi.propTypes={name:o().string.isRequired,errors:o().arrayOf(o().shape({input:o().string.isRequired,message:o().string.isRequired})),"data-e2e":o().string,className:o().string,cols:o().number,disabled:o().bool,handleKeydown:o().func,helpText:o().string,helpTextBottom:o().string,hideRequired:o().bool,id:o().string,label:o().string,maxLength:o().number,nodeRef:o().oneOfType([o().func,o().shape({current:o().any})]),onChange:o().func,onFocus:o().func,placeholder:o().string,renderLabel:o().func,required:o().bool,rows:o().number,showCount:o().bool,showOptional:o().bool,type:o().string,value:o().string,wrapperClassName:o().string},Yi.defaultProps={"data-e2e":null,helpText:"",required:!1,hideRequired:!1,disabled:!1,value:"",maxLength:500,showCount:!1};class Hi{constructor(e,t,n){this.pattern=e,this.placeholder=t,this.definitions=n,this.value=""}_addCharacter(e){if(!this._validateCharacter(e))return"";for(var t=e,n="",r=this.value.length+1,i=this.pattern.length-1;r{if(!this.props.inputMask)return this.props.onChange(e);e.preventDefault();var t=vn({},e),n=t.target.value;if(n.length{this.toggle_focus(),this.props.onFocus(e)})),yn(this,"handleBlur",(e=>{this.toggle_focus(),this.props.onBlur(e)})),this.state={focus:!1},e.inputMask){var{pattern:t,placeholder:n}=e.inputMask;this.inputMask=new Hi(t,n,e.inputMaskDefinitions,this.set_value)}}componentDidUpdate(e){var t=!e.inputMask&&this.props.inputMask,n=e.inputMask&&this.props.inputMask&&e.inputMask.pattern!==this.props.inputMask.pattern;if(t||n){var{pattern:r,placeholder:i}=this.props.inputMask;this.inputMask=new Hi(r,i,this.props.inputMaskDefinitions)}else this.props.inputMask||(this.inputMask=null)}toggle_focus(){this.setState({focus:!this.state.focus})}renderInputMask(){var{inputMask:e,value:t}=this.props;if(e&&this.state.focus){var n=e.placeholder.substr(t.length);return r.createElement("div",{className:"input_mask","aria-hidden":"true"},r.createElement("i",null,t),n)}}renderVisuallyHiddenRequired(){if(this.props.required)return r.createElement("em",{className:s()("input_required",{visually_hidden:this.props.hideRequired})},p.Z.t("shared.common.forms.required"))}renderLabelText(){var{label:e,hideLabel:t,useAsterisk:n,showOptionalLabel:i,required:o}=this.props;if(e){var a,u,l="".concat(e," ");return i&&!o&&(a=r.createElement("span",{className:"optional"},"(","Optional",")")),n&&(u=r.createElement("span",{className:"asterisk_require"},"*")),r.createElement("span",{className:s()("label_text",{visually_hidden:t})},l,a,u,this.renderVisuallyHiddenRequired())}}renderError(e,t){return r.createElement(Oi,{key:t},r.createElement(qn,{icon:"warn"}),r.createElement(jn,{text:p.Z.t("shared.common.forms.error")+" "}),r.createElement("span",null,e.message))}render(){var e=[],t=Pe()(this.props.errors,{input:this.props.name}),n=t.length>0,i={className:s()(this.props.className,{field_err:n,disabled:this.props.disabled,has_input_mask:this.props.inputMask}),defaultValue:this.props.defaultValue,disabled:this.props.disabled,id:this.props.id,maxLength:this.props.maxLength,min:this.props.min,max:this.props.max,name:this.props.name,onBlur:this.handleBlur,onChange:this.handleChange,onFocus:this.handleFocus,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp,placeholder:this.props.placeholder,ref:this.props.inputRef,type:this.props.type,value:this.props.value};return i.id=i.id?i.id:this.props.name,n&&(e=t.map(this.renderError)),r.createElement("div",{className:s()("wrapper__text_input","input_row",i.name,this.props.type,this.props.wrapperClass,{has_error:n}),"data-e2e":this.props["data-e2e"]},r.createElement("label",{htmlFor:i.id},this.renderLabelText(),n&&r.createElement(jn,{text:p.Z.t("shared.common.forms.invalid")+",",tag:"strong"}),this.props.helpText&&r.createElement("span",{className:"help"},this.props.helpText),this.props.children,r.createElement("div",{className:"input_wrapper"},this.props.inputChildren,r.createElement("input",i),this.props.afterInputChildren,this.renderInputMask()),e))}}Wi.propTypes={"data-e2e":o().string,afterInputChildren:o().any,children:o().any,className:o().string,defaultValue:o().string,disabled:o().bool,errors:o().arrayOf(o().shape({input:o().string,message:o().string})),helpText:o().string,hideLabel:o().bool,hideRequired:o().bool,id:o().string,inputChildren:o().any,inputMask:o().shape({pattern:o().string.isRequired,placeholder:o().string.isRequired}),inputMaskDefinitions:o().object,inputRef:o().oneOfType([o().func,o().shape({current:o().any})]),label:o().string,maxLength:o().number,min:o().oneOfType([o().string,o().number]),max:o().oneOfType([o().string,o().number]),name:o().string.isRequired,onBlur:o().func,onChange:o().func,onFocus:o().func,onKeyDown:o().func,onKeyUp:o().func,placeholder:o().string,required:o().bool,showOptionalLabel:o().bool,type:o().string,useAsterisk:o().bool,value:o().string,wrapperClass:o().string},Wi.defaultProps={"data-e2e":null,className:"",defaultValue:void 0,disabled:!1,errors:[],helpText:"",hideLabel:!1,hideRequired:!1,inputMaskDefinitions:{"*":".","#":"[0-9]",A:"[a-zA-Z]",X:"[a-zA-Z0-9]"},inputRef:null,label:"",min:void 0,max:void 0,onBlur:u.ZT,onChange:u.ZT,onFocus:u.ZT,required:!1,showOptionalLabel:!1,type:"text",useAsterisk:!1,value:void 0,wrapperClass:""};class Vi extends r.Component{constructor(){super(...arguments),yn(this,"state",{listExpanded:!1}),yn(this,"trackClick",(e=>{(0,u.gb)("seo_crosslinks:click",{page:this.props.page,category:{id:e.id,slug:e.slug},location:window.location.href,destination:e.href})})),yn(this,"toggleList",(()=>{this.setState((e=>({listExpanded:!e.listExpanded})))}))}renderAllCategoriesButton(){if(!1===this.props.showAllCategoriesButton)return null;var{allCategoriesURL:e,handleAllCategoriesClick:t}=this.props,n={className:"all_interests_btn",text:p.Z.t("shared.text_links.all_categories")};return e?n.href=e:n.onClick=t,r.createElement("div",{className:"view_more_wrap"},r.createElement(Un,n))}renderLinks(){var{items:e,maxItems:t}=this.props;return(!1===this.state.listExpanded&&t?e.slice(0,t):e).map((e=>r.createElement("li",{key:e.id,className:"text_links_item",onClick:()=>this.trackClick(e),onKeyDown:()=>this.trackClick(e)},r.createElement("a",{href:e.href},e.text))))}renderToggleButtonText(){return this.state.listExpanded?p.Z.t("shared.text_links.view_fewer"):p.Z.t("shared.text_links.view_all_categories_in_category",{category:this.props.parentCategory})}renderToggleListButton(){var{items:e,maxItems:t,showToggleListButton:n}=this.props;if(!1===n||e.length<=t)return null;var i=this.state.listExpanded?"up_arrow":"down_arrow";return r.createElement("li",{className:"text_links_item"},r.createElement(Un,{onClick:this.toggleList},this.renderToggleButtonText(),r.createElement(qn,{icon:i})))}render(){return r.createElement("div",{className:"wrapper__text_links","data-e2e":this.props["data-e2e"]},r.createElement("div",{className:"title_wrap"},r.createElement("h2",{className:"text_links_title"},this.props.title),this.renderAllCategoriesButton()),r.createElement("ul",{className:"text_links_list"},this.renderLinks(),this.renderToggleListButton()))}}function Qi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(!n||!r)return{top:-9999,left:-9999};var i=n.getBoundingClientRect(),o=r.getBoundingClientRect(),a=-o.height-e,s=-o.width-e,u=i.height+e,l=i.width+e,c=i.height/2-o.height/2,d=i.width/2-o.width/2;switch(t){case f.cl.TOP:return{top:i.top+a>0?a:u,left:d};case f.qK.TOP_LEFT:return{top:i.top+a>0?a:u,left:0};case f.qK.TOP_RIGHT:return{top:i.top+a>0?a:u,right:0};case f.cl.BOTTOM:return{top:i.bottom+u0?s:l};case f.qK.LEFT_BOTTOM:return{bottom:0,left:i.left+s>0?s:l};case f.cl.LEFT:default:return{top:c,left:i.left+s>0?s:l}}}Vi.propTypes={"data-e2e":o().string,items:o().arrayOf(o().shape({id:o().number,href:o().string,slug:o().string,text:o().string})).isRequired,page:o().string.isRequired,title:o().string.isRequired,allCategoriesURL:o().string,handleAllCategoriesClick:o().func,maxItems:o().number,parentCategory:o().string,showAllCategoriesButton:o().bool,showToggleListButton:o().bool},Vi.defaultProps={"data-e2e":null,allCategoriesURL:null,handleAllCategoriesClick:u.ZT,parentCategory:null,maxItems:null,showAllCategoriesButton:!1,showToggleListButton:!1};var Ki="Tooltip-module_wrapper__XlenF",Xi="Tooltip-module_tooltip__NMZ65",$i="Tooltip-module_enterDone__sTwni",Ji="Tooltip-module_enterActive__98Nnr",eo="Tooltip-module_exitActive__2vJho",to="Tooltip-module_exitDone__7sIhA",no="Tooltip-module_inner__xkhJQ";class ro extends r.Component{constructor(e){super(e),yn(this,"handleHide",(()=>{this.setState({visible:!1})})),yn(this,"handleShow",(()=>{this.setState({visible:!0})})),this.state={visible:!1},this.containerRef=(0,r.createRef)(),this.tooltipRef=(0,r.createRef)()}render(){var{children:e,content:t,contentClass:n,"data-e2e":i,padding:o,position:a,tooltipClass:u,wrapperClass:l}=this.props;return r.createElement("div",{className:s()(Ki,l),onBlur:this.handleHide,onFocus:this.handleShow,onMouseEnter:this.handleShow,onMouseLeave:this.handleHide,ref:this.containerRef},r.createElement(ke,{timeout:200,in:this.state.visible,classNames:{enterActive:Ji,enterDone:$i,exitActive:eo,exitDone:to},unmountOnExit:!0},(e=>r.createElement("div",{ref:this.tooltipRef,className:s()(Xi,e,u),"data-e2e":i,style:Qi(o,a,this.containerRef.current,this.tooltipRef.current)},r.createElement("div",{className:n,role:"tooltip"},t)))),e)}}function io(){return r.createElement("svg",{width:"49",height:"20","aria-hidden":!0,role:"presentation"},r.createElement("g",{fill:"#fff"},r.createElement("path",{d:"m9.18772961 2.65478431c.54840917-.68823529.92055509-1.61239215.82241839-2.55674509-.80279885.04007843-1.78240802.53141176-2.34957691 1.22023529-.50924826.58984314-.95998963 1.55266667-.84250688 2.45745098.90117009.07843137 1.80151944-.45196078 2.3696654-1.12094118"}),r.createElement("path",{d:"m9.99990828 3.95239216c-1.30872503-.0782353-2.42141097.7452549-3.04642234.7452549-.62528494 0-1.58234337-.70584314-2.61745005-.68682353-1.34726062.01984314-2.59736151.78419608-3.28107517 1.99984314-1.40619741 2.43196078-.37109073 6.03937253.99637567 8.02003923.66409412.9799216 1.46439163 2.0588627 2.51896152 2.0200784.99637567-.0392157 1.38689052-.6473333 2.59802592-.6473333 1.21023649 0 1.56202034.6473333 2.61674656.6277255 1.09376991-.0196079 1.77756171-.9803922 2.44165581-1.9612157.761801-1.1170588 1.0736423-2.1956471 1.0932618-2.2548628-.0196195-.0196078-2.1090616-.8239215-2.1284466-3.23564702-.0197368-2.01937255 1.6404594-2.97988235 1.7185858-3.03945098-.937517-1.39133333-2.4023776-1.54819608-2.91021892-1.58760784"}),r.createElement("path",{d:"m23.0483494 1.21968627c2.8444426 0 4.8253128 1.96737255 4.8253128 4.83172549 0 2.87458824-2.0214381 4.85227454-4.8964435 4.85227454h-3.1493663v5.0251764h-2.2755932v-14.70917643zm-3.220497 7.76745098h2.6108842c1.9810656 0 3.1085639-1.07019607 3.1085639-2.92549019 0-1.85509804-1.1274983-2.91529412-3.0984024-2.91529412h-2.6210457z"}),r.createElement("path",{d:"m28.4382126 12.8812549c0-1.8859608 1.4324219-2.96647059 4.0736343-3.12945098l2.8342811-.17345098v-.81537255c0-1.19266666-.7822413-1.84505882-2.1738999-1.84505882-1.1480949 0-1.9811047.59121568-2.1537332 1.49843137h-2.0521962c.0611254-1.90623529 1.849005-3.29239216 4.2668594-3.29239216 2.6006836 0 4.2972267 1.36592157 4.2972267 3.48603922v7.3188627h-2.1029647v-1.7632941h-.0507294c-.5994121 1.1518039-1.9201356 1.8753726-3.3525575 1.8753726-2.1129699 0-3.5859206-1.2638824-3.5859206-3.1596863zm6.9079154-.9480784v-.825804l-2.5295529.1631765c-1.4222214.0916471-2.1636993.6217255-2.1636993 1.5493726 0 .8969804.7720407 1.478196 1.9808702 1.478196 1.5440813 0 2.712382-.9890196 2.712382-2.3649411z"}),r.createElement("path",{d:"m39.4636522 19.8636078v-1.7632941c.1422613.0200785.4875574.0405098.6703474.0405098 1.0058337 0 1.5746832-.4278431 1.9201747-1.5289019l.2031912-.6523922-3.8502764-10.70305881h2.3770912l2.6820147 8.68458821h.0507294l2.6820148-8.68458821h2.3163565l-3.9925376 11.24337251c-.9143019 2.5788628-1.9607035 3.4250981-4.1753667 3.4250981-.1726285 0-.7314728-.0204314-.8837392-.0613334z"})))}ro.propTypes={children:o().any,content:o().oneOfType([o().string,o().element,o().node]),contentClass:o().string,"data-e2e":o().string,padding:o().number,position:o().oneOf(Object.values(vn(vn({},f.cl),f.qK))),tooltipClass:o().string,wrapperClass:o().string},ro.defaultProps={contentClass:no,"data-e2e":null,position:f.cl.TOP,tooltipClass:"",wrapperClass:""};var oo="ApplePayButton-module_wrapper__FMgZz";function ao(e){return r.createElement("a",{className:oo,onClick:t=>{t.preventDefault(),e.handleClick(t)},href:"#","data-e2e":e["data-e2e"]},r.createElement(jn,{text:"apple pay"}),r.createElement(io,null))}ao.propTypes={"data-e2e":o().string,handleClick:o().func.isRequired},ao.defaultProps={"data-e2e":null};var so="wrapper__store_button",uo=/Android|iPhone|iPad|iPod/i;function lo(e){var{alt:t,buttonClass:n,"data-e2e":i,handleOpenLightbox:o,imageClass:a,platform:l,src:c,url:d}=e,p=(0,u.up)(c);return r.createElement("li",{className:s()(so),"data-e2e":"app_store_btn"},r.createElement("a",{"aria-label":t,className:s()("app_link",n),"data-e2e":i,href:d,onClick:e=>{e.preventDefault(),(0,u.L9)("app_store_button:".concat(l,":click")),navigator&&navigator.userAgent&&!uo.test(navigator.userAgent)&&o!==u.ZT?o():window.location.assign(d)}},r.createElement(Fi,{src:p,srcSet:p,altText:t,className:s()("app_store_img",a)})))}lo.propTypes={"data-e2e":o().string,alt:o().string.isRequired,buttonClass:o().string,className:o().string,handleOpenLightbox:o().func,imageClass:o().string,platform:o().string,src:o().string.isRequired,url:o().string.isRequired},lo.defaultProps={"data-e2e":null,handleOpenLightbox:u.ZT};var co={[f.a2.DE.lang]:ze(),[f.a2.EN.lang]:qe(),[f.a2.ES.lang]:Ze(),[f.a2.FR.lang]:Ye(),[f.a2.ID.lang]:We(),[f.a2.IT.lang]:Qe(),[f.a2.PT.lang]:Xe(),[f.a2.RO.lang]:Je(),[f.a2.RU.lang]:tt()},po={[f.a2.DE.lang]:rt(),[f.a2.EN.lang]:ot(),[f.a2.ES.lang]:st(),[f.a2.FR.lang]:lt(),[f.a2.ID.lang]:dt(),[f.a2.IT.lang]:ft(),[f.a2.PT.lang]:gt(),[f.a2.RO.lang]:vt(),[f.a2.RU.lang]:At()},fo={[f.a2.DE.lang]:bt(),[f.a2.EN.lang]:wt(),[f.a2.ES.lang]:It(),[f.a2.FR.lang]:St(),[f.a2.ID.lang]:Nt(),[f.a2.IT.lang]:Lt(),[f.a2.PT.lang]:Ot(),[f.a2.RO.lang]:Rt(),[f.a2.RU.lang]:Pt()},ho={[f.a2.DE.lang]:zt(),[f.a2.EN.lang]:qt(),[f.a2.ES.lang]:Zt(),[f.a2.FR.lang]:Yt(),[f.a2.ID.lang]:Wt(),[f.a2.IT.lang]:Qt(),[f.a2.PT.lang]:Xt(),[f.a2.RO.lang]:Jt(),[f.a2.RU.lang]:tn()};function go(e){var{language:t,showWhiteIosBadge:n}=e,r=t||f.a2.EN.lang;return{android:co[r],ios:!0===n?fo[r]:po[r],kindle:ho[r]}}var mo="wrapper__app_store_buttons";function vo(e){var{"data-e2e":t,androidStoreUrl:n,className:i,handleOpenLightbox:o,iosStoreUrl:a,language:u,showKindle:l,showWhiteIosBadge:c}=e,d=go({language:u,showWhiteIosBadge:c});return r.createElement("ul",{className:s()("mobile_icons",mo,i),"data-e2e":t},r.createElement(lo,{alt:p.Z.t("shared.footer.scribd_-_download_on_the_app_store"),buttonClass:"ios_btn","data-e2e":"ios_btn",handleOpenLightbox:o,platform:"ios",src:d.ios,url:a}),r.createElement(lo,{alt:p.Z.t("shared.footer.scribd_-_get_it_on_google_play"),buttonClass:"google_play_btn","data-e2e":"google_play_btn",handleOpenLightbox:o,imageClass:"play_store_link",platform:"android",src:d.android,url:n}),!1===l?null:r.createElement(lo,{alt:p.Z.t("shared.footer.scribd_-_get_it_on_kindle_fire"),buttonClass:"kindle_btn","data-e2e":"kindle_btn",src:d.kindle,url:"/kindlefire"}))}vo.propTypes={"data-e2e":o().string,androidStoreUrl:o().string.isRequired,className:o().string,handleOpenLightbox:o().func,iosStoreUrl:o().string.isRequired,language:o().string,showKindle:o().bool,showWhiteIosBadge:o().bool},vo.defaultProps={"data-e2e":null,className:"",handleOpenLightbox:u.ZT,language:f.a2.EN.lang,showKindle:!1};var _o={appLink:"StoreButton-ds2-module_appLink__tjlz9",appStoreImg:"StoreButton-ds2-module_appStoreImg__JsAua"};function Ao(e){var{"data-e2e":t,alt:n,buttonClass:i,imageClass:o,openModal:a,platform:l,src:c,url:d}=e,p=(0,u.up)(c);return r.createElement("a",{"aria-label":n,className:s()(_o.appLink,i),"data-e2e":t,href:d,onClick:e=>{e.preventDefault(),(0,u.L9)("app_store_button:".concat(l,":click")),f.a6.test(window.navigator.userAgent)||a===u.ZT?window.location.assign(d):a()}},r.createElement(Fi,{altText:n,className:s()(_o.appStoreImg,o),src:p,srcSet:p}))}Ao.propTypes={"data-e2e":o().string,alt:o().string.isRequired,buttonClass:o().string,className:o().string,imageClass:o().string,openModal:o().func,platform:o().string.isRequired,src:o().string.isRequired,url:o().string.isRequired},Ao.defaultProps={"data-e2e":null,buttonClass:null,className:null,imageClass:null,openModal:u.ZT};var yo={wrapper:"AppStoreButtons-ds2-module_wrapper__16u3k",item:"AppStoreButtons-ds2-module_item__HcWO0"};function bo(e){var{"data-e2e":t,androidButtonClassName:n,androidStoreUrl:i,className:o,imageClass:a,iosButtonClassName:u,iosStoreUrl:l,kindleButtonClassName:c,language:d,openModal:f,showKindle:h,showWhiteIosBadge:g}=e,m=go({language:d,showWhiteIosBadge:g});return r.createElement("ul",{className:s()(yo.wrapper,o),"data-e2e":t},r.createElement("li",{className:yo.item},r.createElement(Ao,{alt:p.Z.t("shared.footer.scribd_-_download_on_the_app_store"),buttonClass:u,"data-e2e":"ios-app-store-btn",imageClass:a,openModal:f,platform:"ios",src:m.ios,url:l})),r.createElement("li",{className:yo.item},r.createElement(Ao,{alt:p.Z.t("shared.footer.scribd_-_get_it_on_google_play"),buttonClass:n,"data-e2e":"google-play-btn",imageClass:a,openModal:f,platform:"android",src:m.android,url:i})),!1===h?null:r.createElement("li",{className:yo.item},r.createElement(Ao,{alt:p.Z.t("shared.footer.scribd_-_get_it_on_kindle_fire"),buttonClass:c,"data-e2e":"kindle-btn",imageClass:a,platform:"kindle",src:m.kindle,url:"/kindlefire"})))}bo.propTypes={"data-e2e":o().string,androidButtonClassName:o().string,androidStoreUrl:o().string.isRequired,className:o().string,imageClass:o().string,iosButtonClassName:o().string,iosStoreUrl:o().string.isRequired,kindleButtonClassName:o().string,language:o().string,openModal:o().func,showKindle:o().bool,showWhiteIosBadge:o().bool},bo.defaultProps={"data-e2e":null,androidButtonClassName:null,className:null,imageClass:null,iosButtonClassName:null,kindleButtonClassName:null,language:f.a2.EN.lang,openModal:u.ZT,showKindle:!1,showWhiteIosBadge:!1};class Eo extends r.Component{constructor(e){super(e),yn(this,"handleKeydown",(e=>{if(e.stopPropagation(),e.keyCode===u.keyMappings.esc)return this.hideMenu();(0,u._h)({event:e,children:(0,u.Ng)(this.menuRef.current),exitFunction:this.hideMenu,tabCycle:!1})})),yn(this,"addFocusTrap",(()=>{this.state.isOpen&&this.setFocus(this.menuRef.current)})),yn(this,"setFocus",(e=>{(0,u.Ng)(e)[0].focus()})),yn(this,"handleBodyClick",(e=>{this.wrapperRef.current.contains(e.target)||this.hideMenu()})),yn(this,"handleClose",(e=>{e.preventDefault(),this.hideMenu()})),yn(this,"handleContainerClick",(()=>{this.props.autoclose&&this.toggleVisible()})),yn(this,"getPosition",(()=>{if(this.state.isOpen){if(null!=this.props.forcePosition)return this.props.forcePosition;var e=this.menuRef.current,t=e.getBoundingClientRect(),n=window.innerWeight-t.right>e.offsetWidth?"right":"left",r=window.innerHeight-t.bottom>e.offsetHeight?"bottom":"top";return"".concat(n," ").concat(r)}})),yn(this,"toggleVisible",(()=>{this.state.isOpen?this.hideMenu():this.showMenu()})),yn(this,"hideMenu",(()=>{this.state.isOpen&&this.setState({isOpen:!1},this.props.onHide)})),this.state={isOpen:this.props.isOpen,position:""},this.wrapperRef=r.createRef(),this.menuRef=r.createRef()}componentDidMount(){document.body.addEventListener("click",this.handleBodyClick)}componentWillUnmount(){document.body.removeEventListener("click",this.handleBodyClick)}componentDidUpdate(e,t){var n=this.getPosition();t.position!==n&&this.setState({position:n}),this.props.isOpen!==e.isOpen&&this.props.isOpen!==this.state.isOpen&&this.setState({isOpen:this.props.isOpen})}showMenu(){if(!this.state.isOpen)return"function"===typeof this.props.onShow&&this.props.onShow(),this.setState({isOpen:!0},this.addFocusTrap)}renderButton(){var e=Object.assign({},this.props.button);this.props.skipAriaAndDataProps?e.props=vn({},e.props):e.props=vn(vn({},e.props),{},{"aria-expanded":this.state.isOpen,"aria-haspopup":!0}),e.props.className=s()(e.props.className,"menu_handle");var t=e.props.onClick;return e.props.onClick=e=>{e.preventDefault(),this.props.disabled||(this.toggleVisible(),t&&t(e,this.state.isOpen))},e}renderArrow(){if(this.props.hasArrow)return r.createElement("div",{className:"button_menu_arrow","aria-hidden":"true"})}renderCloseButton(){if(!(window.innerWidth>u.AV.breakpoint_450))return r.createElement(Un,{href:"#",className:"close_btn icon_btn",onClick:this.handleClose},r.createElement(qn,{icon:"close",hiddenText:p.Z.t("shared.react.button_menu.close_menu")}))}renderMenu(){if(this.state.isOpen)return r.createElement("div",{onKeyDown:this.handleKeydown,className:s()("button_menu",this.state.position,this.props.extraClasses,{no_fullscreen:this.props.noFullscreen}),tabIndex:0,ref:this.menuRef},this.renderArrow(),this.renderCloseButton(),this.props.menu)}render(){return r.createElement("div",{className:s()("button_menu_container","wrapper__button_menu"),"data-e2e":this.props["data-e2e"]},r.createElement("div",{className:"button_menu_wrapper",onClick:this.handleContainerClick,ref:this.wrapperRef},r.createElement("span",{className:"selector_button"},this.renderButton()),this.renderMenu()))}}Eo.propTypes={"data-e2e":o().string,autoclose:o().bool,button:o().element.isRequired,disabled:o().bool,extraClasses:o().string,forcePosition:o().string,hasArrow:o().bool,isKeyboardUser:o().bool,isOpen:o().bool,menu:o().element.isRequired,noFullscreen:o().bool,onHide:o().func,onShow:o().func,skipAriaAndDataProps:o().bool},Eo.defaultProps={"data-e2e":null,autoclose:!0,disabled:!1,hasArrow:!0,isKeyboardUser:!1,isOpen:!1,noFullscreen:!1,skipAriaAndDataProps:!1};function wo(e){var{className:t,crumbs:n,disableLastCrumb:i}=e,o=[];for(var a of n){var u=a===n[n.length-1],l=u&&i,c=!l&&a.href?a.href:void 0;o.push(r.createElement("li",{key:a.label,className:"breadcrumb-item"},r.createElement(Un,{"aria-current":u||null,href:c,disabled:l},a.label),!u&&r.createElement(qn,{icon:"right_caret_1px"})))}return r.createElement("nav",{className:s()("wrapper__breadcrumbs","nav_breadcrumbs",t),"aria-label":"Breadcrumbs","data-e2e":e["data-e2e"]},r.createElement("ol",{className:"breadcrumbs-list"},o))}wo.propTypes={"data-e2e":o().string,className:o().string,crumbs:o().arrayOf(o().shape({label:o().string.isRequired,href:o().string})),disableLastCrumb:o().bool},wo.defaultProps={"data-e2e":null,className:"",crumbs:[],disableLastCrumb:!1};var xo={wrapper:"Breadcrumbs-ds2-module_wrapper__WKm6C",crumb:"Breadcrumbs-ds2-module_crumb__wssrX",wrap:"Breadcrumbs-ds2-module_wrap__BvyKL",icon:"Breadcrumbs-ds2-module_icon__T9ohz",link:"Breadcrumbs-ds2-module_link__ITPF4",list:"Breadcrumbs-ds2-module_list__mQFxN"};function Io(e){var{className:t,crumbs:n,"data-e2e":i,hideLastCrumb:o,wrapCrumbs:a}=e,u=n.length-1,l=n.map(((e,t)=>t===u&&!0===o?null:r.createElement("li",{key:t,className:s()(xo.crumb,{[xo.wrap]:a})},r.createElement("a",{className:xo.link,href:e.href},e.label),t===u?null:r.createElement(Re.bpM,{className:xo.icon}))));return r.createElement("nav",{className:s()(t,xo.wrapper),"aria-label":"Breadcrumbs","data-e2e":i},r.createElement("ol",{className:s()(xo.list,{[xo.wrap]:a})},l))}Io.propTypes={className:o().string,crumbs:o().arrayOf(o().shape({label:o().string.isRequired,href:o().string})),"data-e2e":o().string,hideLastCrumb:o().bool,wrapCrumbs:o().bool},Io.defaultProps={className:"",crumbs:[],"data-e2e":null,hideLastCrumb:!1,wrapCrumbs:!1};var Mo="CompetitorMatrix-module_logo__HucCS";rn(),f.od.GERMANY;o().string,o().string.isRequired;var So={DEFAULT:"default",DANGER:"danger",DISABLED:"disabled",NONE:"none"},Co={BUTTON:"button",SUBMIT:"submit"};var No={wrapper:"TextButton-module_wrapper__ZwW-w",children:"TextButton-module_children__HwxUl",content:"TextButton-module_content__6x-Ra",danger:"TextButton-module_danger__ZZ1dL",default:"TextButton-module_default__ekglb",disabled:"TextButton-module_disabled__J-Qyg",leftIcon:"TextButton-module_leftIcon__tZ3Sb",rightAlignedText:"TextButton-module_rightAlignedText__1b-RN",rightIcon:"TextButton-module_rightIcon__nDfu4"},To=e=>{var{"aria-label":t,"aria-expanded":n,"data-e2e":i,buttonStyle:o,children:a,className:l,disabled:c,href:d,leftIcon:p,nodeRef:f,onBlur:h,onClick:g,onFocus:m,onKeyDown:v,onKeyPress:_,onKeyUp:A,onMouseDown:y,onMouseEnter:b,onMouseLeave:E,onMouseOut:w,onMouseOver:x,rel:I,rightIcon:M,role:S,tabIndex:C,target:N,type:T}=e,L=(0,u.Nn)(d,N),D="button";L&&(D="a");var O=function(e,t,n){return e===So.NONE?[n.wrapper,t]:[n.wrapper,n[e],t]}(o,l,No);return r.createElement(D,{"aria-disabled":c?"true":"false","aria-expanded":n,"aria-label":t,className:s()(...O,{[No.disabled]:c}),"data-e2e":i,href:d,onBlur:h,onClick:g,onFocus:m,onKeyDown:v,onKeyPress:_,onKeyUp:A,onMouseDown:y,onMouseEnter:b,onMouseLeave:E,onMouseOut:w,onMouseOver:x,ref:f,rel:L?I:null,role:S,tabIndex:C,target:N,type:L?null:T},r.createElement("span",{className:No.content},p?r.createElement(p,{className:No.leftIcon,"data-e2e":"btn-icon"}):null,r.createElement("span",{className:s()(No.children,{[No.rightAlignedText]:Boolean(M)})},a),M?r.createElement(M,{className:No.rightIcon,"data-e2e":"btn-icon"}):null))};To.propTypes={"aria-expanded":o().bool,"aria-label":o().string,"data-e2e":o().string,buttonStyle:o().oneOf(Object.values(So)),children:o().oneOfType([o().array,o().element,o().string]),className:o().string,disabled:o().bool,href:o().string,leftIcon:o().elementType,nodeRef:o().oneOfType([o().func,o().shape({current:o().any})]),onBlur:o().func,onClick:o().func,onFocus:o().func,onKeyDown:o().func,onKeyPress:o().func,onKeyUp:o().func,onMouseDown:o().func,onMouseEnter:o().func,onMouseLeave:o().func,onMouseOut:o().func,onMouseOver:o().func,rel:o().string,rightIcon:o().elementType,role:o().string,tabIndex:o().string,target:o().string,type:o().oneOf(Object.values(Co))},To.defaultProps={"aria-expanded":null,"aria-label":null,"data-e2e":null,buttonStyle:So.DEFAULT,className:"",disabled:!1,leftIcon:null,rel:null,rightIcon:null,type:Co.BUTTON};var Lo="FeaturedContentCard-module_wrapper__Pa1dF",Do="FeaturedContentCard-module_accentColor__NgvlF",Oo="FeaturedContentCard-module_ctaTextButton__NQVNk",ko="FeaturedContentCard-module_content__6IMuP",Ro="FeaturedContentCard-module_description__nYKqr",jo="FeaturedContentCard-module_editorialTitle__6nfT5",Po="FeaturedContentCard-module_linkOverlay__M2cn7",Uo="FeaturedContentCard-module_metadataWrapper__12eLi",zo="FeaturedContentCard-module_saveButton__ponsB",Bo="FeaturedContentCard-module_thumbnailWrapper__SLmkq",qo="FeaturedContentCard-module_title__SH0Gh";function Fo(e){var{"data-e2e":t,backgroundColor:n,contentPreviewUrl:i,ctaLabel:o,description:a,editorialTitle:s,id:l,imageUrl:c,isLoggedIn:d,isSaved:g,onRemoveFromSavedClick:m,onSaveClick:v,readerUrl:_,retinaImageUrl:A,thumbnailType:y,title:b}=e,[E,w]=(0,r.useState)(g),[x,I]=(0,r.useState)(!1),M=function(){var e=An((function*(e){e.stopPropagation();try{I(!0),E?yield m(l):yield v(l),d&&w(!E)}catch(t){(0,u.Tb)(t)}finally{I(!1)}}));return function(t){return e.apply(this,arguments)}}();return r.createElement("div",{className:Lo,"data-e2e":t},r.createElement("a",{className:Po,href:i},r.createElement(jn,null,b)),r.createElement("div",{className:Do,style:{backgroundColor:(0,u.e9)(n,85,85,l)}}),r.createElement("div",{className:zo},x?r.createElement(h.Tj,{disabled:!0,icon:Re.AUm,size:f.zf.L}):r.createElement(h.pf,{content:E?p.Z.t("shared.common.remove_from_saved"):p.Z.t("shared.common.save_for_later")},r.createElement(h.Tj,{"data-e2e":"save-button",hiddenText:p.Z.t("shared.common.library.add_with_title",{title:b}),icon:E?Re.TwY:Re.AUm,isSelected:E,onClick:M,onKeyDown:e=>((e,t)=>{e.which===u.keyMappings.enter&&t(e)})(e,M),size:f.zf.L}))),r.createElement("div",{className:ko},r.createElement(h.d7,{below:!0,classes:Bo,size:f.zf.S},r.createElement(h.pl,{alt:b,"aria-label":y,"data-e2e":"content-card-thumbnail",imageUrl:c,retinaImageUrl:A,size:f.zf.L,thumbnailStyle:f.Kr.SHADOW,thumbnailType:y})),r.createElement(h.d7,{atAndAbove:!0,classes:Bo,size:f.zf.S},r.createElement(h.pl,{alt:b,"aria-label":y,"data-e2e":"content-card-thumbnail",imageUrl:c,retinaImageUrl:A,size:f.zf.S,thumbnailStyle:f.Kr.SHADOW,thumbnailType:y})),r.createElement("div",{className:Uo},r.createElement("div",{className:jo},s),r.createElement("div",{className:qo,"data-e2e":"title"},b),r.createElement(h.d7,{below:!0,size:f.zf.S},r.createElement("div",{className:Ro},a)),r.createElement(To,{className:Oo,"data-e2e":"cta",href:_,rightIcon:Re.Lm,target:"_blank"},o))))}Fo.propTypes={"data-e2e":o().string,backgroundColor:o().string,contentPreviewUrl:o().string.isRequired,ctaLabel:o().string.isRequired,description:o().string.isRequired,editorialTitle:o().string.isRequired,id:o().number.isRequired,imageUrl:o().string.isRequired,isLoggedIn:o().bool,isSaved:o().bool,onRemoveFromSavedClick:o().func.isRequired,onSaveClick:o().func.isRequired,readerUrl:o().string.isRequired,retinaImageUrl:o().string.isRequired,thumbnailType:o().oneOf(Object.values(f.r1)).isRequired,title:o().string.isRequired},Fo.defaultProps={"data-e2e":null,backgroundColor:null,isLoggedIn:!1,isSaved:!1};var Zo="FlashCloseButton-module_flashCloseButton__70CX7";function Go(e){var{onClick:t,isDismissable:n}=e;return n?r.createElement(Un,{onClick:t,className:Zo},r.createElement(jn,null,p.Z.t("chrome.flash.close_notification")),r.createElement(qn,{icon:"close"})):null}Go.propTypes={isDismissable:o().bool,onClick:o().func.isRequired},Go.defaultProps={isDismissable:!0};var Yo={flash:"Flash-module_flash__yXzeY",enterDone:"Flash-module_enterDone__gGhZQ",enterActive:"Flash-module_enterActive__z7nLt",enter:"Flash-module_enter__6iZpE",exit:"Flash-module_exit__XyXV4",exitActive:"Flash-module_exitActive__H1VbY",exitDone:"Flash-module_exitDone__OSp1O",content:"Flash-module_content__Ot5Xo",success:"Flash-module_success__ZI59T",notice:"Flash-module_notice__lUJjk",info:"Flash-module_info__FLkFN",error:"Flash-module_error__KogG5",fullBorder:"Flash-module_fullBorder__vR-Za"},Ho={[f.Se.ERROR]:"warning",[f.Se.INFO]:"abouttitle",[f.Se.NOTICE]:"abouttitle",[f.Se.SUCCESS]:"success"};class Wo extends r.Component{constructor(e){super(e),yn(this,"handleClick",(e=>{var{target:{tagName:t}}=e;if(this.props.clickTrackingData&&"A"===t){var{name:n,data:r={}}=this.props.clickTrackingData;(0,u.L9)(n,r)}})),yn(this,"handleClose",(e=>{e.stopPropagation(),this.setState({isVisible:!1,maxHeight:0});var{cookie:t,closeTrackingData:n,onClose:r}=this.props;if(t&&(0,u.Qo)(t.name,t.value,t.duration),n){var{name:i,data:o={}}=n;(0,u.L9)(i,o)}r()})),yn(this,"handleInView",(()=>{if(this.props.viewTrackingData){var{name:e,data:t={}}=this.props.viewTrackingData;(0,u.L9)(e,t)}})),yn(this,"handleExited",(()=>{this.props.closeFlash()})),this.state={isVisible:!1,maxHeight:0},this.wrapperRef=(0,r.createRef)()}componentDidMount(){this.setState({isVisible:!0,maxHeight:"100%"},(()=>this.handleInView()))}get label(){switch(this.props.flashType){case f.Se.SUCCESS:return p.Z.t("shared.common.success");case f.Se.ERROR:return p.Z.t("shared.common.error");case f.Se.INFO:return p.Z.t("shared.common.info");case f.Se.NOTICE:default:return p.Z.t("shared.common.notice")}}renderContent(){var{content:e,raw:t}=this.props;if(e)return t?r.createElement("span",{"data-testid":"flash-content",onClick:this.handleClick,dangerouslySetInnerHTML:{__html:e}}):r.createElement("span",{"data-testid":"flash-content"},e)}render(){var{fullBorder:e,flashType:t,className:n,isDismissable:i,isIconHidden:o}=this.props,{maxHeight:a}=this.state;return r.createElement("div",{tabIndex:"-1"},r.createElement(ke,{in:this.state.isVisible,timeout:250,onExited:this.handleExited,classNames:{enter:Yo.enter,enterActive:Yo.enterActive,enterDone:Yo.enterDone,exit:Yo.exit,exitActive:Yo.exitActive,exitDone:Yo.exitDone}},r.createElement("div",{className:s()(Yo.flash,Yo[t],n,{[Yo.fullBorder]:e}),style:{maxHeight:a},"data-e2e":"flash"},r.createElement("div",{className:Yo.content,ref:this.wrapperRef,"data-e2e":"flash-content"},r.createElement(jn,{tag:"h1"},this.label),o?null:r.createElement(qn,{icon:Ho[t]}),this.renderContent()),r.createElement(Go,{onClick:this.handleClose,isDismissable:i}))))}}Wo.propTypes={className:o().string,closeFlash:o().func.isRequired,content:o().string,flashType:o().oneOf(Object.values(f.Se)),fullBorder:o().bool,id:o().number.isRequired,isDismissable:o().bool,onClose:o().func,raw:o().bool,isIconHidden:o().bool,cookie:o().shape({name:o().string,duration:o().number,value:o().any}),clickTrackingData:o().shape({name:o().string.isRequired,data:o().object}),closeTrackingData:o().shape({name:o().string.isRequired,data:o().object}),viewTrackingData:o().shape({name:o().string.isRequired,data:o().object})},Wo.defaultProps={className:"",clickTrackingData:null,closeTrackingData:null,content:null,fullBorder:!1,isDismissable:!0,isIconHidden:!1,onClose:u.ZT,raw:!1,viewTrackingData:null};var Vo={email:/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i,phone:/^\+?\d{10,15}$/},Qo={email:/@/,phone:/^\+?[\d\-_\(\).]*\d[\d\-_\(\).]*$/},Ko=/\s/g,Xo=/[^\d+]/g,$o="email",Jo="phone",ea=[$o,Jo],ta={get generic(){return p.Z.t("shared.get_app_modal.an_error_occurred_please_try_again")},get input(){return p.Z.t("shared.get_app_modal.please_enter_a_valid_phone_number_or_email")},get email(){return p.Z.t("shared.get_app_modal.please_enter_a_valid_email")},get phone(){return p.Z.t("shared.get_app_modal.please_enter_a_valid_phone_number")},get twilio(){return p.Z.t("shared.get_app_modal.an_error_occurred_please_try_an")}};class na extends r.Component{constructor(e){super(e),yn(this,"handleInput",(e=>{this.setState({inputValue:e.target.value})})),yn(this,"handleError",(e=>{this.setState({error:e},this.trackSubmit.bind(this,false))})),yn(this,"track",((e,t)=>{var n=this.props.trackingPrefix?"".concat(this.props.trackingPrefix,":").concat(e):e;"function"===typeof this.props.track?this.props.track(n,t):(0,u.L9)(n,t)})),yn(this,"typingEmailAddress",(()=>{if(this.props.email_address)return this.state.inputValue.length&&0===this.props.email_address.indexOf(this.state.inputValue)})),yn(this,"handlePhoneInput",(e=>{var t=e.replace(Xo,"");t.match(Vo.phone)?this.sendLink(t):this.handleError(this.getErrorMessage(Jo))})),yn(this,"handleEmailInput",(e=>{e.match(Vo.email)?this.sendLink(e):this.handleError(this.getErrorMessage($o))})),yn(this,"handleSubmit",(e=>{if(e.preventDefault(),!this.state.loading){var t=this.state.inputValue.replace(Ko,"");this.props.twilio_enabled&&t.match(Qo.phone)?this.handlePhoneInput(t):t.match(Qo.email)?this.handleEmailInput(t):this.handleError(this.getErrorMessage("input"))}})),yn(this,"handleRequestSuccess",(e=>{if(e.success){this.props.handleLightboxClose();var t=this.getSuccessMessage(e);this.handleResponse(t,e)}else{var n=this.getErrorMessage(e.error);this.handleResponse(n,e)}this.setState({loading:!1})})),yn(this,"handleRequestFailure",(()=>{this.handleResponse(this.getErrorMessage("generic"),{success:!1,type:"server"}),this.setState({loading:!1})})),yn(this,"handleResponse",((e,t)=>{var n;switch(t.type){case Jo:n="text_sent";break;case $o:n="email_sent";break;default:n="server_error"}t.success&&e?this.props.handleSuccessMessage(e):t.error&&e&&this.setState({error:e}),this.track(n)})),yn(this,"handleKeydown",(e=>{var{enter:t}=u.keyMappings;e.which===t&&(e.preventDefault,this.handleSubmit(e))})),yn(this,"postRequest",(e=>{u.Be.post({type:"post",url:this.props.app_download_link,dataType:"json",body:{phone_or_email:e,doc_id:this.props.doc_id,doc_metadata:this.docMetadata()}},((e,t,n)=>{var r;try{r=JSON.parse(n)}catch(i){}!e&&r&&r.success?this.handleRequestSuccess(r):this.handleRequestFailure()}))})),yn(this,"docMetadata",(()=>{var{title:e}=this.props.document;return e?{title:e,is_audio_content:this.isAudioContent()}:{}})),yn(this,"trackSubmit",(e=>{this.track("submit:click",{item:"send link",input_valid:e,input_text:this.state.inputValue})})),yn(this,"sendLink",(e=>{this.trackSubmit(true),this.setState({loading:!0},this.postRequest(e))})),yn(this,"isAudioContent",(()=>{var{type:e}=this.props.document;return"audiobook"===e||"podcast"===e||"podcast_episode"===e})),yn(this,"getErrorMessage",(e=>this.props.twilio_enabled?ta[e]:"input"===e||ea.includes(e)?ta.email:ta.generic)),yn(this,"getSuccessMessage",(e=>e.type&&ea.includes(e.type)?e.type===Jo?p.Z.t("shared.get_app_modal.link_sent_please_check_your_mobile"):p.Z.t("get_app_modal.link_sent_email"):null)),yn(this,"getPlaceholder",(()=>this.typingEmailAddress()?this.props.email_address:this.props.twilio_enabled?p.Z.t("shared.get_app_modal.phone_or_email"):null)),yn(this,"getFormError",(()=>this.state.error?[{input:"email_phone",message:this.state.error}]:[])),yn(this,"getHeader",(()=>{var{type:e}=this.props.document;return"audiobook"===e||"podcast"===e||"podcast_episode"===e?p.Z.t("shared.get_app_modal.listen_offline_with_app"):p.Z.t("shared.get_app_modal.read_offline_with_app")})),yn(this,"renderHeader",(()=>r.createElement("h2",{id:"get_app_modal_header",className:"header",tabIndex:"-1"},this.getHeader()))),yn(this,"renderBackgroundImage",(()=>r.createElement("div",{className:s()("image",{audio_content:this.isAudioContent(),general_background:!this.props.document.coverImageUrl})},this.renderCoverImage()))),yn(this,"renderCoverImage",(()=>{var{coverImageUrl:e,title:t,type:n}=this.props.document;if(e)return r.createElement("img",{"aria-label":n,className:"document_cover",src:e,alt:t})})),yn(this,"renderSendButton",(()=>r.createElement(Un,{onClick:this.handleSubmit,className:"send_link_btn slim"},p.Z.t("shared.get_app_modal.send")))),yn(this,"renderAppButtons",(()=>r.createElement(vo,bn({className:"in_modal"},this.props)))),yn(this,"renderForm",(()=>{var e=this.getFormError();return r.createElement("form",{className:"form flex_row"},r.createElement(Wi,{label:this.props.twilio_enabled?p.Z.t("shared.get_app_modal.enter_your_phone_or_email"):p.Z.t("shared.get_app_modal.enter_your_email"),onChange:this.handleInput,name:"email_phone",value:this.state.email_phone,maxLength:100,placeholder:this.getPlaceholder(),onKeyDown:this.handleKeydown,errors:e,afterInputChildren:this.renderSendButton()}))})),this.state={error:null,inputValue:""}}render(){return r.createElement("div",{className:s()("wrapper__get_app_modal",this.props.className),"data-e2e":this.props["data-e2e"]},r.createElement("div",{className:"image_container"},this.renderBackgroundImage()),r.createElement("div",{className:"module_container flex_row"},r.createElement("div",{className:"form_section flex_col"},this.renderHeader(),r.createElement("div",{className:"subtitle"},p.Z.t("shared.get_app_modal.get_the_app_to_read_and_listen")),this.renderForm(),this.renderAppButtons())))}}function ra(){return r.createElement("svg",{width:"50",height:"20","aria-hidden":!0,role:"presentation"},r.createElement("g",{transform:"translate(48.759036, 76.981132)"},r.createElement("g",{transform:"translate(143.569904, 7.624798)"},r.createElement("path",{fill:"#fff",d:"M-168.8-74.8v5.9h-1.8v-14.5h4.9c1.2 0 2.3.4 3.1 1.3 1.7 1.6 1.8 4.2.2 5.9l-.2.2c-.9.8-1.9 1.2-3.1 1.2h-3.1zm0-6.9v5.1h3.1c.7 0 1.3-.3 1.8-.8 1-1 .9-2.6-.1-3.6-.5-.5-1.1-.7-1.8-.7h-3z"}),r.createElement("path",{fill:"#fff",d:"M-157.1-79.2c1.4 0 2.4.4 3.2 1.1.8.7 1.2 1.7 1.2 3v6.1h-1.8v-1.4h-.1c-.8 1.1-1.8 1.7-3 1.7-1.1 0-2-.3-2.7-1-.7-.6-1.1-1.5-1.1-2.4 0-1 .4-1.8 1.2-2.4.8-.6 1.8-.9 3.1-.9 1.1 0 2 .2 2.7.6v-.4c0-.6-.3-1.2-.8-1.7-.5-.4-1.1-.7-1.8-.7-1 0-1.8.4-2.4 1.3l-1.6-1c.8-1.3 2.1-1.9 3.9-1.9zm-2.4 7.2c0 .5.2.9.6 1.2.4.3.9.5 1.4.5.8 0 1.5-.3 2.1-.9.6-.6.9-1.3.9-2-.6-.5-1.4-.7-2.4-.7-.7 0-1.4.2-1.9.5-.4.4-.7.9-.7 1.4z"}),r.createElement("path",{fill:"#fff",d:"M-142.7-78.9l-6.1 14.3h-1.9l2.3-5-4-9.3h2l2.9 7.1 2.8-7.1z"})),r.createElement("g",{className:"super_g"},r.createElement("path",{fill:"#4285F4",d:"M-32.7-68.5c0-.6 0-1.1-.1-1.7h-7.7v3.2h4.4c-.2 1-.8 2-1.6 2.5v2.1h2.6c1.5-1.4 2.4-3.5 2.4-6.1z"}),r.createElement("path",{fill:"#34A853",d:"M-40.6-60.3c2.2 0 4.1-.7 5.4-2l-2.6-2.1c-.7.5-1.7.8-2.8.8-2.1 0-4-1.5-4.6-3.4h-2.7v2.1c1.4 2.8 4.2 4.6 7.3 4.6z"}),r.createElement("path",{fill:"#FBBC04",d:"M-45.2-67.1c-.3-1-.3-2.1 0-3.2v-2.1h-2.7c-1.2 2.3-1.2 5.1 0 7.5l2.7-2.2z"}),r.createElement("path",{fill:"#EA4335",d:"M-40.6-73.7c1.2 0 2.3.4 3.1 1.2l2.3-2.4c-1.5-1.4-3.5-2.2-5.5-2.2-3.1 0-5.9 1.8-7.3 4.6l2.7 2.1c.8-1.8 2.6-3.3 4.7-3.3z"}))))}na.propTypes={"data-e2e":o().string,androidStoreUrl:o().string.isRequired,app_download_link:o().string.isRequired,className:o().string,close_promo_url:o().string,doc_id:o().number,document:o().shape({coverImageUrl:o().string,title:o().string,type:o().string}),email_address:o().string,extra_classes:o().string,handleLightboxClose:o().func,handleSuccessMessage:o().func,iosStoreUrl:o().string.isRequired,language:o().string.isRequired,track:o().func,trackingPrefix:o().string,twilio_enabled:o().bool,__locale:o().string},na.defaultProps={"data-e2e":null,doc_id:null,document:{},email_address:null,extra_classes:"",handleLightboxClose:u.ZT,handleSuccessMessage:u.ZT,twilio_enabled:!1};var ia="GPayButton-module_wrapper__Bx36u";function oa(e){return r.createElement("a",{className:ia,onClick:t=>{t.preventDefault(),e.handleClick(t)},href:"#","data-e2e":e["data-e2e"]},r.createElement(ra,null),r.createElement(jn,{text:"google pay"}))}oa.propTypes={"data-e2e":o().string,handleClick:o().func.isRequired},oa.defaultProps={"data-e2e":null};var aa={wrapper:"Loaf-module_wrapper__pbJwf",title:"Loaf-module_title__yfSd6",image:"Loaf-module_image__401VY"};function sa(e){var{"data-e2e":t,label:n,href:i,to:o,onClick:a,thumbnailUrl:s,retinaThumbnailUrl:u}=e;return r.createElement(In,{className:aa.wrapper,href:i,to:o,"data-e2e":t,onClick:a},r.createElement("p",{className:aa.title},n),r.createElement("img",{className:aa.image,alt:n,src:s,srcSet:"".concat(u||s," 2x")}))}sa.propTypes={"data-e2e":o().string,label:o().string.isRequired,href:o().string,to:o().string,onClick:o().func,thumbnailUrl:o().string.isRequired,retinaThumbnailUrl:o().string},sa.defaultProps={"data-e2e":"",onClick:null,to:null,retinaThumbnailUrl:""};var ua=e=>{var{children:t}=e;return r.createElement("div",{className:"wrapper__notification_banner","data-e2e":e["data-e2e"]},t)};ua.propTypes={"data-e2e":o().string,children:o().any},ua.defaultProps={"data-e2e":null};class la extends r.Component{constructor(e){super(e),yn(this,"toggleShowPassword",(e=>{e.preventDefault(),this.setState({showPassword:!this.state.showPassword})})),this.state={showPassword:!1}}getInputType(){return this.state.showPassword?"text":"password"}renderShowButton(){var e=p.Z.t("shared.common.show");this.state.showPassword&&(e=p.Z.t("shared.common.hide"));var t=s()("password_toggle_btn no_spinner",{hide:this.state.showPassword});return r.createElement(Un,{className:t,onClick:this.toggleShowPassword,type:"button"},r.createElement("span",{key:"copy",className:"password_action"},e),r.createElement(jn,{key:"pw",text:p.Z.t("shared.common.forms.password")}))}render(){return r.createElement("div",{className:s()("wrapper__password_input",this.props.wrappingClass),"data-e2e":this.props["data-e2e"]},r.createElement(Wi,bn({},this.props,{afterInputChildren:this.renderShowButton(),type:this.getInputType(),"data-e2e":"password-text-input"})))}}la.propTypes=Wi.propTypes,la.defaultProps=Wi.defaultProps;var ca={wrapper:"PersonaIcon-module_wrapper__2tCjv",extra_large:"PersonaIcon-module_extra_large__Zd31F",icon:"PersonaIcon-module_icon__0Y4bf",image:"PersonaIcon-module_image__TLLZW",large:"PersonaIcon-module_large__IIACC",medium:"PersonaIcon-module_medium__whCly",small:"PersonaIcon-module_small__dXRnn",white:"PersonaIcon-module_white__OfDrF"},da="small";function pa(e){var{altText:t,className:n,iconClass:i,isAuthor:o,imageClass:a,imageUrl:u,initials:l,retinaImageUrl:c,size:d}=e,p=s()(ca.wrapper,n,{[ca[d]]:!0,[ca.white]:!o&&!u}),f=s()(ca.image,a),h=s()(ca.icon,i);return u?r.createElement("div",{className:p},r.createElement("img",{className:f,src:u,srcSet:"".concat(c," 2x"),alt:t})):!u&&o?r.createElement("div",{className:p},r.createElement("span",{"aria-hidden":"true"},l)):r.createElement("div",{className:p},r.createElement(qn,{className:h,icon:"user_circle"}))}pa.defaultProps={altText:"",iconClass:"",imageClass:"",size:da},pa.propTypes={altText:o().string,className:o().string,iconClass:o().string,imageClass:o().string,imageUrl:o().string,initials:o().string,isAuthor:o().bool.isRequired,retinaImageUrl:o().string,size:o().oneOf([da,"medium","large","extra_large"])};function fa(e){var t=s()("wrapper__pill_button",e.className,{pill_button_selected:e.selected});return r.createElement(Un,{className:t,href:e.href,onClick:e.onClick,"data-e2e":e["data-e2e"]},r.createElement("div",{className:"pill_button_visible"},e.children))}fa.propTypes={"data-e2e":o().string,children:o().oneOfType([o().array,o().element,o().string]),className:o().string,href:o().string,onClick:o().func,selected:o().bool},fa.defaultProps={"data-e2e":null,children:null,className:"",href:void 0,onClick:null,selected:!1};var ha="wrapper__pill_list",ga=e=>e.label.length,ma=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return r.createElement("ul",{key:t,className:"pill_list_row unstyled_list"},e.map(((e,t)=>{var{className:n,href:i,id:o,label:a,onClick:s,onInView:u,selected:l}=e,c=r.createElement(fa,{className:n,href:i,onClick:s,selected:l},a);return r.createElement("li",{key:o||t,className:"pill_list_item"},u?r.createElement(Bi,{onInView:u},c):c)})))},va=(e,t)=>t?(e=>(0,u.tt)(e,ga).map(ma))(e):ma(e);function _a(e){var{className:t,items:n,twoRowsOnMobile:i}=e;return r.createElement("div",{className:s()(ha,t),"data-e2e":e["data-e2e"]},va(n,i))}_a.propTypes={"data-e2e":o().string,className:o().string,items:o().arrayOf(o().shape({className:o().string,href:o().string,id:o().oneOfType([o().number,o().string]),label:o().string,onClick:o().func,onInView:o().func,selected:o().bool})),twoRowsOnMobile:o().bool},_a.defaultProps={"data-e2e":null,className:"",items:[],twoRowsOnMobile:!1};var Aa={wrapper:"PillList-ds2-module_wrapper__Xx0E-",listItem:"PillList-ds2-module_listItem__Lm-2g"};function ya(e){var{"data-e2e":t,listItems:n}=e;return r.createElement("ul",{className:Aa.wrapper,"data-e2e":t},n.map(((e,t)=>{var{className:n,href:i,id:o,label:a,onClick:s,onInView:u,selected:l}=e;return r.createElement("li",{key:o||t,className:Aa.listItem},u?r.createElement(Bi,{onInView:u},r.createElement(h.hS,{className:n,href:i,isSelected:l,label:a,onClick:s})):r.createElement(h.hS,{className:n,href:i,isSelected:l,label:a,onClick:s}))})))}function ba(){return r.createElement("svg",{height:"20",width:"80","aria-hidden":!0,role:"presentation"},r.createElement("g",{fill:"none"},r.createElement("path",{d:"M29.814 4.354H25.4a.613.613 0 00-.606.518l-1.784 11.314a.368.368 0 00.364.424h2.106c.302 0 .56-.22.606-.518l.481-3.051a.613.613 0 01.606-.518h1.396c2.907 0 4.584-1.407 5.022-4.194.198-1.22.009-2.177-.562-2.848-.627-.737-1.74-1.127-3.216-1.127zm.509 4.132c-.242 1.584-1.451 1.584-2.621 1.584h-.666l.467-2.957a.368.368 0 01.363-.31h.306c.796 0 1.548 0 1.936.454.232.27.303.673.215 1.23zm12.68-.05H40.89a.368.368 0 00-.364.31l-.093.59-.148-.213c-.457-.664-1.477-.886-2.495-.886-2.335 0-4.33 1.768-4.718 4.249-.202 1.237.085 2.42.787 3.246.644.758 1.566 1.074 2.662 1.074 1.88 0 2.924-1.21 2.924-1.21l-.094.588a.368.368 0 00.363.426h1.903c.302 0 .559-.22.606-.518l1.142-7.232a.366.366 0 00-.362-.425zm-2.946 4.112c-.203 1.207-1.162 2.017-2.383 2.017-.614 0-1.104-.197-1.42-.57-.311-.37-.43-.897-.33-1.484.19-1.197 1.164-2.034 2.367-2.034.6 0 1.088.2 1.409.576.322.38.45.91.357 1.495zm14.198-4.113h-2.123a.615.615 0 00-.507.27l-2.929 4.313-1.241-4.145a.615.615 0 00-.589-.438H44.78a.368.368 0 00-.349.487l2.339 6.863-2.199 3.104a.368.368 0 00.3.58h2.12c.202.001.39-.097.504-.263l7.062-10.193a.368.368 0 00-.302-.578z",fill:"#253b80"}),r.createElement("path",{d:"M61.285 4.354h-4.413a.613.613 0 00-.605.518l-1.784 11.314a.367.367 0 00.362.424h2.265c.21 0 .39-.154.423-.362l.506-3.207a.613.613 0 01.606-.518h1.396c2.907 0 4.584-1.407 5.022-4.194.198-1.22.008-2.177-.563-2.848-.626-.737-1.738-1.127-3.215-1.127zm.51 4.132c-.241 1.584-1.451 1.584-2.621 1.584h-.666l.468-2.957a.366.366 0 01.363-.31h.305c.796 0 1.548 0 1.937.454.231.27.302.673.213 1.23zm12.679-.05h-2.112a.366.366 0 00-.363.31l-.093.59-.149-.213c-.457-.664-1.476-.886-2.494-.886-2.335 0-4.329 1.768-4.717 4.249-.201 1.237.084 2.42.786 3.246.645.758 1.565 1.074 2.662 1.074 1.88 0 2.924-1.21 2.924-1.21l-.094.588a.368.368 0 00.364.426h1.902c.302 0 .559-.22.605-.518l1.143-7.232a.368.368 0 00-.364-.425zm-2.946 4.112c-.202 1.207-1.162 2.017-2.383 2.017-.613 0-1.104-.197-1.42-.57-.311-.37-.429-.897-.33-1.484.19-1.197 1.164-2.034 2.367-2.034.6 0 1.088.2 1.409.576.323.38.45.91.357 1.495zm5.437-7.883l-1.811 11.52a.367.367 0 00.362.425h1.82c.303 0 .56-.219.607-.518L79.728 4.78a.368.368 0 00-.362-.425h-2.039a.368.368 0 00-.362.31z",fill:"#179bd7"}),r.createElement("path",{d:"M4.688 18.809l.337-2.143-.751-.018H.684L3.18.834A.204.204 0 013.38.66h6.052c2.009 0 3.395.418 4.12 1.243.339.387.555.791.66 1.237.109.467.11 1.025.004 1.705l-.008.05v.436l.34.193c.258.13.491.308.686.523.29.331.479.752.558 1.25.082.514.055 1.124-.08 1.815-.154.795-.405 1.487-.743 2.053-.298.508-.699.947-1.177 1.29-.45.32-.983.561-1.586.716a7.908 7.908 0 01-1.982.23h-.47c-.338 0-.665.12-.921.338-.257.22-.427.523-.48.857l-.036.193-.596 3.777-.027.139c-.007.044-.02.066-.038.08a.1.1 0 01-.062.023z",fill:"#253b80"}),r.createElement("path",{d:"M14.87 4.946c-.018.116-.039.234-.062.355-.798 4.098-3.529 5.513-7.016 5.513H6.017a.862.862 0 00-.852.73l-.91 5.766-.257 1.634a.454.454 0 00.448.525h3.15c.372 0 .69-.27.748-.639l.03-.16.594-3.762.038-.207a.757.757 0 01.748-.64h.471c3.051 0 5.44-1.238 6.138-4.823.291-1.497.14-2.748-.631-3.627a3.011 3.011 0 00-.862-.665z",fill:"#179bd7"}),r.createElement("path",{d:"M14.035 4.614a6.295 6.295 0 00-.776-.173 9.86 9.86 0 00-1.565-.114H6.95a.756.756 0 00-.747.64l-1.01 6.391-.028.187a.862.862 0 01.852-.73h1.775c3.487 0 6.218-1.417 7.016-5.514.024-.121.044-.24.062-.355a4.254 4.254 0 00-.835-.332z",fill:"#222d65"}),r.createElement("path",{d:"M6.203 4.967a.754.754 0 01.747-.64h4.744a9.86 9.86 0 011.565.115c.324.05.643.127.955.228.236.078.454.17.656.276.238-1.514-.002-2.545-.82-3.478C13.147.44 11.518 0 9.434 0H3.382a.865.865 0 00-.855.731L.007 16.708a.52.52 0 00.512.602h3.736l.939-5.952z",fill:"#253b80"})))}ya.propTypes={"data-e2e":o().string,listItems:o().arrayOf(o().shape({className:o().string,href:o().string,id:o().oneOfType([o().number,o().string]),label:o().string,onClick:o().func,onInView:o().func,selected:o().bool})).isRequired},ya.defaultProps={"data-e2e":null};var Ea="gold",wa="white",xa={wrapper:"PayPalButton-module_wrapper__rj4v8",white:"PayPalButton-module_white__GLjG4"};function Ia(e){return r.createElement("a",{className:s()(xa.wrapper,xa[e.style]),onClick:t=>{t.preventDefault(),e.handleClick(t)},href:"#","data-e2e":e["data-e2e"]},r.createElement(ba,null),r.createElement(jn,{text:"paypal"}))}Ia.propTypes={"data-e2e":o().string,handleClick:o().func.isRequired,style:o().oneOf([Ea,wa])},Ia.defaultProps={"data-e2e":null,style:Ea};var Ma={wrapper:"LoggedOutBanner-module_wrapper__hlV-B",bestsellersImage:"LoggedOutBanner-module_bestsellersImage__ipVxk",button:"LoggedOutBanner-module_button__4oyFC",buttonSmall:"LoggedOutBanner-module_buttonSmall__-AgMs",contentWrapper:"LoggedOutBanner-module_contentWrapper__Hh7mK",header:"LoggedOutBanner-module_header__bsix8",imageWrapper:"LoggedOutBanner-module_imageWrapper__IB4O-",imageWrapperSmall:"LoggedOutBanner-module_imageWrapperSmall__RlpcK",subHeaderWrapper:"LoggedOutBanner-module_subHeaderWrapper__t1mgp"};class Sa extends r.Component{constructor(e){super(e),yn(this,"handleFreeTrialClick",(e=>{var{handleLoggedOutBannerCta:t}=this.props;e.preventDefault(),t(this.buttonCtaUrl)}));var{eligibleForFreeTrial:t,isAborted:n,isDunning:r,isLoggedIn:i,isPaused:o,paymentProfileUpdateAccountUrl:a,subscribeUrl:s,trialDuration:u,unpauseAccountUrl:l}=e,c=p.Z.t("shared.start_exploring"),d=s;!i||t?c=p.Z.t("shared.trial_duration.read_free_days",{trialDuration:u}):r?(c=p.Z.t("account_settings.show.restart_membership"),a&&(d=a)):o?(c=p.Z.t("shared.resume_membership"),l&&(d=l)):n&&(c=p.Z.t("account_settings.show.restart_membership")),this.buttonCtaText=c,this.buttonCtaUrl=d}render(){var{"data-e2e":e,page:t,price:n}=this.props;return r.createElement(on.T5,{className:Ma.wrapper,"data-e2e":e},r.createElement(on.Jn,null,r.createElement(on.C4,{xl:7,m:4},r.createElement("div",{className:Ma.contentWrapper},r.createElement("p",{className:Ma.header},p.Z.t("bestsellers.promo.enjoy_bestselling_titles_when_subscribed")),r.createElement("div",{className:Ma.subHeaderWrapper},r.createElement("span",null,p.Z.t("browse_page.promo.instant_access",{price:n}))," ",r.createElement("span",null,p.Z.t("browse.promo.cancel_anytime"))),r.createElement(h.d7,{atAndBelow:!0,size:f.zf.S},r.createElement(h.KM,{buttonStyle:f.xw.MONOTONE_BLACK,className:Ma.button,"data-e2e":"cta-button",onClick:this.handleFreeTrialClick,size:f.zf.L},this.buttonCtaText)),r.createElement(h.d7,{above:!0,size:f.zf.S},r.createElement(h.KM,{buttonStyle:f.xw.MONOTONE_BLACK,className:Ma.buttonSmall,"data-e2e":"cta-button",onClick:this.handleFreeTrialClick,size:f.zf.S},this.buttonCtaText)))),r.createElement(on.C4,{xl:5,m:4,hideBelow:"m"},r.createElement("div",{className:Ma.imageWrapper},r.createElement("img",{className:s()(Ma["".concat(t,"Image")]),alt:p.Z.t("browse.promo.scribd_also_available_on_mobile_devices"),role:"presentation",src:(0,u.up)(sn())})))),r.createElement(on.Jn,null,r.createElement(on.C4,{s:4,hideAbove:"s"},r.createElement("div",{className:Ma.imageWrapperSmall},r.createElement("img",{className:s()(Ma["".concat(t,"Image")]),alt:p.Z.t("browse.promo.scribd_also_available_on_mobile_devices"),role:"presentation",src:(0,u.up)(sn())})))))}}Sa.propTypes={"data-e2e":o().string,eligibleForFreeTrial:o().bool.isRequired,handleLoggedOutBannerCta:o().func.isRequired,isAborted:o().bool,isDunning:o().bool,isLoggedIn:o().bool.isRequired,isPaused:o().bool,isSubscriber:o().bool,page:o().string.isRequired,paymentProfileUpdateAccountUrl:o().string,price:o().string.isRequired,rootUrl:o().string.isRequired,subscribeUrl:o().string.isRequired,trialDuration:o().number.isRequired,unpauseAccountUrl:o().string};var Ca="ac-recaptcha",Na="ReCaptcha-module_wrapper__f-aXJ",Ta="ReCaptcha-module_recaptchaDisclaimer__E8VyX";class La extends r.PureComponent{componentDidMount(){var e,t,n,r;this.props.reCaptchaEnabled&&(e=Ca,t=this.props.reCaptchaSiteKey,n=this.props.captchaType,r=this.props.onResponse,"undefined"!==typeof window&&(window.reCaptchaOnLoad=()=>{window.acReCaptchaId=window.grecaptcha.enterprise.render(e,vn({sitekey:t,callback:r,size:window.innerWidth>u.AV.breakpoint_450?"normal":"compact"},n===f._w.TYPES.INVISIBLE&&{size:"invisible"}))},window.grecaptcha&&window.reCaptchaOnLoad()),function(){if("undefined"!==typeof window&&!window.grecaptcha){var e=document.createElement("script");e.dataset.osano=f.wC.ESSENTIAL,e.src="https://www.google.com/recaptcha/enterprise.js?onload=reCaptchaOnLoad&render=explicit",e.type="text/javascript",e.async=!0,e.defer=!0,document.body.appendChild(e)}}())}getDisclaimerString(){var e='\n '.concat(p.Z.t("shared.common.opens_in_a_new_window"),"\n ");return p.Z.t("shared.account_creation.recaptcha_disclaimer",{interpolation:{escapeValue:!1},opens_in_new_window:e,policy_href:"https://policies.google.com/terms",privacy_href:"https://policies.google.com/privacy"})}renderDisclaimer(){if(this.props.showDisclaimer)return r.createElement("div",{className:Ta,dangerouslySetInnerHTML:{__html:this.getDisclaimerString()}})}renderCaptcha(){return r.createElement("div",{className:"recaptcha_".concat(this.props.captchaType)},r.createElement("div",{id:Ca}))}render(){return this.props.reCaptchaEnabled?r.createElement("div",{className:s()(this.props.className,Na),"data-e2e":this.props["data-e2e"]},this.renderCaptcha(),this.renderDisclaimer()):null}}function Da(e){var{"data-e2e":t,className:n,size:i,tooltipContent:o}=e;return r.createElement(h.hU,{className:n,"data-e2e":t,disabled:!0,icon:On,size:i,tooltipContent:o})}function Oa(e){var{"data-e2e":t,buttonStyle:n,className:i,onClick:o,size:a,subscribeUrl:s,tagName:l}=e,c=l===f.iG.TEXT_BUTTON?s:void 0,d={"data-e2e":t,buttonStyle:n,className:i,href:c,onClick:e=>{c&&e.preventDefault(),o(),(0,u.uX)(s)},size:a},h=qr(l);return r.createElement(h,d,p.Z.t("shared.common.restart_subscription"))}La.propTypes={captchaType:o().oneOf(Object.values(f._w.TYPES)),className:o().string,"data-e2e":o().string,onResponse:o().func,reCaptchaEnabled:o().bool,reCaptchaSiteKey:o().string,showDisclaimer:o().bool},La.defaultProps={captchaType:f._w.TYPES.INVISIBLE,className:"","data-e2e":"recaptcha",onResponse:u.ZT,reCaptchaEnabled:!0,reCaptchaSiteKey:f._w.SITE_KEYS.INVISIBLE,showDisclaimer:!0},Da.propTypes={"data-e2e":o().string,className:o().string,size:o().oneOf([f.zf.L,f.zf.S]),tooltipContent:o().string},Da.defaultProps={"data-e2e":"loading-btn",className:null,size:f.zf.L,tooltipContent:""},Oa.propTypes={"data-e2e":o().string,buttonStyle:o().oneOf(Object.values(f.xw)),className:o().string,onClick:o().func,size:o().oneOf([f.zf.L,f.zf.S]),subscribeUrl:o().string.isRequired,tagName:o().oneOf(Object.values(f.iG))},Oa.defaultProps={"data-e2e":"restart-subscription-btn",buttonStyle:f.xw.DEFAULT,className:null,onClick:u.ZT,size:f.zf.L,tagName:f.iG.PRIMARY_BUTTON};var ka=(0,g.$j)(kr)(Oa);function Ra(e){var{"data-e2e":t,onClick:n,url:i}=e;return r.createElement(Ir,{href:i,"data-e2e":t,onClick:n},p.Z.t("shared.common.resume_subscription"))}Ra.propTypes={"data-e2e":o().string,onClick:o().func,url:o().string},Ra.defaultProps={"data-e2e":"resume-subscription",onClick:u.ZT};var ja=e=>({url:Zr(e)===Fr.PAUSED?e.static.routes.unpauseAccountUrl:e.static.routes.subscribeUrl});(0,g.$j)(ja)(Ra);function Pa(e){var{"data-e2e":t,buttonStyle:n,className:i,onClick:o,size:a,tagName:s,url:l}=e,c=s===f.iG.TEXT_BUTTON?l:void 0,d={"data-e2e":t,buttonStyle:n,className:i,href:c,onClick:e=>{c&&e.preventDefault(),o(),(0,u.uX)(l)},size:a},h=qr(s);return r.createElement(h,d,p.Z.t("shared.common.resume_subscription"))}Pa.propTypes={"data-e2e":o().string,buttonStyle:o().oneOf(Object.values(f.xw)),className:o().string,onClick:o().func,size:o().oneOf([f.zf.L,f.zf.S]),tagName:o().oneOf(Object.values(f.iG)),url:o().string},Pa.defaultProps={"data-e2e":"resume-subscription-btn",buttonStyle:f.xw.DEFAULT,className:null,onClick:u.ZT,size:f.zf.L,tagName:f.iG.PRIMARY_BUTTON};var Ua=(0,g.$j)(ja)(Pa),za="ShareButtons-module_button__jxrq6",Ba="ShareButtons-module_icon__QEwOA",qa="ShareButtons-module_label__kkzkd";function Fa(e){var{className:t,onClick:n,title:i,message:o}=e,a="mailto:?subject=".concat(i,"&body=").concat(o);return r.createElement(Un,{className:s()(za,t),role:"menuitem",type:"button",href:a,"aria-label":p.Z.t("shared.common.share_on.email"),onClick:()=>n("email")},r.createElement(qn,{className:Ba,icon:"email"}),r.createElement("span",{className:qa},p.Z.t("shared.common.share_on.email")),r.createElement(jn,null,p.Z.t("shared.common.share_on.email_mail_client")))}Fa.defaultProps={title:"",message:"",onClick:u.ZT},Fa.propTypes={className:o().string,message:o().string,title:o().string,onClick:o().func};var Za={exports:{}};var Ga,Ya,Ha,Wa;function Va(){if(Ya)return Ga;Ya=1;return Ga="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}Za.exports=function(){if(Wa)return Ha;Wa=1;var e=Va();function t(){}function n(){}return n.resetWarningCache=t,Ha=function(){function r(t,n,r,i,o,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var Qa={wrapper:"LabelIconButton-module_wrapper__R1O28",buttonWrapper:"LabelIconButton-module_buttonWrapper__zE5f5",labelWrapper:"LabelIconButton-module_labelWrapper__iep-0",disabled:"LabelIconButton-module_disabled__EAh1G",large:"LabelIconButton-module_large__B41Wd"},Ka={LARGE:"large"},Xa=e=>{var{"data-e2e":t,className:n,disabled:i,onClick:o,onFocus:a,onKeyDown:l,onKeyPress:c,onKeyUp:d,onMouseDown:p,href:f,icon:h,iconClassName:g,label:m,nodeRef:v,rel:_,role:A,size:y,target:b}=e,E=(0,u.Nn)(f,b),w="button";return E&&(w="a"),r.createElement("div",{className:s()(Qa.wrapper,n,{[Qa.disabled]:i}),"data-e2e":t},r.createElement(w,{"aria-disabled":i?"true":"false","aria-label":m,className:s()(Qa.buttonWrapper,Qa[y]),href:f,onClick:o,onFocus:a,onKeyDown:l,onKeyPress:c,onKeyUp:d,onMouseDown:p,rel:E?_:null,ref:v,role:A,tabIndex:"-1",target:b},r.createElement(h,{"data-e2e":"btn-icon",className:g})),r.createElement("div",{className:Qa.labelWrapper},m))};function $a(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"===typeof i?i(n,r,e):t(i)}}}}Xa.propTypes={"data-e2e":Za.exports.string,className:Za.exports.string,disabled:Za.exports.bool,onClick:Za.exports.func,onFocus:Za.exports.func,onKeyDown:Za.exports.func,onKeyPress:Za.exports.func,onKeyUp:Za.exports.func,onMouseDown:Za.exports.func,href:Za.exports.string,icon:Za.exports.elementType.isRequired,iconClassName:Za.exports.string,label:Za.exports.string.isRequired,nodeRef:Za.exports.oneOfType([Za.exports.func,Za.exports.shape({current:Za.exports.any})]),rel:Za.exports.string,role:Za.exports.string,size:Za.exports.oneOf(Object.values(Ka)).isRequired,tabIndex:Za.exports.string,target:Za.exports.string},Xa.defaultProps={"data-e2e":null,disabled:!1,iconClassName:"",onClick:null,rel:null,role:"button"},$a().withExtraArgument=$a,function(e){var t,n=e.Symbol;"function"===typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable"}("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:e);var Ja=function(){return Math.random().toString(36).substring(7).split("").join(".")};function es(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:ss(e)?2:us(e)?3:0}function os(e,t){return 2===is(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function as(e,t,n){var r=is(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function ss(e){return Rs&&e instanceof Map}function us(e){return js&&e instanceof Set}function ls(e){return e.o||e.t}function cs(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Fs(e);delete t[Bs];for(var n=qs(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=ps),Object.freeze(e),t&&rs(e,(function(e,t){return ds(t,!0)}),!0))}function ps(){es(2)}function fs(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function hs(e){var t=Zs[e];return t||es(18,e),t}function gs(){return Os}function ms(e,t){t&&(hs("Patches"),e.u=[],e.s=[],e.v=t)}function vs(e){_s(e),e.p.forEach(ys),e.p=null}function _s(e){e===Os&&(Os=e.l)}function As(e){return Os={p:[],l:Os,h:e,m:!0,_:0}}function ys(e){var t=e[Bs];0===t.i||1===t.i?t.j():t.g=!0}function bs(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||hs("ES5").S(t,e,r),r?(n[Bs].P&&(vs(t),es(4)),ns(e)&&(e=Es(t,e),t.l||xs(t,e)),t.u&&hs("Patches").M(n[Bs],e,t.u,t.s)):e=Es(t,n,[]),vs(t),t.u&&t.v(t.u,t.s),e!==Us?e:void 0}function Es(e,t,n){if(fs(t))return t;var r=t[Bs];if(!r)return rs(t,(function(i,o){return ws(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return xs(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=cs(r.k):r.o;rs(3===r.i?new Set(i):i,(function(t,o){return ws(e,r,i,t,o,n)})),xs(e,i,!1),n&&e.u&&hs("Patches").R(r,n,e.u,e.s)}return r.o}function ws(e,t,n,r,i,o){if(ts(i)){var a=Es(e,i,o&&t&&3!==t.i&&!os(t.D,r)?o.concat(r):void 0);if(as(n,r,a),!ts(a))return;e.m=!1}if(ns(i)&&!fs(i)){if(!e.h.N&&e._<1)return;Es(e,i),t&&t.A.l||xs(e,i)}}function xs(e,t,n){void 0===n&&(n=!1),e.h.N&&e.m&&ds(t,n)}function Is(e,t){var n=e[Bs];return(n?ls(n):e)[t]}function Ms(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Ss(e){e.P||(e.P=!0,e.l&&Ss(e.l))}function Cs(e){e.o||(e.o=cs(e.t))}function Ns(e,t,n){var r=ss(t)?hs("MapSet").T(t,n):us(t)?hs("MapSet").F(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:gs(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=Gs;n&&(i=[r],o=Ys);var a=Proxy.revocable(i,o),s=a.revoke,u=a.proxy;return r.k=u,r.j=s,u}(t,n):hs("ES5").J(t,n);return(n?n.A:gs()).p.push(r),r}function Ts(e){return ts(e)||es(22,e),function e(t){if(!ns(t))return t;var n,r=t[Bs],i=is(t);if(r){if(!r.P&&(r.i<4||!hs("ES5").K(r)))return r.t;r.I=!0,n=Ls(t,i),r.I=!1}else n=Ls(t,i);return rs(n,(function(t,i){r&&function(e,t){return 2===is(e)?e.get(t):e[t]}(r.t,t)===i||as(n,t,e(i))})),3===i?new Set(n):n}(e)}function Ls(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return cs(e)}Ja(),Ja();var Ds,Os,ks="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Rs="undefined"!=typeof Map,js="undefined"!=typeof Set,Ps="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Us=ks?Symbol.for("immer-nothing"):((Ds={})["immer-nothing"]=!0,Ds),zs=ks?Symbol.for("immer-draftable"):"__$immer_draftable",Bs=ks?Symbol.for("immer-state"):"__$immer_state",qs="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Fs=Object.getOwnPropertyDescriptors||function(e){var t={};return qs(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Zs={},Gs={get:function(e,t){if(t===Bs)return e;var n=ls(e);if(!os(n,t))return function(e,t,n){var r,i=Ms(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!ns(r)?r:r===Is(e.t,t)?(Cs(e),e.o[t]=Ns(e.A.h,r,e)):r},has:function(e,t){return t in ls(e)},ownKeys:function(e){return Reflect.ownKeys(ls(e))},set:function(e,t,n){var r=Ms(ls(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=Is(ls(e),t),o=null==i?void 0:i[Bs];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,i)&&(void 0!==n||os(e.t,t)))return!0;Cs(e),Ss(e)}return e.o[t]=n,e.D[t]=!0,!0},deleteProperty:function(e,t){return void 0!==Is(e.t,t)||t in e.t?(e.D[t]=!1,Cs(e),Ss(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ls(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){es(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){es(12)}},Ys={};rs(Gs,(function(e,t){Ys[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Ys.deleteProperty=function(e,t){return Gs.deleteProperty.call(this,e[0],t)},Ys.set=function(e,t,n){return Gs.set.call(this,e[0],t,n,e[0])};var Hs=function(){function e(e){this.O=Ps,this.N=!1,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var t=e.prototype;return t.produce=function(e,t,n){if("function"==typeof e&&"function"!=typeof t){var r=t;t=e;var i=this;return function(e){var n=this;void 0===e&&(e=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s1?n-1:0),o=1;o=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var i=hs("Patches").$;return ts(e)?i(e,t):this.produce(e,(function(e){return i(e,t.slice(n+1))}))},e}(),Ws=new Hs;Ws.produce,Ws.produceWithPatches.bind(Ws),Ws.setAutoFreeze.bind(Ws),Ws.setUseProxies.bind(Ws),Ws.applyPatches.bind(Ws),Ws.createDraft.bind(Ws),Ws.finishDraft.bind(Ws);var Vs="toasts/CREATE_TOAST",Qs="notice",Ks={XL:"xl",L:"l",M:"m",S:"s",XS:"xs",XXS:"xxs"};function Xs(e,t){return e===t}Object.values(Ks);var $s=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:Xs,n=null,r=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;ie.compilation.modules,function(e){return e.quickview.activeCarouselId}],((e,t)=>t?e.findIndex((e=>e.uuid===t)):null));$s([e=>e.compilation.modules,function(e){return e.quickview.previousActiveCarouselId}],((e,t)=>t?e.findIndex((e=>e.uuid===t)):null));var Js={createToast:e=>({type:Vs,props:e})};"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self&&self;function eu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tu={exports:{}};var nu,ru,iu,ou;function au(){if(ru)return nu;ru=1;return nu="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}tu.exports=function(){if(ou)return iu;ou=1;var e=au();function t(){}function n(){}return n.resetWarningCache=t,iu=function(){function r(t,n,r,i,o,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var su={exports:{}};!function(e,t){var n;n=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=i()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=i()(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==("undefined"===typeof e?"undefined":o(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}(),u=s,l=n(1),c=n.n(l),d=n(2),p=n.n(d),f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof e.action?e.action:this.defaultAction,this.target="function"===typeof e.target?e.target:this.defaultTarget,this.text="function"===typeof e.text?e.text:this.defaultText,this.container="object"===f(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=p()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new u({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return m("action",e)}},{key:"defaultTarget",value:function(e){var t=m("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return m("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"===typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),t}(c.a);function m(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}t.default=g}]).default},e.exports=n()}(su);var uu=eu(su.exports),lu="CopyButton-module_icon__xTwXN";function cu(e){var{createToast:t,onClick:n}=e,i=(0,r.useRef)(null),o=()=>{t({content:p.Z.t("content_preview.social_media_share_modal.linked_copied"),showIcon:!1,type:Qs})};return(0,r.useEffect)((()=>{var e=new uu(i.current,{text:()=>window.location.href});return()=>e.destroy()}),[]),r.createElement(Xa,{iconClassname:lu,label:p.Z.t("doc_page.share_drawer.copy_link"),icon:Re.rUS,onClick:()=>n("copy",o),nodeRef:i,role:"menuitem",size:Ka.LARGE})}cu.propTypes={createToast:tu.exports.func.isRequired,onClick:tu.exports.func.isRequired},(0,g.$j)(null,Js)(cu),tu.exports.string,tu.exports.func.isRequired,tu.exports.string;var du="facebook-jssdk",pu=!1,fu=e=>{if(!pu&&!document.getElementById(du)){var t=document.getElementsByTagName("script")[0],n=document.createElement("script");n.id=du,n.async=!0,n.src="https://connect.facebook.net/en_US/sdk.js",n.addEventListener("load",(()=>{pu=!0,e()})),t.parentNode.insertBefore(n,t)}},hu=e=>{window.fbAsyncInit=window.fbAsyncInit||(()=>{window.FB.init({appId:e,status:!1,cookie:!0,xfbml:!1,oauth:!0,version:"v6.0"})})};function gu(e,t){var n=e;if(t){var r=new URLSearchParams(Object.entries(t));n="".concat(e,"?").concat(r.toString())}var i=window.open(n,"","width=500,height=450,resizable=1,scrollbars=1");i.focus&&i.focus()}tu.exports.string.isRequired,tu.exports.string.isRequired,tu.exports.func.isRequired,tu.exports.string.isRequired,tu.exports.func.isRequired,tu.exports.string,tu.exports.string.isRequired,tu.exports.func.isRequired,tu.exports.string,tu.exports.string.isRequired;var mu="FacebookButton-module_icon__p8Uwl";function vu(e){var{appId:t,className:n,url:i,onClick:o}=e,a=()=>{!function(e,t){try{document.cookie}catch(n){return}pu?t():(hu(e),fu(t))}(t,(()=>{window.FB.ui({method:"share",display:"popup",href:i})}))};return r.createElement(Un,{className:s()(za,n),role:"menuitem","aria-label":p.Z.t("shared.common.share_on.facebook"),onClick:e=>{e.preventDefault(),o("facebook",a)}},r.createElement(qn,{className:s()(Ba,mu),icon:"facebook"}),r.createElement("span",{className:qa},p.Z.t("shared.common.share_on.facebook")),r.createElement(jn,null,p.Z.t("shared.common.share_on.facebook_new_window")))}vu.defaultProps={onClick:(e,t)=>t()},vu.propTypes={appId:o().string.isRequired,className:o().string,url:o().string.isRequired,onClick:o().func};var _u="LinkedInButton-module_icon__yTfDQ";function Au(e){var{className:t,url:n,onClick:i,title:o}=e,a=()=>{gu("https://linkedin.com/sharing/share-offsite",{title:o,url:n})};return r.createElement(Un,{className:s()(za,t),role:"menuitem",type:"button","aria-label":p.Z.t("shared.common.share_on.linkedin"),onClick:()=>i("linkedin",a)},r.createElement(qn,{className:s()(Ba,_u),icon:"linkedin"}),r.createElement("span",{className:qa},p.Z.t("shared.common.share_on.linkedin")),r.createElement(jn,null,p.Z.t("shared.common.share_on.linkedin_new_window")))}Au.defaultProps={onClick:(e,t)=>t(),title:""},Au.propTypes={className:o().string,onClick:o().func,title:o().string,url:o().string.isRequired};var yu="PinterestButton-module_icon__H6Zlx";function bu(e){var{className:t,url:n,onClick:i,title:o,imageUrl:a}=e,u=()=>{gu("http://www.pinterest.com/pin/create/button/",{url:n,description:o,media:a})};return r.createElement(Un,{className:s()(za,t),role:"menuitem",type:"button","aria-label":p.Z.t("shared.common.share_on.pinterest"),onClick:()=>i("pinterest",u)},r.createElement(qn,{className:s()(Ba,yu),icon:"pinterest"}),r.createElement("span",{className:qa},p.Z.t("shared.common.share_on.pinterest")),r.createElement(jn,null,p.Z.t("shared.common.share_on.pinterest_new_window")))}bu.defaultProps={title:"",onClick:(e,t)=>t()},bu.propTypes={className:o().string,imageUrl:o().string.isRequired,title:o().string,url:o().string.isRequired,onClick:o().func};var Eu="TwitterButton-module_icon__fRhdH";function wu(e){var{className:t,url:n,onClick:i,shareText:o}=e,a=()=>{gu("https://twitter.com/share",{url:n,text:o,hashtags:"ReadMore"})};return r.createElement(Un,{className:s()(za,t),role:"menuitem",type:"button","aria-label":p.Z.t("shared.common.share_on.twitter"),onClick:()=>i("twitter",a)},r.createElement(qn,{className:s()(Ba,Eu),icon:"twitter"}),r.createElement("span",{className:qa},p.Z.t("shared.common.share_on.twitter")),r.createElement(jn,null,p.Z.t("shared.common.share_on.twitter_new_window")))}wu.defaultProps={onClick:(e,t)=>t(),shareText:""},wu.propTypes={shareText:o().string,className:o().string,url:o().string.isRequired,onClick:o().func};var xu=150;function Iu(e){return e.length<=xu?e:"".concat(e.slice(0,xu),"\u2026")}function Mu(e){var{"data-e2e":t,children:n,className:i,as:o,onClick:a,isSaved:u,title:l,isDisabled:c,tabIndex:d}=e,[f,h]=(0,r.useState)(!1),g=u?p.Z.t("shared.common.library.remove_with_title",{title:Iu(l)}):p.Z.t("shared.common.library.add_with_title",{title:Iu(l)}),m=function(){var e=An((function*(){try{h(!0),yield a(u)}finally{h(!1)}}));return function(){return e.apply(this,arguments)}}();return r.createElement(o,{"aria-label":g,className:s()(i,{loading:f||c,disabled:f||c}),"data-e2e":t,disabled:f||c,onClick:m,tabIndex:d},r.Children.map(n,(e=>(0,r.cloneElement)(e,{isSaved:u,isLoading:f}))))}Mu.defaultProps={"data-e2e":null,className:"",as:To,isDisabled:!1,requireConfirmation:!1},Mu.propTypes={"data-e2e":o().string,children:o().node.isRequired,as:o().elementType,isDisabled:o().bool,className:o().string,tabIndex:o().oneOfType([o().number,o().string]),id:o().number.isRequired,onClick:o().func.isRequired,page:o().string.isRequired,isSaved:o().bool.isRequired,title:o().string.isRequired,requireConfirmation:o().bool};var Su=(e,t)=>({isSaved:!!e.savedDocuments.saved[t.id]||!!e.savedDocuments.finished[t.id]}),Cu=(e,t)=>{var{id:n,page:r,requireConfirmation:i,source:o}=t;return{onClick:t=>{var a=t?"remove":"add";return(0,u.L9)("library_btn:add_to_library:click",{doc_id:n,action:a,page:r,source:o}),e((0,he.Z)((()=>e(function(e,t,n){return t?n?(0,pe.Z)({name:f.V$.CONFIRM_UNSAVE_ITEM,isDismissable:!0,modalProps:{documentId:e}}):(0,fe.Z)(e):(0,de.Z)(e)}(n,t,i))),{trackingData:{page:r},signInText:{topTag:p.Z.t("shared.account_creation.sign_in_save")},signUpText:{topTag:p.Z.t("shared.common.library.sign_up_to_save")},loginParams:{add_to_library:n},userAction:f.pe.USER_ACTIONS.SAVE}))}}},Nu=(0,g.$j)(Su,Cu)(Mu),Tu=(e,t)=>t===f.zf.S?e?Re.Cr7:Re.GtZ:e?Re.TwY:Re.AUm;function Lu(e){var{"data-e2e":t,buttonStyle:n,className:i,fillStyle:o,isSaved:a,isDisabled:u,onClick:l,size:c,tabIndex:d,title:f,wrapper:h}=e,[g,m]=(0,r.useState)(!1),v=a?p.Z.t("shared.common.library.remove_with_title",{title:Iu(f)}):p.Z.t("shared.common.library.add_with_title",{title:Iu(f)}),_=a?p.Z.t("shared.common.remove_from_saved"):p.Z.t("shared.common.save_for_later"),A=function(){var e=An((function*(){try{m(!0),yield l(a)}finally{m(!1)}}));return function(){return e.apply(this,arguments)}}();return r.createElement(h,{"aria-label":v,buttonStyle:n,className:s()(i,{disabled:g||u}),"data-e2e":t,disabled:g||u,fillStyle:o,icon:Tu(a,c),onClick:A,size:c,tabIndex:d,tooltipContent:_})}Lu.propTypes={"data-e2e":o().string,buttonStyle:o().oneOf(Object.values(f.xw)),className:o().string,fillStyle:o().oneOf(Object.values(f.E4)),id:o().number.isRequired,isDisabled:o().bool,isSaved:o().bool.isRequired,onClick:o().func.isRequired,page:o().string.isRequired,requireConfirmation:o().bool,size:o().oneOf([f.zf.S,f.zf.L]).isRequired,tabIndex:o().oneOfType([o().number,o().string]),title:o().string.isRequired,wrapper:o().elementType.isRequired},Lu.defaultProps={"data-e2e":null,className:"",isDisabled:!1,requireConfirmation:!1};var Du=(0,g.$j)(Su,Cu)(Lu);var Ou="StandardContentCard-module_wrapper__Nfoy3",ku="StandardContentCard-module_author__wXVza",Ru="StandardContentCard-module_content__hCDcv",ju="StandardContentCard-module_description__qTfTd",Pu="StandardContentCard-module_linkOverlay__3xGbh",Uu="StandardContentCard-module_metadata__B5pe-",zu="StandardContentCard-module_ranking__kWYVS",Bu="StandardContentCard-module_rating__tBGNE",qu="StandardContentCard-module_saveButton__0bYs-",Fu="StandardContentCard-module_thumbnail__0uJT6",Zu="StandardContentCard-module_title__1JDzX",Gu={get SAVE(){return p.Z.t("shared.common.save_for_later")},get REMOVE(){return p.Z.t("shared.common.remove_from_saved")}};function Yu(e){var{"data-e2e":t,author:n,authorUrl:i,className:o,contentPreviewUrl:a,description:l,id:c,imageUrl:d,isLoggedIn:g,isPreSaved:m,onSaveClick:v,onRemoveClick:_,ranking:A,rankingClassName:y,rating:b,retinaImageUrl:E,thumbnailType:w,title:x,totalRatings:I}=e,[M,S]=(0,r.useState)(m),[C,N]=(0,r.useState)(!1),[T,L]=(0,r.useState)(!0),D=(0,r.useRef)(null),O=(0,r.useRef)(null),k=null;(0,r.useEffect)((()=>{var e=()=>{clearTimeout(k),k=setTimeout((()=>{var e=function(e,t){if(!e||!t)return!1;var n=window.getComputedStyle(e.current),r=parseInt(n.getPropertyValue("padding-right"));return e.current.getBoundingClientRect().right-r>t.current.getBoundingClientRect().right}(D,O);L(e)}),100)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]);var R=function(){var e=An((function*(e){e.stopPropagation();try{N(!0),M?yield _(c):yield v(c),g&&S(!M)}catch(t){(0,u.Tb)(t)}finally{N(!1)}}));return function(t){return e.apply(this,arguments)}}();return r.createElement("div",{className:s()(Ou,o),"data-e2e":t,ref:D},r.createElement("a",{className:Pu,href:a},r.createElement(jn,null,x)),r.createElement("div",{className:qu},C?r.createElement(h.Tj,{disabled:!0,icon:Re.AUm,size:f.zf.L}):r.createElement(h.pf,{content:M?Gu.REMOVE:Gu.SAVE},r.createElement(h.Tj,{"data-e2e":"save-button",hiddenText:p.Z.t("shared.common.library.add_with_title",{title:x}),icon:M?Re.TwY:Re.AUm,isSelected:M,onClick:R,onKeyDown:e=>((e,t)=>{e.which===u.keyMappings.enter&&t(e)})(e,R),size:f.zf.L}))),r.createElement("div",{className:Ru},r.createElement(h.d7,{atAndBelow:!0,size:f.zf.XS},r.createElement(h.pl,{alt:x,"aria-label":w,className:Fu,"data-e2e":"thumbnail",imageUrl:d,retinaImageUrl:E,size:f.zf.L,thumbnailStyle:f.Kr.SHADOW,thumbnailType:w})),r.createElement(h.d7,{above:!0,size:f.zf.XS},r.createElement(h.pl,{alt:x,"aria-label":w,className:Fu,"data-e2e":"thumbnail",imageUrl:d,retinaImageUrl:E,size:f.zf.S,thumbnailStyle:f.Kr.SHADOW,thumbnailType:w})),r.createElement("div",{className:Uu},r.createElement("p",{className:s()(zu,y)},function(e){return"number"===typeof e?"".concat(e,"."):e}(A)),r.createElement("h3",{className:Zu,"data-e2e":"title"},x),r.createElement(To,{buttonStyle:f.xw.DEFAULT,className:ku,"data-e2e":"author-link",href:i},n),r.createElement(h.d7,{atAndBelow:!0,size:f.zf.XS},r.createElement(h.R4,{className:Bu,"data-e2e":"rating",rating:b,nodeRef:O,style:T?f.h0.INLINE_TEXT:f.h0.STACKED,totalRatings:I})),r.createElement(h.d7,{above:!0,size:f.zf.XS},r.createElement(h.R4,{className:Bu,"data-e2e":"rating",rating:b,style:f.h0.STACKED,totalRatings:I})),r.createElement(h.d7,{atAndBelow:!0,size:f.zf.XS},r.createElement("p",{className:ju},l)))),r.createElement(h.d7,{above:!0,size:f.zf.XS},r.createElement("p",{className:ju},l)))}Yu.propTypes={"data-e2e":o().string,author:o().string.isRequired,authorUrl:o().string.isRequired,className:o().string,contentPreviewUrl:o().string.isRequired,description:o().string.isRequired,id:o().number.isRequired,imageUrl:o().string.isRequired,isLoggedIn:o().bool,isPreSaved:o().bool,onSaveClick:o().func.isRequired,onRemoveClick:o().func.isRequired,ranking:o().oneOfType([o().string,o().number]),rankingClassName:o().string,rating:o().any.isRequired,retinaImageUrl:o().string.isRequired,thumbnailType:o().oneOf(Object.values(f.r1)).isRequired,title:o().string.isRequired,totalRatings:o().number},Yu.defaultProps={"data-e2e":null,isLoggedIn:!1,isPreSaved:!1,ranking:"",rankingClassName:""};class Hu extends r.PureComponent{constructor(e){super(e),yn(this,"handleBlur",(()=>{this.props.isMobile||this.setState({selectedStar:0})})),yn(this,"handleClearRatingClick",(e=>{var{location:t,onRatingCleared:n,page:r,rate:i}=this.props,o={location:t,page:r};e.preventDefault(),this.setState({selectedStar:0}),i(o,0),n()})),yn(this,"handleStarClick",(e=>{var{location:t,onRatingSaved:n,page:r,rate:i,rating:o}=this.props,a={location:t,page:r},s=Number(e.target.value);e.preventDefault(),o!==s&&(this.setState({informRatingSaved:!0},(()=>{setTimeout((()=>{this.setState({informRatingSaved:!1})}),1e3)})),i(a,s),n())})),yn(this,"renderStar",(e=>{var t=this.state.selectedStar||this.props.rating,n=e===this.props.rating?p.Z.t("shared.star_ratings.selected"):"",i=e<=t?"icon-ic_star_small_fill light_lit":"icon-ic_star_small_outline light_unlit",o=this.getTip(e),a="".concat(p.Z.t("shared.star_ratings.rate_as_rating_out_of_5",{value:e}),", ").concat(o,". ").concat(n);return r.createElement("button",{"aria-hidden":!1,className:"rating_star ".concat(i),key:"star_".concat(e),onClick:this.handleStarClick,onFocus:this.handleStarFocus.bind(this,e),onMouseOver:this.handleStarMouseOver.bind(this,e),onTouchStart:this.handleStarClick,role:"button",type:"button",value:e},r.createElement(jn,null,a))})),this.state={informRatingSaved:!1,selectedStar:0}}getTip(e){switch(e){case 1:return p.Z.t("shared.star_ratings.i_didnt_like_it_at_all");case 2:return p.Z.t("shared.star_ratings.i_didnt_like_it_that_much");case 3:return p.Z.t("shared.star_ratings.i_thought_it_was_ok");case 4:return p.Z.t("shared.star_ratings.i_liked_it");default:return p.Z.t("shared.star_ratings.i_loved_it")}}handleStarFocus(e){this.props.isMobile||this.setState({selectedStar:e})}handleStarMouseOver(e){this.props.isMobile||this.setState({selectedStar:e})}renderAllStars(){var e=this.state.selectedStar||this.props.rating,t=[1,2,3,4,5].map(this.renderStar);return t.push(r.createElement(jn,{key:"rating_to_display_text"},p.Z.t("shared.star_ratings.rating_rating_to_display_out_of_5_stars",{ratingToDisplay:e}))),r.createElement("span",{className:s()("star_ratings",{rated:this.props.rating>0},{selecting:this.state.selectedStar>0}),onBlur:this.handleBlur,onMouseLeave:this.handleBlur},t)}renderFeedbackArea(){var{isClearable:e,rating:t,showContextualTips:n}=this.props,{informRatingSaved:i,selectedStar:o}=this.state;return i&&n?r.createElement("span",{className:"inform_rating_saved"},p.Z.t("shared.star_ratings.saved")):o>0&&n?r.createElement("span",{className:"tips"},r.createElement("span",{className:"tip"},this.getTip(o))):t>0&&e?r.createElement(Un,{className:"clear_rating text_btn",onClick:this.handleClearRatingClick,type:"button"},p.Z.t("shared.star_ratings.clear_rating")):void 0}renderLiveRegion(){var e=this.state.informRatingSaved?p.Z.t("shared.star_ratings.user_rating_star_rating_saved",{userRating:this.props.rating}):null;return r.createElement(jn,null,r.createElement("span",{role:"status","aria-live":"polite","aria-atomic":"true"},e))}render(){return r.createElement("div",{className:"wrapper__shared_star_ratings","data-e2e":this.props["data-e2e"]},r.createElement("span",{className:"star_label_text",tabIndex:"0"},this.props.label),this.renderAllStars(),this.renderFeedbackArea(),this.renderLiveRegion())}}Hu.propTypes={isClearable:o().bool,"data-e2e":o().string,isMobile:o().bool,label:o().any,location:o().string.isRequired,onRatingCleared:o().func,onRatingSaved:o().func,page:o().string.isRequired,rate:o().func.isRequired,rating:o().number,showContextualTips:o().bool},Hu.defaultProps={isClearable:!0,"data-e2e":null,isMobile:!0,label:null,onRatingCleared:u.ZT,onRatingSaved:u.ZT,rating:0,showContextualTips:!0};var Wu="wrapper__static_stars",Vu=(e,t)=>r.createElement("span",{className:s()("rating_star",e),key:t});function Qu(e){var{className:t,hideOnZero:n,inline:i,showText:o,rating:a,showNoRatingsLabel:u}=e,l=i?"span":"div";if(n&&0===a)return null;return r.createElement(l,{className:s()(Wu,t),"data-e2e":e["data-e2e"]},(()=>{for(var e=[],t=a,n=1;n<=5;n++)t>=1?(e.push(Vu("icon-ic_star_small_fill light_lit",n)),t-=1):t>=.5?(e.push(Vu("icon-ic_star_small_halffill light_lit",n)),t-=.5):e.push(Vu("icon-ic_star_small_outline",n));return e})(),r.createElement(jn,null,p.Z.t("shared.star_ratings.rating_rating_to_display_out_of_5_stars",{ratingToDisplay:a})),(()=>{if(!o)return null;var e=0===a&&u,t=!e||null,n=e?p.Z.t("doc_page.ratings.no_ratings"):"(".concat(a,"/5)");return r.createElement("span",{"aria-hidden":t,className:"star_label"},n)})())}Qu.propTypes={"data-e2e":o().string,className:o().string,hideOnZero:o().bool,inline:o().bool,showNoRatingsLabel:o().bool,showText:o().bool,rating:o().number.isRequired},Qu.defaultProps={"data-e2e":null,className:"",hideOnZero:!1,inline:!1,showNoRatingsLabel:!1,showText:!1};var Ku={spacer:"StatusTag-module_spacer__Wuy0l"},{FULL_ACCESS:Xu,EXPIRING:$u,GEO_RESTRICTED:Ju,NOT_AVAILABLE:el,THROTTLED:tl}=f.RESTRICTION_TYPES,{INFO:nl,SUCCESS:rl}=f.PILL_LABEL_TYPES,il=(e,t)=>({[$u]:p.Z.t("content_preview.expiring_on",{date:(0,u.ie)(t)}),[Ju]:p.Z.t("content_preview.geo_restricted"),[el]:p.Z.t("content_preview.unavailable")}[e]);function ol(e){var{availableDate:t,"data-e2e":n,documentRestriction:i,expiryDate:o}=e;switch(i){case Xu:var a=p.Z.t("shared.common.included_in_your_subscription");return r.createElement(h.yN,{"data-e2e":n,icon:Re.JrY,text:a});case $u:case Ju:case el:var s=il(i,o);return r.createElement(h.yN,{"data-e2e":n,icon:Re.EEu,type:nl,text:s});case tl:var l=p.Z.t("content_preview.available_on",{date:(0,u.ie)(t)});return r.createElement(h.yN,{"data-e2e":n,icon:Re.EjQ,type:rl,text:l});default:return r.createElement("span",{className:Ku.spacer})}}function al(e){var{"data-e2e":t,buttonStyle:n,className:i,isLoggedIn:o,onClick:a,openSignUpModal:s,size:l,subscribeUrl:c,tagName:d,trialDuration:h}=e,g=d===f.iG.TEXT_BUTTON?c:void 0,m={"data-e2e":t,buttonStyle:n,className:i,href:g,onClick:e=>{g&&e.preventDefault(),a(),o?(0,u.uX)(c):s({loc:"start_free_trial",nextUrl:c})},size:l},v=qr(d);return r.createElement(v,m,p.Z.t("shared.trial_duration.start_trial_days",{trialDuration:h}))}ol.propTypes={availableDate:o().string,"data-e2e":o().string,documentRestriction:o().oneOf(Object.values(f.RESTRICTION_TYPES)),expiryDate:o().string},ol.defaultProps={availableDate:null,"data-e2e":null,documentRestriction:null,expiryDate:null},al.propTypes={"data-e2e":o().string,buttonStyle:o().oneOf(Object.values(f.xw)),className:o().string,isLoggedIn:o().bool.isRequired,onClick:o().func,openSignUpModal:o().func.isRequired,size:o().oneOf([f.zf.L,f.zf.S]),subscribeUrl:o().string.isRequired,tagName:o().oneOf(Object.values(f.iG)),trialDuration:o().number},al.defaultProps={"data-e2e":"start-trial-btn",buttonStyle:f.xw.DEFAULT,className:null,onClick:u.ZT,size:f.zf.L,tagName:f.iG.PRIMARY_BUTTON};var sl=(0,g.$j)(ei)(al),ul="truncated",ll="expanded",cl="TextLineClamp-module_wrapper__1k45O",dl="TextLineClamp-module_arrayText__uqJpT",pl="TextLineClamp-module_hiddenOverflow__r5QWx",fl="TextLineClamp-module_lineClamped__fTKaW",hl="TextLineClamp-module_textButton__8A4J3";function gl(e){var{buttonText:t,className:n,"data-e2e":i,expandButtonClassName:o,containsHTML:a,maxLines:u,text:l,onClick:c,stopExpansion:d}=e,[f,g]=(0,r.useState)(ul);if(!l)return null;var m=(0,r.useCallback)((e=>{if(e){var{clientHeight:t,scrollHeight:n}=e;t===n&&g(ll)}})),v=Array.isArray(l),_=f!==ll?u:"none";return r.createElement("div",{className:s()(cl,n),"data-e2e":i},a?r.createElement("div",{className:s()(pl),dangerouslySetInnerHTML:{__html:l},style:{"--max-lines":_},ref:m}):r.createElement("p",{className:s()(fl,{[dl]:v}),style:{"--max-lines":_},ref:m},v?l.reduce(((e,t)=>e+t+"\n \n"),""):l),r.createElement(h.Av,{className:s()(hl,o,{hidden:f!==ul}),onClick:e=>{"function"===typeof c&&c(e),d||g(ll)}},t||p.Z.t("shared.common.read_more")))}gl.propTypes={buttonText:o().string,className:o().string,containerWidth:o().number,containsHTML:o().bool,"data-e2e":o().string,expandButtonClassName:o().string,maxLines:o().number,onClick:o().func,text:o().oneOfType([o().string,o().arrayOf(o().string)]),stopExpansion:o().bool},gl.defaultProps={buttonText:"",className:null,containsHTML:!1,"data-e2e":"truncated-text",expandButtonClassName:null,maxLines:3,text:null,stopExpansion:!1,onClick:null};var ml={button:"VotesLabel-module_button__iTeG9",icon:"VotesLabel-module_icon__GsiNj",label:"VotesLabel-module_label__vppeH"};function vl(e){var{className:t,icon:n,onClick:i,votes:o}=e;return r.createElement("div",{className:s()(t,ml.button),onClick:i},r.createElement(n,{className:ml.icon}),r.createElement("span",{className:ml.label,"data-testid":"label"},o))}vl.propTypes={className:o().string,icon:o().any.isRequired,onClick:o().func,votes:o().oneOfType([o().number,o().string])},vl.defaultProps={className:null,onClick:u.ZT,votes:0};var _l={default:"ThumbRatings-module_default__V0Pt1",inline:"ThumbRatings-module_inline__BVJ4y",percentage:"ThumbRatings-module_percentage__JChnd"},{DEFAULT:Al,INLINE_TEXT:yl,PERCENTAGE:bl}=f.THUMB_RATING_STYLES,El={UPVOTED:0,DOWNVOTED:1};function wl(e){var{"data-e2e":t,className:n,downvotes:i,upvotes:o,handleDownvote:a,handleRemoveVote:u,handleUpvote:l,style:c,userVote:d}=e,f=o+i>0?Math.round(o/(o+i)*100):0;if(c===bl){var h=0===f?p.Z.t("doc_page.ratings.no_ratings"):"".concat(f,"%");return r.createElement("div",{className:n,"data-e2e":t},r.createElement(vl,{className:_l.percentage,icon:Re.VwZ,votes:h}),r.createElement(jn,{text:p.Z.t("doc_page.ratings.percent_found_document_useful",{percentage:f})}))}var g=c===yl?_l.inline:_l.default;return r.createElement("div",{className:s()(n,g),"data-e2e":t},r.createElement(vl,{className:g,icon:d===El.UPVOTED?Re.DWW:Re.VwZ,votes:o,onClick:d===El.UPVOTED?u:l,key:"upvote"}),r.createElement(vl,{className:g,icon:d===El.DOWNVOTED?Re.qPX:Re.LXC,votes:i,onClick:d===El.DOWNVOTED?u:a,key:"downvote"}),r.createElement(jn,{text:p.Z.t("doc_page.ratings.percent_found_document_useful",{percentage:f})}))}wl.propTypes={"data-e2e":o().string,className:o().string,downvotes:o().number.isRequired,upvotes:o().number.isRequired,handleDownvote:o().func,handleRemoveVote:o().func,handleUpvote:o().func,style:o().string,userVote:o().oneOf(Object.values(El))},wl.defaultProps={"data-e2e":null,className:null,handleDownvote:u.ZT,handleRemoveVote:u.ZT,handleUpvote:u.ZT,style:Al,userVote:null};var xl=27,Il=121,Ml=24,Sl={LOADING:"loading",TRUNCATED:"truncated",EXPANDED:"expanded"},Cl={[u.AV.breakpoint_360]:45,[u.AV.breakpoint_450]:57,[u.AV.breakpoint_700]:88};function Nl(e,t,n){var r=function(e){return Array.isArray(e)?e.join(" ").length:e.length}(t),i=function(e){var t=e||window.innerWidth;for(var[n,r]of Object.entries(Cl))if(t<=n)return r;return Il}(n);return r/i>e}function Tl(e,t,n,r){var i=e*xl;if(Array.isArray(t))if(n===Sl.TRUNCATED){var o=function(e,t){if(!t.current||!t.current.children)return 0;var n=0,r=0;return Array.from(t.current.children).forEach((t=>{(n+=t.offsetHeight/xl){var{maxLines:n,text:i,truncationState:o}=e,a=s()({[Ll]:o===Sl.LOADING,[Dl]:o===Sl.TRUNCATED,[Ol]:o===Sl.EXPANDED}),u=function(e,t,n,r){if(n===Sl.EXPANDED)return null;var i=Tl(e,t,n,r);return n===Sl.TRUNCATED?{maxHeight:i,WebkitLineClamp:e}:{maxHeight:i}}(n,i,o,t);return Array.isArray(i)?r.createElement("div",{className:a,ref:t,style:u},i.map(((e,t)=>r.createElement("p",{key:t},e)))):r.createElement("p",{className:a,ref:t,style:u},i)})),Rl=o().oneOf([Sl.EXPANDED,Sl.LOADING,Sl.TRUNCATED]);kl.propTypes={maxLines:o().number.isRequired,text:o().oneOfType([o().string,o().arrayOf(o().string)]).isRequired,truncationState:Rl.isRequired};var jl={wrapper:"TruncatedText-module_wrapper__vf9qo",readMore:"TruncatedText-module_readMore__hlnRy"};function Pl(e){var{buttonText:t,className:n,dataE2E:i,maxLines:o,text:a,containerWidth:u,onClick:l,stopExpansion:c}=e;if(!a)return null;var[d,p]=(0,r.useState)(Sl.LOADING),f=(0,r.useRef)(null);(0,r.useEffect)((()=>{var e=Nl(o,a,u);p(e?Sl.TRUNCATED:Sl.EXPANDED)}),[o,a,u]);return r.createElement("div",{className:s()(jl.wrapper,n),"data-e2e":i},r.createElement(kl,{maxLines:o,text:a,truncationState:d,ref:f}),r.createElement(To,{className:s()(jl.readMore,{hidden:d!==Sl.TRUNCATED}),onClick:e=>{l(e),c||p(Sl.EXPANDED)}},t))}Pl.propTypes={buttonText:o().string,className:o().string,containerWidth:o().number,dataE2E:o().string,maxLines:o().number,onClick:o().func,text:o().oneOfType([o().string,o().arrayOf(o().string)]),stopExpansion:o().bool},Pl.defaultProps={buttonText:"Read More",className:null,dataE2E:"truncated-text",maxLines:3,text:null,stopExpansion:!1,onClick:u.ZT};var Ul={button:"Tab-module_button__Z7nj0",selected:"Tab-module_selected__sHYbd"};function zl(e){var{className:t,"data-e2e":n,href:i,text:o,onClick:a,selected:u}=e,l=s()(Ul.button,t,{[Ul.selected]:u});return r.createElement("a",{className:l,"data-e2e":n,href:i,onClick:a},o," ",u?r.createElement(jn,{text:p.Z.t("shared.common.selected")}):null)}zl.propTypes={"data-e2e":o().string,className:o().string,href:o().string,text:o().string.isRequired,onClick:o().func,selected:o().bool},zl.defaultProps={"data-e2e":"",className:null,onClick:u.ZT,selected:!1};var Bl={wrapper:"TabbedNavigation-module_wrapper__qScaT",list:"TabbedNavigation-module_list__H--4p",listItem:"TabbedNavigation-module_listItem__M1PTS"};function ql(e){var{"data-e2e":t,handleTabClick:n,selectedTab:i,tabData:o}=e,a=r.createRef();return r.createElement("div",{className:Bl.wrapper,"data-e2e":t},r.createElement(mr,{blurEdges:!0,renderPastMargin:!1,selectedItemRef:a},r.createElement("ul",{className:Bl.list},o.map((e=>{var t=e.text===i,o=t?a:null,s=t?"tab-selected":"tab";return r.createElement("li",{key:e.key,className:Bl.listItem,ref:o},r.createElement(zl,bn({},e,{"data-e2e":s,onClick:t=>((e,t)=>{e.preventDefault(),n(t)})(t,e),selected:t})))})))))}ql.propTypes={"data-e2e":o().string,handleTabClick:o().func,selectedTab:o().string.isRequired,tabData:o().arrayOf(o().shape({href:o().string,key:o().string.isRequired,text:o().string.isRequired})).isRequired},ql.defaultProps={handleTabClick:u.ZT};var Fl=[u.keyMappings.enter,u.keyMappings.space];class Zl extends r.Component{constructor(e){super(e),yn(this,"isTriggerKey",(e=>Fl.includes(e))),yn(this,"handleKeydown",(e=>(e.stopPropagation(),this.isTriggerKey(e.keyCode)?(e.preventDefault(),this.handleItemClick(e)):e.keyCode===u.keyMappings.esc?this.hideMenu():void(0,u._h)({event:e,children:(0,u.Ng)(this.menuRef.current),exitFunction:this.hideMenu,tabCycle:!1})))),yn(this,"addFocusTrap",(()=>{this.state.isOpen&&(this.setFocus(this.menuRef.current),this.menuRef.current.addEventListener("keydown",this.handleKeydown))})),yn(this,"setFocus",(e=>{(0,u.Ng)(e)[0].focus()})),yn(this,"removeFocusTrapListener",(()=>{this.menuRef.current&&this.menuRef.current.removeEventListener("keydown",this.handleKeydown)})),yn(this,"handleBodyClick",(e=>{this.wrapperRef.current.contains(e.target)||this.hideMenu()})),yn(this,"hideMenu",(()=>{this.state.isOpen&&(this.removeFocusTrapListener(),this.setState({isOpen:!1},this.props.onHide))})),yn(this,"showMenu",(()=>{this.state.isOpen||this.setState({isOpen:!0},this.onShow)})),yn(this,"onShow",(()=>{this.addFocusTrap(),this.props.onShow()})),yn(this,"toggleVisible",(()=>{if(this.state.isOpen)return this.hideMenu();this.showMenu()})),yn(this,"handleButtonClick",(e=>{e.preventDefault(),this.toggleVisible()})),yn(this,"handleItemClick",(e=>{this.hideMenu(),this.props.handleSelection(e)})),yn(this,"handleButtonKeydown",(e=>{this.isTriggerKey(e.keyCode)&&this.handleButtonClick(e)})),yn(this,"handleKeyUp",(e=>{e.preventDefault()})),yn(this,"renderButton",(()=>{var{currentItem:e}=this.props;return r.createElement("span",{className:"menu_button_wrapper"},r.createElement("button",{className:"selector_button",value:e.value,type:"button",onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeydown},e.label,r.createElement(qn,{icon:"dropdown_1px"})))})),yn(this,"renderIcon",(()=>r.createElement(qn,{icon:"checkmark"}))),yn(this,"renderList",(()=>{var{menuItems:e,currentItem:t}=this.props;return e.map((e=>{var n=e.value===t.value;return r.createElement("div",{key:e.value,className:"menu_item"},r.createElement("button",{value:e.value,type:"button",className:s()("menu_button",{selected:n}),onClick:this.handleItemClick,onKeyUp:this.handleKeyUp},e.label),n&&this.renderIcon())}))})),yn(this,"renderMenu",(()=>{if(this.state.isOpen)return r.createElement("div",{className:"menu_container"},r.createElement("div",{className:"menu_items",ref:this.menuRef},this.renderList()))})),this.state={isOpen:!1},this.wrapperRef=r.createRef(),this.menuRef=r.createRef(),this.handleKeydown=d()(this.handleKeydown,200)}componentDidMount(){document.body.addEventListener("click",this.handleBodyClick)}componentWillUnmount(){this.removeFocusTrapListener(),document.body.removeEventListener("click",this.handleBodyClick)}render(){return r.createElement("div",{className:s()("wrapper__dropdown_menu",this.props.className),id:this.props.id,ref:this.wrapperRef,"data-e2e":this.props["data-e2e"]},this.renderButton(),this.renderMenu())}}Zl.propTypes={"data-e2e":o().string,className:o().string,currentItem:o().shape({value:o().oneOfType([o().string,o().number]),label:o().string}).isRequired,handleSelection:o().func.isRequired,id:o().oneOfType([o().string,o().number]),menuItems:o().arrayOf(o().shape({value:o().oneOfType([o().string,o().number]),label:o().string})).isRequired,onHide:o().func,onShow:o().func},Zl.defaultProps={"data-e2e":null,className:"",id:null,onHide:u.ZT,onShow:u.ZT};var Gl="Description-module_truncated__WHtYw",Yl="Description-module_loading__h8Ryv",Hl="Description-module_header__sRJLi",Wl="Description-module_description__nhJbX",Vl="Description-module_expanded__Se9-p",Ql="Description-module_readMore__1LY4q";function Kl(e){var{description:t,showHeading:n,maxHeight:i}=e,{truncationRef:o,truncationState:a,handleTruncationExpandClick:u}=pn(i);return t?r.createElement(r.Fragment,null,n?r.createElement("h2",{className:Hl},p.Z.t("shared.common.description")):r.createElement(jn,{tag:"p"},p.Z.t("shared.common.description")),r.createElement("div",{className:s()(Wl,"description",{[Gl]:a===cn,[Yl]:a===ln,[Vl]:a===dn}),ref:o,dangerouslySetInnerHTML:{__html:t},"data-e2e":"description"}),a===cn?r.createElement(Un,{role:"button",onClick:u,className:s()(Ql,"readMore"),"data-e2e":"desc-read-more"},p.Z.t("shared.common.read_more")):null):null}function Xl(e){var{className:t,hasDunningLock:n,hasProgress:i,listenUrl:o,onClick:a,openLockShockRoadblock:s,shouldRoadblock:u}=e,l={href:o,onClick:a,rel:"noopener noreferrer nofollow",target:"_blank"};return n&&u&&(l={onClick:e=>{s(e),"function"===typeof a&&a(e)}}),r.createElement(h.KM,bn({},l,{className:t,"data-e2e":"listen-button",size:f.zf.L}),i?p.Z.t("shared.listen_button.listen_continue"):p.Z.t("shared.common.listen_now"))}Kl.propTypes={description:o().string.isRequired,maxHeight:o().number,showHeading:o().bool},Kl.defaultProps={maxHeight:323,showHeading:!1},o().bool.isRequired,o().bool,o().string.isRequired,o().func.isRequired,Xl.propTypes={className:o().string,hasDunningLock:o().bool.isRequired,hasProgress:o().bool,listenUrl:o().string.isRequired,onClick:o().func,openLockShockRoadblock:o().func.isRequired,shouldRoadblock:o().bool},Xl.defaultProps={className:"",onClick:null,shouldRoadblock:!0};var $l={openLockShockRoadblock:ge.Z},Jl=(0,g.$j)((e=>({hasDunningLock:e.user.hasDunningLock})),$l)(Xl),ec="PlaySampleButton-module_wrapper__lCAE6",tc="PlaySampleButton-module_icon__zau42";function nc(e){var{handleClick:t,isPlaying:n,url:i,className:o}=e,a=n?"audiobook_pause":"audiobook_play";return i?r.createElement(Sr,{className:s()(ec,o),onClick:t,"data-e2e":"play-preview-button"},r.createElement(qn,{className:tc,icon:a}),n?p.Z.t("shared.play_sample_button.pause"):p.Z.t("shared.play_sample_button.play_sample")):null}nc.propTypes={className:o().string,isPlaying:o().bool.isRequired,handleClick:o().func.isRequired,url:o().string.isRequired};(0,fn.iC)(nc);var rc="PlaySampleButton-ds2-module_wrapper__oBmSP",ic="PlaySampleButton-ds2-module_icon__UIWq7";function oc(e){var{className:t,isPlaying:n,handleClick:i,size:o,url:a}=e,u=n?"audiobook_pause":"audiobook_play";return a?r.createElement(Br,{className:s()(rc,t),"data-e2e":"play-preview-button",size:o,onClick:i},r.createElement(qn,{className:ic,icon:u}),n?p.Z.t("shared.play_sample_button.pause"):p.Z.t("shared.play_sample_button.play_sample")):null}oc.propTypes={className:o().string,isPlaying:o().bool.isRequired,handleClick:o().func.isRequired,size:o().oneOf([Pr.LARGE,Pr.SMALL]),url:o().string.isRequired},oc.defaultProps={size:Pr.LARGE};var ac=(0,fn.iC)(oc);function sc(e){var{children:t,className:n,ctaCopy:i,heading:o,onClick:a,onClose:u}=e;return r.createElement("div",{className:s()("wrapper__bottom_drawer",n),"data-e2e":e["data-e2e"]},r.createElement(Un,{className:"close_button text_btn",onClick:u},r.createElement(qn,{icon:"close_small"})),r.createElement("div",{className:"heading"},o),r.createElement("div",{className:"content"},t),(()=>{if(i)return r.createElement(Ir,{className:"cta",onClick:a},i)})())}function uc(e){var{className:t,hasDunningLock:n,hasProgress:i,onClick:o,openLockShockRoadblock:a,readUrl:s}=e,u={href:s,onClick:o};return n&&(u={onClick:e=>{a(e),"function"===typeof o&&o(e)}}),r.createElement(h.KM,bn({},u,{className:t,"data-e2e":"read-button",size:f.zf.L}),i?p.Z.t("shared.actions.read_continue"):p.Z.t("shared.common.read_now"))}sc.propTypes={"data-e2e":o().string,ctaCopy:o().string,children:o().oneOfType([o().string,o().element]),className:o().string,heading:o().string.isRequired,onClick:o().func,onClose:o().func.isRequired},sc.defaultProps={"data-e2e":null},uc.defaultProps={onClick:null},uc.propTypes={className:o().string,hasDunningLock:o().bool.isRequired,hasProgress:o().bool,onClick:o().func,openLockShockRoadblock:o().func.isRequired,readUrl:o().string.isRequired};var lc={openLockShockRoadblock:ge.Z},cc=(0,g.$j)((e=>({hasDunningLock:e.user.hasDunningLock})),lc)(uc),dc={wrapper:"Author-module_wrapper__JqWEh",name:"Author-module_name__mB9Vo"};function pc(e){var{author:t,onClick:n}=e,{initials:i,imageUrl:o,retinaImageUrl:a,url:s}=t;return r.createElement("a",{className:dc.wrapper,href:s,onClick:n},r.createElement(pa,{isAuthor:!0,initials:i,imageUrl:o,retinaImageUrl:a,size:"large"}),r.createElement("span",{className:dc.name},t.name))}pc.propTypes={author:o().shape({name:o().string.isRequired,initials:o().string,url:o().string.isRequired,imageUrl:o().string,retinaImageUrl:o().string}).isRequired,onClick:o().func.isRequired};var fc="RelatedAuthors-module_wrapper__R1a7S",hc="RelatedAuthors-module_heading__ATIxm",gc="RelatedAuthors-module_carousel__pyliX",mc="RelatedAuthors-module_listItems__p7cLQ",vc="RelatedAuthors-module_item__2MXMe";function _c(e){var{authors:t,page:n}=e;return t.length?r.createElement("div",{className:fc,"data-e2e":"related-authors"},r.createElement("h2",{className:hc},p.Z.t("shared.text_links.related_authors")),r.createElement(or,{className:gc},r.createElement("ul",{className:mc},t.map((e=>r.createElement("li",{key:e.id,className:vc},r.createElement(pc,{author:e,onClick:()=>((e,t)=>{(0,u.L9)("seo_crosslinks:click",{page:t,author:{id:e.id,slug:e.slug},location:window.location.href,destination:e.url})})(e,n)}))))))):null}_c.defaultProps={authors:[]},_c.propTypes={authors:o().arrayOf(o().shape({name:o().string.isRequired,initials:o().string,url:o().string.isRequired,id:o().number.isRequired,slug:o().string.isRequired,imageUrl:o().string,retinaImageUrl:o().string})),page:o().string};var Ac="RelatedCategories-module_heading__sD6o8",yc="RelatedCategories-module_carousel__28cF3";function bc(e){var{categories:t,page:n}=e;if(!t.length)return null;var i=t.map((e=>vn(vn({},e),{},{onClick:()=>function(e,t){(0,u.L9)("seo_crosslinks:click",{page:t,category:{id:e.id,slug:e.slug},location:window.location.href,destination:e.href})}(e,n)}))),o=t.length>2;return r.createElement("div",{"data-e2e":"related-categories"},r.createElement("h3",{className:Ac},p.Z.t("shared.common.related_categories")),r.createElement(or,{className:yc},r.createElement(_a,{items:i,twoRowsOnMobile:o})))}function Ec(e){var{"data-e2e":t,buttonStyle:n,className:i,isLoggedIn:o,onClick:a,openSignUpModal:s,size:l,subscribeUrl:c,tagName:d,trialDuration:f}=e,h={"data-e2e":t,buttonStyle:n,className:i,onClick:()=>{a(),o?(0,u.uX)(c):s({loc:"read_free_btn",nextUrl:c})},size:l},g=qr(d);return r.createElement(g,h,p.Z.t("shared.trial_duration.read_free_days",{trialDuration:f}))}bc.defaultProps={categories:[]},bc.propTypes={categories:o().arrayOf(o().shape({id:o().number,href:o().string.isRequired,label:o().string.isRequired})),page:o().string},Ec.propTypes={"data-e2e":o().string,buttonStyle:o().oneOf(Object.values(f.xw)),className:o().string,isLoggedIn:o().bool.isRequired,onClick:o().func,openSignUpModal:o().func.isRequired,size:o().oneOf([f.zf.L,f.zf.S]),subscribeUrl:o().string.isRequired,tagName:o().oneOf(Object.values(f.iG)),trialDuration:o().number.isRequired},Ec.defaultProps={"data-e2e":"read-free-btn",buttonStyle:f.xw.DEFAULT,className:null,onClick:u.ZT,size:f.zf.L,tagName:f.iG.PRIMARY_BUTTON};var wc=(0,g.$j)(Lr)(Ec);function xc(e){var{"data-e2e":t,buttonStyle:n,className:i,onClick:o,size:a,tagName:s,url:l}=e,c=s===f.iG.TEXT_BUTTON?l:void 0,d={"data-e2e":t,buttonStyle:n,className:i,href:c,onClick:e=>{c&&e.preventDefault(),o(),(0,u.uX)(l)},size:a},h=qr(s);return r.createElement(h,d,p.Z.t("shared.resume_membership"))}xc.propTypes={"data-e2e":o().string,buttonStyle:o().oneOf(Object.values(f.xw)),className:o().string,onClick:o().func,size:o().oneOf([f.zf.L,f.zf.S]),tagName:o().oneOf(Object.values(f.iG)),url:o().string.isRequired},xc.defaultProps={"data-e2e":"resume-membership-btn",buttonStyle:f.xw.DEFAULT,className:null,onClick:u.ZT,size:f.zf.L,tagName:f.iG.PRIMARY_BUTTON};var Ic=(0,g.$j)(Gr)(xc);function Mc(e){var{"data-e2e":t,buttonStyle:n,className:i,onClick:o,rootPath:a,size:s,tagName:l}=e,c=l===f.iG.TEXT_BUTTON?a:void 0,d={"data-e2e":t,buttonStyle:n,className:i,href:c,onClick:e=>{c&&e.preventDefault(),o(),(0,u.uX)(a)},size:s},h=qr(l);return r.createElement(h,d,p.Z.t("shared.start_exploring"))}Mc.propTypes={"data-e2e":o().string,buttonStyle:o().oneOf(Object.values(f.xw)),className:o().string,onClick:o().func,rootPath:o().string.isRequired,size:o().oneOf([f.zf.L,f.zf.S]),tagName:o().oneOf(Object.values(f.iG))},Mc.defaultProps={"data-e2e":"start-exploring-btn",buttonStyle:f.xw.DEFAULT,className:null,onClick:u.ZT,size:f.zf.L,tagName:f.iG.PRIMARY_BUTTON};var Sc=(0,g.$j)(Wr)(Mc);function Cc(e){var{"data-e2e":t,className:n,buttonStyle:i,isLoggedIn:o,onClick:a,openSignUpModal:s,size:l,subscribeUrl:c,tagName:d}=e,h=d===f.iG.TEXT_BUTTON?c:void 0,g={"data-e2e":t,buttonStyle:i,className:n,href:h,onClick:e=>{h&&e.preventDefault(),a(),o?(0,u.uX)(c):s({loc:"start_subscription_btn",nextUrl:c})},size:l},m=qr(d);return r.createElement(m,g,p.Z.t("shared.common.start_your_subscription"))}Cc.propTypes={"data-e2e":o().string,buttonStyle:o().oneOf(Object.values(f.xw)),className:o().string,isLoggedIn:o().bool.isRequired,onClick:o().func,openSignUpModal:o().func.isRequired,size:o().oneOf([f.zf.L,f.zf.S]),subscribeUrl:o().string.isRequired,tagName:o().oneOf(Object.values(f.iG)),trialDuration:o().number},Cc.defaultProps={"data-e2e":"start-subscription-btn",buttonStyle:f.xw.DEFAULT,className:null,onClick:u.ZT,size:f.zf.L,tagName:f.iG.PRIMARY_BUTTON};var Nc=(0,g.$j)(Kr)(Cc);function Tc(e){var{"data-e2e":t,buttonStyle:n,className:i,copyType:o,onClick:a,openSignUpModal:s,size:l,tagName:c,userSubscriptionStatus:d}=e,p={"data-e2e":t,buttonStyle:n,className:i,onClick:a,size:l,tagName:c};switch(d){case Fr.USING_PROMO_CODE:return r.createElement(Nc,bn({openSignUpModal:s},p));case Fr.TRIAL_ELIGIBLE:var h=o===f.bg.START_TRIAL?sl:wc;return r.createElement(h,bn({openSignUpModal:s},p));case Fr.PAUSED:return r.createElement(Ic,p);case Fr.ABORTED:case Fr.CANCELED_EXPIRED:case Fr.TRIAL_INELIGIBLE:case Fr.DUNNING_LOCK:return r.createElement(ka,p);case Fr.SUBSCRIBER:return r.createElement(Sc,p);default:var g='SubscriptionCTAs (components package), "'.concat(d,'" does not have a default button behavior.');return"undefined"!==typeof window?(0,u.Tb)(new Error(g)):console.error(g),null}}Tc.propTypes={"data-e2e":o().string,buttonStyle:o().oneOf(Object.values(f.xw)),className:o().string,copyType:o().oneOf(Object.values(f.bg)),onClick:o().func,openSignUpModal:o().func.isRequired,size:o().oneOf([f.zf.L,f.zf.S]),tagName:o().oneOf(Object.values(f.iG)),userSubscriptionStatus:o().oneOf(Object.values(Fr))},Tc.defaultProps={buttonStyle:f.xw.DEFAULT,className:null,copyType:f.bg.READ_FREE,onClick:u.ZT,tagName:f.iG.PRIMARY_BUTTON};(0,g.$j)(ri)(Tc)},6940:(e,t,n)=>{"use strict";n.d(t,{DH:()=>i,DS:()=>j,Dh:()=>A,Dx:()=>u,E4:()=>a,HR:()=>h,JT:()=>p,Kr:()=>B,PILL_LABEL_TYPES:()=>S,RESTRICTION_TYPES:()=>T,Se:()=>b,TH:()=>E,THUMB_RATING_STYLES:()=>F,V$:()=>x,ZN:()=>P,_c:()=>L,_w:()=>N,a2:()=>w,a6:()=>C,bg:()=>O,cl:()=>Z,d5:()=>d,h0:()=>g,iG:()=>o,iN:()=>l,j$:()=>z,od:()=>m,pe:()=>r,pv:()=>y,qI:()=>_,qK:()=>G,qe:()=>v,r1:()=>q,r5:()=>R,rZ:()=>c,tK:()=>k,u1:()=>D,vT:()=>I,wC:()=>M,xw:()=>s,zf:()=>U});var r={DOC_TYPES:{ARCHIVE:"archive",FREE:"free",VIEW_RESTRICTED:"view_restricted"},PROMO_ACTIONS:["app_promo_interstitial","between_page","blur_promo","truncate_promo","StaticPromoStudy"],USER_ACTIONS:{ADD_NOTE:"add_note",CONTINUE_READING:"continue_reading",CREATE_A_BOOKMARK:"create_a_bookmark",CREATE_A_LIST:"create_a_list",CREATE_ANNOTATION:"create_annotation",DOWNLOAD:"download",FLAG:"flag",FOLLOW:"follow",GIVE_THIS_GIFT:"give_this_gift",HIGHLIGHT:"highlight",NAV_JOIN:"nav_join",NAV_LOGIN:"nav_login",NONE:"none",RATE:"rate",REVIEW:"review",REDEEM:"redeem",SAVE:"save",SHARE_QUOTE:"share_quote",START_FREE_MONTHS:"start_free_months",UNBOUNCE:"unbounce",UPLOAD:"upload"},VIEWS:{EMAIL_MISSING:"email_missing",EMAIL_TAKEN:"email_taken",FORGOT_PASSWORD:"forgot_password",JOIN_FORM:"join_form",JOIN:"join",LOADING:"loading",LOGIN_FORM:"login_form",LOGIN:"login"}},i="transparent",o={PRIMARY_BUTTON:"PrimaryButton",SECONDARY_BUTTON:"SecondaryButton",TEXT_BUTTON:"TextButton"},a={FILLED:"filled",OUTLINE:"outline"},s={DEFAULT:"default",DANGER:"danger",DISABLED:"disabled",MONOTONE_BLACK:"monotoneBlack",MONOTONE_WHITE:"monotoneWhite"},u={BUTTON:"button",SUBMIT:"submit"},l={DEFAULT:"default-cell-mode",DESCRIPTION:"description-cell-mode",SEARCH_RESULTS:"search-results-cell-mode",WIDE_NO_DESCRIPTION:"wide-no-description-cell-mode"},c={[l.DEFAULT]:{displayItems:{xl:6,l:4,m:1},showDescription:!1},[l.DESCRIPTION]:{displayItems:{xl:3,m:2,s:1},showDescription:!0},[l.SEARCH_RESULTS]:{displayItems:{xl:5,l:4,m:3,s:2,xs:2,xxs:1},showDescription:!1},[l.WIDE_NO_DESCRIPTION]:{displayItems:{xl:3,m:2,s:1},showDescription:!1}},d={LARGE:"large",SMALL:"small"},p={PRIVATE:0,PUBLIC:1},f=e=>"".concat("__CJ_").concat(e),h={AD_BLOCK_DETECTED:f("AD_BLOCK_DETECTED"),DAY_ZERO_ENTRY_POINT:f("DAY_ZERO_ENTRY_POINT"),DOC_PAGE_GPT_VARIANT_TRACKED:f("DOC_PAGE_GPT_VARIANT_TRACKED"),HOLIDAY_BANNER_2022:f("HOLIDAY_BANNER_2022"),OSANO_METRICS_TRACKED:f("OSANO_METRICS_TRACKED"),SEARCH_SESSION:f("SEARCH_SESSION"),SLIDESHARE:f("SLIDESHARE"),EXIT_MODAL:f("doc_page_exit_modal"),REMOVE_FROM_LIST_REMINDER:"REMOVE_FROM_LIST_REMINDER"},g={DEFAULT:"default",DEFAULT_NON_RESPONSIVE:"defaultNonResponsive",INLINE_JUMBO_TEXT_NON_RESPONSIVE:"inlineJumboTextNonResponsive",INLINE_TEXT:"inlineText",INLINE_TEXT_NON_RESPONSIVE:"inlineTextNonResponsive",MINIMIZED:"minimized",STACKED:"stacked"},m={AFGHANISTAN:"AF",ALAND:"AX",ALBANIA:"AL",ALGERIA:"DZ",AMERICAN_SAMOA:"AS",ANDORRA:"AD",ANGOLA:"AO",ANGUILLA:"AI",ANTARCTICA:"AQ",ANTIGUA_AND_BARBUDA:"AG",ARGENTINA:"AR",ARMENIA:"AM",ARUBA:"AW",AUSTRALIA:"AU",AUSTRIA:"AT",AZERBAIJAN:"AZ",BAHAMAS:"BS",BAHRAIN:"BH",BANGLADESH:"BD",BARBADOS:"BB",BELARUS:"BY",BELGIUM:"BE",BELIZE:"BZ",BENIN:"BJ",BERMUDA:"BM",BHUTAN:"BT",BOLIVIA:"BO",BONAIRE:"BQ",BOSNIA_AND_HERZEGOVINA:"BA",BOTSWANA:"BW",BOUVET_ISLAND:"BV",BRAZIL:"BR",BRITISH_INDIAN_OCEAN_TERRITORY:"IO",BRITISH_VIRGIN_ISLANDS:"VG",BRUNEI:"BN",BULGARIA:"BG",BURKINA_FASO:"BF",BURUNDI:"BI",CAMBODIA:"KH",CAMEROON:"CM",CANADA:"CA",CAPE_VERDE:"CV",CAYMAN_ISLANDS:"KY",CENTRAL_AFRICAN_REPUBLIC:"CF",CHAD:"TD",CHILE:"CL",CHINA:"CN",CHRISTMAS_ISLAND:"CX",COCOS_KEELING_ISLANDS:"CC",COLOMBIA:"CO",COMOROS:"KM",COOK_ISLANDS:"CK",COSTA_RICA:"CR",CROATIA:"HR",CUBA:"CU",CURACAO:"CW",CYPRUS:"CY",CZECH_REPUBLIC:"CZ",DEMOCRATIC_REPUBLIC_OF_THE_CONGO:"CD",DENMARK:"DK",DJIBOUTI:"DJ",DOMINICA:"DM",DOMINICAN_REPUBLIC:"DO",EAST_TIMOR:"TL",ECUADOR:"EC",EGYPT:"EG",EL_SALVADOR:"SV",EQUATORIAL_GUINEA:"GQ",ERITREA:"ER",ESTONIA:"EE",ETHIOPIA:"ET",FALKLAND_ISLANDS:"FK",FAROE_ISLANDS:"FO",FIJI:"FJ",FINLAND:"FI",FRANCE:"FR",FRENCH_GUIANA:"GF",FRENCH_POLYNESIA:"PF",FRENCH_SOUTHERN_TERRITORIES:"TF",GABON:"GA",GAMBIA:"GM",GEORGIA:"GE",GERMANY:"DE",GHANA:"GH",GIBRALTAR:"GI",GREECE:"GR",GREENLAND:"GL",GRENADA:"GD",GUADELOUPE:"GP",GUAM:"GU",GUATEMALA:"GT",GUERNSEY:"GG",GUINEA:"GN",GUINEA_BISSAU:"GW",GUYANA:"GY",HAITI:"HT",HEARD_ISLAND_AND_MCDONALD_ISLANDS:"HM",HONDURAS:"HN",HONG_KONG:"HK",HUNGARY:"HU",ICELAND:"IS",INDIA:"IN",INDONESIA:"ID",IRAN:"IR",IRAQ:"IQ",IRELAND:"IE",ISLE_OF_MAN:"IM",ISRAEL:"IL",ITALY:"IT",IVORY_COAST:"CI",JAMAICA:"JM",JAPAN:"JP",JERSEY:"JE",JORDAN:"JO",KAZAKHSTAN:"KZ",KENYA:"KE",KIRIBATI:"KI",KOSOVO:"XK",KUWAIT:"KW",KYRGYZSTAN:"KG",LAOS:"LA",LATVIA:"LV",LEBANON:"LB",LESOTHO:"LS",LIBERIA:"LR",LIBYA:"LY",LIECHTENSTEIN:"LI",LITHUANIA:"LT",LUXEMBOURG:"LU",MACAO:"MO",MADAGASCAR:"MG",MALAWI:"MW",MALAYSIA:"MY",MALDIVES:"MV",MALI:"ML",MALTA:"MT",MARSHALL_ISLANDS:"MH",MARTINIQUE:"MQ",MAURITANIA:"MR",MAURITIUS:"MU",MAYOTTE:"YT",MEXICO:"MX",MICRONESIA:"FM",MOLDOVA:"MD",MONACO:"MC",MONGOLIA:"MN",MONTENEGRO:"ME",MONTSERRAT:"MS",MOROCCO:"MA",MOZAMBIQUE:"MZ",MYANMAR:"MM",NAMIBIA:"NA",NAURU:"NR",NEPAL:"NP",NETHERLANDS:"NL",NEW_CALEDONIA:"NC",NEW_ZEALAND:"NZ",NICARAGUA:"NI",NIGER:"NE",NIGERIA:"NG",NIUE:"NU",NORFOLK_ISLAND:"NF",NORTH_KOREA:"KP",NORTH_MACEDONIA:"MK",NORTHERN_MARIANA_ISLANDS:"MP",NORWAY:"NO",OMAN:"OM",PAKISTAN:"PK",PALAU:"PW",PALESTINE:"PS",PANAMA:"PA",PAPUA_NEW_GUINEA:"PG",PARAGUAY:"PY",PERU:"PE",PHILIPPINES:"PH",PITCAIRN_ISLANDS:"PN",POLAND:"PL",PORTUGAL:"PT",PUERTO_RICO:"PR",QATAR:"QA",REPUBLIC_OF_THE_CONGO:"CG",R\u00c9UNION:"RE",ROMANIA:"RO",RUSSIA:"RU",RWANDA:"RW",SAINT_BARTH\u00c9LEMY:"BL",SAINT_HELENA:"SH",SAINT_KITTS_AND_NEVIS:"KN",SAINT_LUCIA:"LC",SAINT_MARTIN:"MF",SAINT_PIERRE_AND_MIQUELON:"PM",SAINT_VINCENT_AND_THE_GRENADINES:"VC",SAMOA:"WS",SAN_MARINO:"SM",SAO_TOME_AND_PRINCIPE:"ST",SAUDI_ARABIA:"SA",SENEGAL:"SN",SERBIA:"RS",SEYCHELLES:"SC",SIERRA_LEONE:"SL",SINGAPORE:"SG",SINT_MAARTEN:"SX",SLOVAKIA:"SK",SLOVENIA:"SI",SOLOMON_ISLANDS:"SB",SOMALIA:"SO",SOUTH_AFRICA:"ZA",SOUTH_GEORGIA_AND_THE_SOUTH_SANDWICH_ISLANDS:"GS",SOUTH_KOREA:"KR",SOUTH_SUDAN:"SS",SPAIN:"ES",SRI_LANKA:"LK",SUDAN:"SD",SURINAME:"SR",SVALBARD_AND_JAN_MAYEN:"SJ",SWAZILAND:"SZ",SWEDEN:"SE",SWITZERLAND:"CH",SYRIA:"SY",TAIWAN:"TW",TAJIKISTAN:"TJ",TANZANIA:"TZ",THAILAND:"TH",TOGO:"TG",TOKELAU:"TK",TONGA:"TO",TRINIDAD_AND_TOBAGO:"TT",TUNISIA:"TN",TURKEY:"TR",TURKMENISTAN:"TM",TURKS_AND_CAICOS_ISLANDS:"TC",TUVALU:"TV",UGANDA:"UG",UKRAINE:"UA",UNITED_ARAB_EMIRATES:"AE",UNITED_KINGDOM:"GB",UNITED_STATES:"US",URUGUAY:"UY",US_MINOR_OUTLYING_ISLANDS:"UM",US_VIRGIN_ISLANDS:"VI",UZBEKISTAN:"UZ",VANUATU:"VU",VATICAN_CITY:"VA",VENEZUELA:"VE",VIETNAM:"VN",WALLIS_AND_FUTUNA:"WF",WESTERN_SAHARA:"EH",YEMEN:"YE",ZAMBIA:"ZM",ZIMBABWE:"ZW"},v={ARTICLE:"article",AUDIOBOOK:"audiobook",BOOK:"book",BOOK_EXCERPT:"book_excerpt",BOOK_UNAVAILABLE:"book_unavailable",COMIC:"comic",DOCUMENT:"document",FEATURED:"featured_document",MAGAZINE:"magazine",PODCAST:"podcast",PODCAST_EPISODE:"podcast_episode",PUBLICATION_ISSUE:"publication_issue",SHEET_MUSIC:"sheet_music",SHEET_MUSIC_CHAPTER:"sheet_music_chapter",SUMMARY:"summary",SUMMARY_AUDIO:"summary_audio",SUMMARY_CANONICAL:"summary_canonical",SUMMARY_TEXT:"summary_text",UNUSABLE_STUB:"unusable_stub"},_=(v.ARTICLE,v.AUDIOBOOK,v.BOOK,v.DOCUMENT,v.MAGAZINE,v.PODCAST,v.PODCAST_EPISODE,v.PUBLICATION_ISSUE,v.SHEET_MUSIC,v.SHEET_MUSIC_CHAPTER,v.SUMMARY_CANONICAL,{QUICKVIEW_CELL:"qcid",QUICKVIEW_CAROUSEL_PADDLE:"qcp",QUICKVIEW_SIBLING:"qsib",MODAL:"modal"}),A={MEGAMENU_CONTAINER:"global_header",MODAL_FLASHES:"modal_flashes"},y={AUDIOBOOK:"audiobook",AUDIOBOOK_CATEGORY:"audiobook_category",BESTSELLERS:"bestsellers",BOOK:"book",BOOK_CATEGORY:"book_category",DOCUMENT:"document",DOCUMENT_CATEGORY:"document_category",EMBED:"embed",LOGGED_IN_HOMEPAGE:"logged_in_homepage",LOGGED_OUT_HOMEPAGE:"logged_out_homepage",MAGAZINE_ARTICLE:"magazine_article",MAGAZINE_CATEGORY:"magazine_category",MAGAZINE_ISSUE:"magazine_issue",MAGAZINE_PUBLICATION:"magazine_publication",PERKS_LANDING:"perks_landing",PODCAST:"podcast",PODCAST_CATEGORY:"podcast_category",PODCAST_SHOW:"podcast_show",PROMO_LANDING:"promo_landing",READ_FREE_LANDING:"read_free_landing",READ_PREVIEW:"read_preview",SHEET_MUSIC_CATEGORY:"sheet_music_category",SHEET_MUSIC_LANDING:"sheet_music_landing",SLIDESHARE_LANDING:"slideshare_landing",SNAPSHOT:"snapshot",SNAPSHOT_CATEGORY:"snapshot_category",SUBSCRIBE_LANDING:"subscribe_landing",SUBSCRIBE_NOW_LANDING:"subscribe_now_landing",UNCATEGORIZED:"uncategorized",WHAT_IS_SCRIBD_LANDING:"what_is_scribd_landing"},b={ERROR:"error",INFO:"info",NOTICE:"notice",SUCCESS:"success"},E={ARRAY:"array",OBJECT:"object",STRING:"string"},w={DE:{lang:"de",language:"de",lcid:"de",name:"Deutsch",prefix:"de"},EN:{lang:"en_US",language:"en-US",lcid:"en",name:"English",prefix:"en"},ES:{lang:"es-419",language:"es-419",lcid:"es",name:"espa\xf1ol",prefix:"es"},FR:{lang:"fr",language:"fr",lcid:"fr",name:"fran\xe7ais",prefix:"fr"},ID:{lang:"id_ID",language:"id-ID",lcid:"id",name:"Bahasa Indonesia",prefix:"id"},IT:{lang:"it",language:"it",lcid:"it",name:"italiano",prefix:"it"},PT:{lang:"pt_BR",language:"pt-BR",lcid:"pt-br",name:"portugu\xeas",prefix:"pt"},RO:{lang:"ro_RO",language:"ro-RO",lcid:"ro",name:"Rom\xe2n\u0103",prefix:"ro"},RU:{lang:"ru_RU",language:"ru-RU",lcid:"ru",name:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",prefix:"ru"}},x={ACCOUNT_CREATION:"ACCOUNT_CREATION",ADD_TO_LIST:"ADD_TO_LIST",ANNUAL_UPGRADE:"ANNUAL_UPGRADE",ANNUAL_UPSELL:"ANNUAL_UPSELL",CONFIRM_DELETE_REVIEW:"CONFIRM_DELETE_REVIEW",CONFIRM_UNSAVE_ITEM_IN_LIST:"CONFIRM_UNSAVE_ITEM_IN_LIST",CONFIRM_UNSAVE_ITEM:"CONFIRM_UNSAVE_ITEM",CREATE_LIST:"CREATE_LIST",DOWNLOAD_DOCUMENT:"DOWNLOAD_DOCUMENT",GET_APP:"GET_APP",GOOGLE_ONE_TAP_UPSELL:"GOOGLE_ONE_TAP_UPSELL",LANGUAGE_PICKER:"LANGUAGE_PICKER",LOCK_SHOCK_ROADBLOCK:"LOCK_SHOCK_ROADBLOCK",PRIVACY_POLICY_EXPLICIT_CONSENT:"PRIVACY_POLICY_EXPLICIT_CONSENT",SOCIAL_MEDIA_SHARE:"SOCIAL_MEDIA_SHARE"},I={AFFILIATE_LEADER_CTA:"affiliate_leader_cta",AFFILIATE_SEO_DOCUMENTS_CTA:"affiliate_seo_documents_cta",ARTICLE_PREVIEW_FREE_MONTH:"article_preview_free_month",BESTSELLERS_PROMO_BANNER_READ_FREE:"bestsellers_promo_banner_read_free",CONTENT_PREVIEW_PREVIEW_SIGN_UP:"content_preview_preview_sign_up",CONTENT_PREVIEW_PREVIEW_START_FREE:"content_preview_preview_start_free",CONTENT_PREVIEW_PRIMARY_ACTION_START_FREE:"content_preview_primary_action_start_free",CONTENT_PREVIEW_SUBSCRIPTION_BANNER_START_FREE:"content_preview_subscription_banner_start_free",DOC_PAGE_BLUR_PROMO_CONTINUE_FOR_FREE:"doc_page_blur_promo_continue_for_free",DOC_PAGE_DOWNLOAD_NOW:"doc_page_download_now",DOC_PAGE_EXIT_MODAL_READ_FREE:"doc_page_exit_modal_read_free",DOC_PAGE_MOBILE_SUBSCRIBE_BANNER_READ_FREE:"doc_page_mobile_subscribe_banner_read_free",DOC_PAGE_PREVIEW_MESSAGE_CONTINUE_FOR_FREE:"doc_page_preview_message_continue_for_free",DOC_PAGE_STATIC_PROMO_READ_FREE:"doc_page_static_promo_read_free",EMBED_DOWNLOAD:"embed_download",EXPLORE_PAGE_PROMO_BANNER_READ_FREE:"explore_page_promo_banner_read_free",FANCY_HEADER_READ_FREE:"fancy_header_read_free",FANCY_HEADER_TRY_SCRIBD:"fancy_header_try_scribd",LANDING_HERO_BANNER_READ_FREE:"landing_hero_banner_read_free",LANDING_LEADER_CTA:"landing_leader_cta",LANDING_PERSONALIZED_LEADER_CTA:"landing_personalized_leader_cta",LANDING_PRIMARY_LEADER_CTA:"landing_primary_leader_cta",LANDING_SEO_OFFERINGS_CTA:"landing_seo_offerings_cta",LOGGED_IN_HOMEPAGE_UPSELL_BANNER_START_FREE:"logged_in_homepage_upsell_banner_start_free",MAGAZINE_ARTICLE_START_FREE:"magazine_article_start_free",MEGAMENU_READ_FREE:"megamenu_read_free",PROMO_LANDING_SUBMIT_PROMO_CODE:"promo_landing_submit_promo_code",READ_PAGE_END_OF_PREVIEW:"read_page_end_of_preview",READ_PAGE_TRIAL_BANNER:"read_page_trial_banner",UNCATEGORIZED:"uncategorized",WHAT_IS_SCRIBD_LANDING_MULTIDEVICE_MODULE_READ_FREE:"what_is_scribd_landing_multidevice_module_read_free",WHAT_IS_SCRIBD_LANDING_STICKY_FOOTER_READ_FREE:"what_is_scribd_landing_sticky_footer_read_free"},M={ANALYTICS:"ANALYTICS",ESSENTIAL:"ESSENTIAL",MARKETING:"MARKETING",PERSONALIZATION:"PERSONALIZATION"},S={DEFAULT:"default",INFO:"info",SUCCESS:"success"},C=/Android|iPhone|iPad|iPod/i,N={TYPES:{INVISIBLE:"invisible",CHECKBOX:"checkbox",NONE:"none"},SITE_KEYS:{INVISIBLE:"6LeImq4UAAAAAAvTbjthwoOw2rtOwrfjXZbDxujw",CHECKBOX:"6LeImq4UAAAAAAvTbjthwoOw2rtOwrfjXZbDxujw",DEMO:"6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"}},T={ARCHIVE:"archive",EXPIRING:"expiring",FREE:"free",FULL_ACCESS:"full_access",GEO_RESTRICTED:"geo_restricted",NOT_AVAILABLE:"not_available",NO_ACCESS:"no_access",PREVIEW_ACCESS:"preview_access",PREVIEW_NO_SUB:"preview_no_sub",SAMPLE:"sample",SCRIBD_SELECT:"scribd_select",THROTTLED:"throttled",VIEW_RESTRICTED:"view_restricted"},L={CURATED_COLLECTION:"curated_collection"},D={BACK:"BACK",DOWN:"down",FORWARD:"FORWARD",UP:"up"},O={READ_FREE:"readFree",START_TRIAL:"startTrial"},k={LINK:"link",PRIMARY_BLACK:"primaryBlack",PRIMARY_TEAL:"primaryTeal",PRIMARY_WHITE:"primaryWhite",SECONDARY_TEAL:"secondaryTeal"},R={LOADING:"loading",USING_PROMO_CODE:"using_promo_code",SUBSCRIBER_DUNNING_LOCK:"subscriber_dunning_lock",SUBSCRIBER_THROTTLED:"subscriber_throttled",SUBSCRIBER_FULL_ACCESS:"subscriber_full_access",LOGGED_IN_ABORTED:"aborted",LOGGED_IN_CANCELED_EXPIRED:"canceled_expired",LOGGED_IN_FULL_ACCESS:"logged_in_full_access",LOGGED_IN_SUBSCRIBER:"subscriber",LOGGED_IN_TRIAL_ELIGIBLE:"logged_in_trial_eligible",LOGGED_IN_TRIAL_INELIGIBLE:"logged_in_trial_ineligible",LOGGED_IN_PAUSED:"paused",LOGGED_OUT_TRIAL_ELIGIBLE:"logged_out_trial_eligible",LOGGED_IN_UNAVAILABLE:"logged_in_unavailable",LOGGED_OUT_FULL_ACCESS:"logged_out_full_access",LOGGED_OUT_PREVIEW:"logged_out_preview",LOGGED_OUT_UNAVAILABLE:"logged_out_unavailable"},j={ERROR:"ERROR",LOADING:"LOADING",SUCCESS:"SUCCESS",SLIDE:"SLIDE",JUMP:"JUMP"},P={CLOSE_BUTTON:"close_button",OUTSIDE_CLICK:"outside_click",TITLE:"title_click",UNSAVE_ITEM:"unsave_item"},U={XL:"xl",L:"l",M:"m",S:"s",XS:"xs",XXS:"xxs"},z=(U.XL,U.L,U.M,U.S,U.XS,U.XXS,Object.values(U),{DS1:{breakpoint_320:320,breakpoint_360:360,breakpoint_450:450,breakpoint_550:550,breakpoint_700:700,breakpoint_950:950,breakpoint_1024:1024,breakpoint_1141:1141,breakpoint_1190:1190,breakpoint_1376:1376},DS2:{[U.XXS]:320,[U.XS]:360,[U.S]:512,[U.M]:808,[U.L]:1008,[U.XL]:1248}}),B={BANNER:"banner",BORDER:"border",SHADOW:"shadow"},q={AUDIOBOOK:"audiobook",AUDIOBOOK_BANNER:"audiobookBanner",AUDIOBOOK_CONTENT_CELL:"audiobookContentCell",BOOK:"book",BOOK_BANNER:"bookBanner",BOOK_CONTENT_CELL:"bookContentCell",DOCUMENT_CONTENT_CELL:"documentContentCell",MAGAZINE_CONTENT_CELL:"magazineContentCell",PODCAST:"podcast",PODCAST_BANNER:"podcastBanner",PODCAST_CONTENT_CELL:"podcastContentCell",PODCAST_EPISODE_CONTENT_CELL:"podcastEpisodeContentCell",SHEET_MUSIC_CONTENT_CELL:"sheetMusicContentCell",SHEET_MUSIC_CHAPTER_CONTENT_CELL:"sheetMusicChapterContentCell",SNAPSHOT_CONTENT_CELL:"snapshotContentCell"},F={DEFAULT:"default",INLINE_TEXT:"inlineText",PERCENTAGE:"percentage"},Z={TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},G={BOTTOM_LEFT:"bottomLeft",BOTTOM_RIGHT:"bottomRight",LEFT_BOTTOM:"leftBottom",LEFT_TOP:"leftTop",RIGHT_BOTTOM:"rightBottom",RIGHT_TOP:"rightTop",TOP_LEFT:"topLeft",TOP_RIGHT:"topRight"}},6790:(e,t,n)=>{"use strict";n.d(t,{iC:()=>c,kT:()=>d});var r=n(7294),i=n(1320),o=n(3980),a=n.n(o),s=(0,r.createContext)({elementPlaying:null,setElementPlaying:i.ZT});function u(){return u=Object.assign||function(e){for(var t=1;t{i?(()=>{var{current:t}=e;n(null),t.pause()})():(()=>{var{current:r}=e;t&&t.pause(),n(r),r.play()})()},handleEnded:()=>{n(null)},isPlaying:i}}function c(e){function t(t){var{audioElementRef:n,handleClick:i,handleEnded:o,isPlaying:a}=l();return r.createElement(r.Fragment,null,r.createElement("audio",{src:t.url,preload:"none",ref:n,onEnded:o}),r.createElement(e,u({},t,{handleClick:e=>{t.handleClick(e),i(e)},isPlaying:a})))}return t.defaultProps={handleClick:i.ZT},t.propTypes={url:a().string.isRequired,handleClick:a().func},t}function d(e){return t=>{var[n,i]=(0,r.useState)(null),o={elementPlaying:n,setElementPlaying:i};return r.createElement(s.Provider,{value:o},r.createElement(e,t))}}},1879:(e,t,n)=>{"use strict";n.d(t,{wt:()=>fe,V6:()=>ge,V1:()=>ve,gk:()=>ht,yg:()=>Ht});var r=n(7903),i=n(1169);var o=n(6940),a=n(984);function s(){return(0,a.Z)({name:o.V$.LANGUAGE_PICKER,isDismissable:!0,fitWidth:!0})}var u=n(1004);var l=n(4993),c=n(5908),d=n(579),p=n(5561);const f=e=>({type:p.Z.CLOSE_TOAST,id:e});var h=n(7294),g=n(3935),m=n(9371),v=n(3845),_=n(1320),A=n(4040),y=n(375),b=n(6677),E=n(1182),w=n(8570),x=n(3463),I=n.n(x);function M(e,t){if(!e){var n=new Error("loadable: "+t);throw n.framesToPop=1,n.name="Invariant Violation",n}}var S=h.createContext();var C={initialChunks:{}},N="PENDING",T="REJECTED";var L=function(e){return e};function D(e){var t=e.defaultResolveComponent,n=void 0===t?L:t,r=e.render,i=e.onLoad;function o(e,t){void 0===t&&(t={});var o=function(e){return"function"===typeof e?{requireAsync:e,resolve:function(){},chunkName:function(){}}:e}(e),a={};function s(e){return t.cacheKey?t.cacheKey(e):o.resolve?o.resolve(e):"static"}function u(e,r,i){var o=t.resolveComponent?t.resolveComponent(e,r):n(e);if(t.resolveComponent&&!(0,w.isValidElementType)(o))throw new Error("resolveComponent returned something that is not a React component!");return I()(i,o,{preload:!0}),o}var l,c=function(e){function n(n){var r;return(r=e.call(this,n)||this).state={result:null,error:null,loading:!0,cacheKey:s(n)},M(!n.__chunkExtractor||o.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),n.__chunkExtractor?(!1===t.ssr||(o.requireAsync(n).catch((function(){return null})),r.loadSync(),n.__chunkExtractor.addChunk(o.chunkName(n))),(0,b.Z)(r)):(!1!==t.ssr&&(o.isReady&&o.isReady(n)||o.chunkName&&C.initialChunks[o.chunkName(n)])&&r.loadSync(),r)}(0,E.Z)(n,e),n.getDerivedStateFromProps=function(e,t){var n=s(e);return(0,y.Z)({},t,{cacheKey:n,loading:t.loading||t.cacheKey!==n})};var l=n.prototype;return l.componentDidMount=function(){this.mounted=!0;var e=this.getCache();e&&e.status===T&&this.setCache(),this.state.loading&&this.loadAsync()},l.componentDidUpdate=function(e,t){t.cacheKey!==this.state.cacheKey&&this.loadAsync()},l.componentWillUnmount=function(){this.mounted=!1},l.safeSetState=function(e,t){this.mounted&&this.setState(e,t)},l.getCacheKey=function(){return s(this.props)},l.getCache=function(){return a[this.getCacheKey()]},l.setCache=function(e){void 0===e&&(e=void 0),a[this.getCacheKey()]=e},l.triggerOnLoad=function(){var e=this;i&&setTimeout((function(){i(e.state.result,e.props)}))},l.loadSync=function(){if(this.state.loading)try{var e=u(o.requireSync(this.props),this.props,p);this.state.result=e,this.state.loading=!1}catch(t){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:o.resolve(this.props),chunkName:o.chunkName(this.props),error:t?t.message:t}),this.state.error=t}},l.loadAsync=function(){var e=this,t=this.resolveAsync();return t.then((function(t){var n=u(t,e.props,{Loadable:p});e.safeSetState({result:n,loading:!1},(function(){return e.triggerOnLoad()}))})).catch((function(t){return e.safeSetState({error:t,loading:!1})})),t},l.resolveAsync=function(){var e=this,t=this.props,n=(t.__chunkExtractor,t.forwardedRef,(0,A.Z)(t,["__chunkExtractor","forwardedRef"])),r=this.getCache();return r||((r=o.requireAsync(n)).status=N,this.setCache(r),r.then((function(){r.status="RESOLVED"}),(function(t){console.error("loadable-components: failed to asynchronously load component",{fileName:o.resolve(e.props),chunkName:o.chunkName(e.props),error:t?t.message:t}),r.status=T}))),r},l.render=function(){var e=this.props,n=e.forwardedRef,i=e.fallback,o=(e.__chunkExtractor,(0,A.Z)(e,["forwardedRef","fallback","__chunkExtractor"])),a=this.state,s=a.error,u=a.loading,l=a.result;if(t.suspense&&(this.getCache()||this.loadAsync()).status===N)throw this.loadAsync();if(s)throw s;var c=i||t.fallback||null;return u?c:r({fallback:c,result:l,options:t,props:(0,y.Z)({},o,{ref:n})})},n}(h.Component),d=(l=c,function(e){return h.createElement(S.Consumer,null,(function(t){return h.createElement(l,Object.assign({__chunkExtractor:t},e))}))}),p=h.forwardRef((function(e,t){return h.createElement(d,Object.assign({forwardedRef:t},e))}));return p.preload=function(e){o.requireAsync(e)},p.load=function(e){return o.requireAsync(e)},p}return{loadable:o,lazy:function(e,t){return o(e,(0,y.Z)({},t,{suspense:!0}))}}}var O=D({defaultResolveComponent:function(e){return e.__esModule?e.default:e.default||e},render:function(e){var t=e.result,n=e.props;return h.createElement(t,n)}}),k=O.loadable,R=O.lazy,j=D({onLoad:function(e,t){e&&t.forwardedRef&&("function"===typeof t.forwardedRef?t.forwardedRef(e):t.forwardedRef.current=e)},render:function(e){var t=e.result,n=e.props;return n.children?n.children(t):null}}),P=j.loadable,U=j.lazy;var z=k;z.lib=P,R.lib=U;const B=z;var q=n(2779),F=n.n(q),Z=n(6002),G=n(1783),Y=n(9207);function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var X=["inModal"],$=e=>{var t=[],n=[];return Object.values(e.flashes.items).forEach((e=>{var{inModal:r}=e,i=K(e,X);r?n.push(i):t.push(i)})),{modalFlashes:n,pageFlashes:t}},J=e=>({closeFlash:t=>e(function(e){return{type:i.Z.CLOSE_FLASH,id:e}}(t))}),ee="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},te={exports:{}};var ne,re,ie,oe;function ae(){if(re)return ne;re=1;return ne="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}te.exports=function(){if(oe)return ie;oe=1;var e=ae();function t(){}function n(){}return n.resetWarningCache=t,ie=function(){function r(t,n,r,i,o,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var se="FlashManager-module_flashManager__VBoJC";function ue(e,t){return e.map((e=>h.createElement(m.Tx,Q({key:"flash_".concat(e.id)},e,{closeFlash:()=>t(e.id)}))))}class le extends h.Component{constructor(e){super(e),this.root=null,this.el=null,"undefined"!==typeof window&&(this.el=document.createElement("div"))}get modalFlashElement(){return document.getElementById("modal-flashes")}componentDidMount(){this.appendPortal()}componentDidUpdate(){this.appendPortal()}appendPortal(){this.modalFlashElement!==this.root&&(this.root=this.modalFlashElement,this.root&&this.root.appendChild(this.el))}render(){var{pageFlashes:e,modalFlashes:t,closeFlash:n}=this.props;return h.createElement(h.Fragment,null,this.el&&(0,g.createPortal)(ue(t,n),this.el),h.createElement("div",{className:se,"data-e2e":"flash-manager"},ue(e,n)))}}le.propTypes={pageFlashes:te.exports.arrayOf(te.exports.shape({className:te.exports.string,content:te.exports.string,flashType:te.exports.oneOf(Object.values(o.Se)),fullBorder:te.exports.bool,id:te.exports.number.isRequired,isDismissable:te.exports.bool,raw:te.exports.bool})),modalFlashes:te.exports.arrayOf(te.exports.shape({className:te.exports.string,content:te.exports.string,flashType:te.exports.oneOf(Object.values(o.Se)),fullBorder:te.exports.bool,id:te.exports.number.isRequired,isDismissable:te.exports.bool,raw:te.exports.bool})),closeFlash:te.exports.func.isRequired};(0,r.$j)($,J)(le);var ce="FlashManager-ds2-module_flashManager__oUqAf";function de(e,t){return e.map((e=>h.createElement(m.rB,Q({key:"flash_".concat(e.id)},e,{closeFlash:()=>t(e.id)}))))}class pe extends h.Component{constructor(e){super(e),this.root=null,this.el=null,"undefined"!==typeof window&&(this.el=document.createElement("div"))}get modalFlashElement(){return document.getElementById(o.Dh.MODAL_FLASHES)}componentDidMount(){this.appendPortal()}componentDidUpdate(){this.appendPortal()}appendPortal(){this.modalFlashElement!==this.root&&(this.root=this.modalFlashElement,this.root&&this.root.appendChild(this.el))}render(){var{pageFlashes:e,modalFlashes:t,closeFlash:n}=this.props;return h.createElement(h.Fragment,null,this.el&&(0,g.createPortal)(de(t,n),this.el),h.createElement("div",{className:ce,"data-e2e":"flash-manager"},de(e,n)))}}pe.propTypes={closeFlash:te.exports.func.isRequired,modalFlashes:te.exports.arrayOf(te.exports.shape({className:te.exports.string,content:te.exports.string,flashType:te.exports.oneOf(Object.values(o.Se)),fullBorder:te.exports.bool,id:te.exports.number.isRequired,isDismissable:te.exports.bool,raw:te.exports.bool})),pageFlashes:te.exports.arrayOf(te.exports.shape({className:te.exports.string,content:te.exports.string,flashType:te.exports.oneOf(Object.values(o.Se)),fullBorder:te.exports.bool,id:te.exports.number.isRequired,isDismissable:te.exports.bool,raw:te.exports.bool}))},pe.defaultProps={modalFlashes:[],pageFlashes:[]};var fe=(0,r.$j)($,J)(pe);function he(e){var{openGetAppModal:t,openLanguageModal:n}=e;return h.createElement(v.$_,{openGetAppModal:t,openLanguageModal:n})}he.propTypes={openGetAppModal:te.exports.func.isRequired,openLanguageModal:te.exports.func.isRequired,page:te.exports.string.isRequired};var ge=(0,r.$j)(null,((e,t)=>({openGetAppModal:()=>{e(function({saveOnSuccess:e,document:t,slim:n=!1,trackingPrefix:r,trackingData:i}){return(0,a.Z)({name:o.V$.GET_APP,modalProps:{saveOnSuccess:e,document:t,trackingPrefix:r,trackingData:i},slim:n})}({trackingPrefix:"get_app_modal",trackingData:{page:t.page,loc:"footer"}}))},openLanguageModal:()=>{e(s())}})))(he);function me(e){var{brand:t,openLanguageModal:n,openSignInModal:r,openSignUpModal:i,searchFunction:o,searchQuery:a}=e;return h.createElement(h.Fragment,null,h.createElement(v.X9,{brand:t,isFixed:!1,openLanguageModal:n,openSignInModal:r,openSignUpModal:i,searchFunction:o,searchQuery:a}),h.createElement(v.X8,{brand:t,openLanguageModal:n,openSignInModal:r,openSignUpModal:i}))}me.propTypes={brand:te.exports.string,openLanguageModal:te.exports.func.isRequired,openSignInModal:te.exports.func.isRequired,openSignUpModal:te.exports.func.isRequired,searchFunction:te.exports.func,searchQuery:te.exports.string},me.defaultProps={brand:null};var ve=(0,r.$j)((e=>({languageModalPropsPath:e.static.routes.languageModalPropsPath})),((e,t)=>({openLanguageModal:()=>e(s()),openSignInModal:n=>{var r,{loc:i,nextUrl:a}=n;return e((r={bypassForceCloseLoadingModal:!0,trackingData:{page:t.page,loc:i},nextUrl:_.v_.bind(null,a)},(0,u.Z)({initialView:o.pe.VIEWS.LOGIN,...r})))},openSignUpModal:n=>{var{loc:r,nextUrl:i}=n;return e((0,l.Z)({trackingData:{page:t.page,loc:r},nextUrl:i}))}})))(me);function _e(){return _e=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function ye(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var be,Ee,we,xe;function Ie(){if(Ee)return be;Ee=1;return be="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Me(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}(function(){if(xe)return we;xe=1;var e=Ie();function t(){}function n(){}return n.resetWarningCache=t,we=function(){function r(t,n,r,i,o,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}})()();var Se=!1,Ce=h.createContext(null),Ne="unmounted",Te="exited",Le="entering",De="entered",Oe="exiting",ke=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Te,r.appearStatus=Le):i=De:i=t.unmountOnExit||t.mountOnEnter?Ne:Te,r.state={status:i},r.nextCallback=null,r}ye(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ne?{status:Te}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Le&&n!==De&&(t=Le):n!==Le&&n!==De||(t=Oe)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===Le?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===Te&&this.setState({status:Ne})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[g.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||Se?this.safeSetState({status:De},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:Le},(function(){t.props.onEntering(o,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:De},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:g.findDOMNode(this);t&&!Se?(this.props.onExit(r),this.safeSetState({status:Oe},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Te},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Te},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:g.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ne)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Ae(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return h.createElement(Ce.Provider,{value:null},"function"===typeof n?n(e,r):h.cloneElement(h.Children.only(n),r))},t}(h.Component);function Re(){}ke.contextType=Ce,ke.propTypes={},ke.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Re,onEntering:Re,onEntered:Re,onExit:Re,onExiting:Re,onExited:Re},ke.UNMOUNTED=Ne,ke.EXITED=Te,ke.ENTERING=Le,ke.ENTERED=De,ke.EXITING=Oe;var je=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},Pe=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=Me(n.className,r):n.setAttribute("class",Me(n.className&&n.className.baseVal||"",r)));var n,r}))},Ue=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i{this.props.isDismissable&&this.props.closeModal()})),V(this,"handleKeydown",(e=>{e.stopPropagation(),e.which===_.keyMappings.esc&&this.props.isDismissable&&this.hideModal(),document.body.classList.add("keyboard_focus"),(0,_._h)({children:(0,_.Ng)(this.modalRef.current),enableArrowKeys:!1,event:e,tabCycle:!0})})),V(this,"handleExited",(()=>{this.props.removeModal()})),this.focusTrap=null,this.state={isVisible:!1},this.focusTargetOnClose=null,this.modalRef=h.createRef()}componentDidMount(){this.focusTargetOnClose=this.props.focusTargetOnClose?document.querySelector(this.props.focusTargetOnClose):document.activeElement,document.body.classList.add(Je),this.setState({isVisible:this.props.isVisible})}componentDidUpdate(e,t){this.modalRef&&this.modalRef.current&&this.state.isVisible&&!t.isVisible&&this.modalRef.current.focus(),this.props.isVisible!==e.isVisible&&this.setState({isVisible:this.props.isVisible})}componentWillUnmount(){document.body.classList.remove(Je),this.focusTargetOnClose&&this.focusTargetOnClose instanceof Element&&this.focusTargetOnClose.focus()}render(){var{children:e,className:t,unstyled:n}=this.props,r={["data-".concat(o.qI.MODAL)]:"generic-modal"};return h.createElement(Ue,{in:this.state.isVisible,timeout:200,onExited:this.handleExited,classNames:{enterActive:tt,enterDone:et,exitActive:nt,exitDone:rt},onKeyDown:this.handleKeydown},h.createElement("div",Q({"data-testid":"wrapper",className:F()($e,t),onClick:this.hideModal},r),h.createElement("div",{className:it},h.createElement("div",{id:"modal-flashes"}),h.createElement("div",{"aria-hidden":"false","aria-labelledby":"modal_title",className:F()(ot,{[at]:n}),"data-e2e":"modal",ref:this.modalRef,role:"dialog",tabIndex:"-1",onClick:e=>e.stopPropagation()},e))))}}st.propTypes={children:te.exports.node.isRequired,className:te.exports.string,closeAllModals:te.exports.func,closeModal:te.exports.func.isRequired,"data-e2e":te.exports.string,focusTargetOnClose:te.exports.string,isDismissable:te.exports.bool.isRequired,isVisible:te.exports.bool.isRequired,removeModal:te.exports.func.isRequired,unstyled:te.exports.bool},st.defaultProps={className:"",focusTargetOnClose:null,unstyled:!1};var ut={closeModal:c.Z,removeModal:d.Z},lt=(0,r.$j)((e=>{var{className:t,focusTargetOnClose:n,isDismissable:r,isVisible:i,unstyled:o}=e.modal;return{className:t,focusTargetOnClose:n,isDismissable:r,isVisible:i,unstyled:o}}),ut)(st),ct="ModalManager-module_wrapper__0Ofn5",dt="ModalManager-module_loading__MFXGg",pt=()=>h.createElement("div",{className:dt},h.createElement(m.$j,null));function ft(e){var{mapper:t,name:n,modalProps:r}=e;if(!n)return h.createElement("div",{className:ct});try{if(!t[n])throw new Error("Unmapped Modal Error");var{component:i,loader:o}=t[n],a=B(i);return h.createElement("div",{className:ct},h.createElement(lt,null,h.createElement(a,Q({},r,{fallback:o||h.createElement(pt,null)}))))}catch(s){return(0,_.Tb)(s),h.createElement("div",{className:ct})}}ft.propTypes={modalProps:te.exports.object,mapper:te.exports.object.isRequired,name:te.exports.string},ft.defaultProps={modalProps:{},name:null};var ht=(0,r.$j)((e=>{var{name:t,modalProps:n}=e.modal;return{name:t,modalProps:n}}))(ft),gt={removeModal:d.Z},mt={modalWrapper:"ModalWrapper-module_modalWrapper__vpE-7",skrim:"ModalWrapper-module_skrim__ptBG5",scrollLock:"ModalWrapper-module_scrollLock__faIdA",enterDone:"ModalWrapper-module_enterDone__XxXI0",modal:"ModalWrapper-module_modal__Vznlt",enterActive:"ModalWrapper-module_enterActive__ehMM1",exitActive:"ModalWrapper-module_exitActive__aH-K6",exitDone:"ModalWrapper-module_exitDone__o6p0o",unstyled:"ModalWrapper-module_unstyled__LOj23",modalWidthSmall:"ModalWrapper-module_modalWidthSmall__3-Sy3",modalFitWidth:"ModalWrapper-module_modalFitWidth__62eN-"};class vt extends h.Component{constructor(e){super(e),V(this,"hideModal",(()=>{this.props.isDismissable&&this.props.closeModal()})),V(this,"handleKeydown",(e=>{e.stopPropagation(),e.which===_.keyMappings.esc&&this.props.isDismissable&&this.hideModal(),document.body.classList.add("keyboard_focus"),(0,_._h)({children:(0,_.Ng)(this.modalRef.current),enableArrowKeys:!1,event:e,tabCycle:!0})})),this.focusTrap=null,this.focusTargetOnClose=null,this.modalRef=h.createRef()}componentDidMount(){this.focusTargetOnClose=this.props.focusTargetOnClose?document.querySelector(this.props.focusTargetOnClose):document.activeElement,document.body.classList.add(mt.scrollLock),this.modalRef&&this.modalRef.current&&this.modalRef.current.focus()}componentWillUnmount(){document.body.classList.remove(mt.scrollLock),this.focusTargetOnClose&&this.focusTargetOnClose instanceof Element&&this.focusTargetOnClose.focus()}render(){var{"aria-labelledby":e,children:t,className:n,"data-e2e":r,slim:i,unstyled:a,fitWidth:s}=this.props;return h.createElement("div",{className:F()(mt.modalWrapper),"data-testid":"wrapper",onKeyDown:this.handleKeydown},h.createElement("div",{className:mt.skrim,"data-testid":"skrim",onClick:this.hideModal}),h.createElement("div",{id:o.Dh.MODAL_FLASHES}),h.createElement("div",{"aria-hidden":"false","aria-labelledby":e,className:F()(mt.modal,n,{[mt.modalWidthSmall]:i,[mt.unstyled]:a,[mt.modalFitWidth]:s}),"data-e2e":r,ref:this.modalRef,role:"dialog",tabIndex:"-1",onClick:e=>e.stopPropagation()},t))}}vt.propTypes={"aria-labelledby":te.exports.string,children:te.exports.node.isRequired,className:te.exports.string,closeModal:te.exports.func.isRequired,"data-e2e":te.exports.string,fitWidth:te.exports.bool,focusTargetOnClose:te.exports.string,isDismissable:te.exports.bool.isRequired,slim:te.exports.bool,unstyled:te.exports.bool},vt.defaultProps={className:"","data-e2e":"modal",fitWidth:!1,focusTargetOnClose:null,slim:!1,unstyled:!1};var _t={closeModal:c.Z},At=(0,r.$j)(null,_t)(vt),yt="ModalLoader-module_loader__ClXhR",bt=()=>h.createElement("div",{className:yt,"data-testid":"modal-loader"});function Et(e){var{modal:t,modalProps:n,modalWrapperProps:r}=e;try{if(null===t)throw new Error("Can not load modal. Did you forget to map your modal in the ModalMapper?");var{component:i,loader:o}=t,a=B(i);return h.createElement(At,r,h.createElement(a,Q({},n,{fallback:o||h.createElement(bt,null)})))}catch(s){return(0,_.Tb)(s),null}}Et.propTypes={modal:te.exports.object,modalProps:te.exports.object.isRequired,modalWrapperProps:te.exports.object.isRequired},Et.defaultProps={modal:null};var{enterActive:wt,enterDone:xt,exitActive:It,exitDone:Mt}=mt;function St(e){var{isVisible:t,mapper:n,modalProps:r,modalWrapperProps:i,name:o,removeModal:a}=e;return o?h.createElement(Ue,{appear:!0,in:t,classNames:{enterActive:wt,enterDone:xt,exitActive:It,exitDone:Mt},onExited:a,timeout:300},h.createElement(Et,{modal:n[o],modalProps:r,modalWrapperProps:i})):null}St.propTypes={isVisible:te.exports.bool,mapper:te.exports.object.isRequired,modalProps:te.exports.object,modalWrapperProps:te.exports.shape({className:te.exports.string,focusTargetOnClose:te.exports.string,isDismissable:te.exports.bool,slim:te.exports.bool,unstyled:te.exports.bool}),name:te.exports.string,removeModal:te.exports.func.isRequired},St.defaultProps={isVisible:!1,modalProps:{},modalWrapperProps:{},name:null};(0,r.$j)((e=>{var{className:t,fitWidth:n,focusTargetOnClose:r,isDismissable:i,isVisible:o,name:a,modalProps:s,slim:u,unstyled:l}=e.modal;return{isVisible:o,name:a,modalProps:s,modalWrapperProps:{className:t,fitWidth:n,focusTargetOnClose:r,isDismissable:i,slim:u,unstyled:l}}}),gt)(St);var Ct="Toast-module_toast__tBLA2",Nt="Toast-module_enterDone__0NsA3",Tt="Toast-module_enterActive__u9qO5",Lt="Toast-module_exitActive__eeR4r",Dt="Toast-module_exitDone__pvesd",Ot="Toast-module_success__PrqIU",kt="Toast-module_notice__TQFXX",Rt="Toast-module_info__Vt3SE",jt="Toast-module_error__iMblu",Pt="Toast-module_icon__UTs5A",Ut={[o.Se.SUCCESS]:"success",[o.Se.ERROR]:"warning",[o.Se.NOTICE]:"abouttitle",[o.Se.INFO]:"abouttitle"};class zt extends h.Component{constructor(){super(...arguments),V(this,"state",{visible:!1}),V(this,"handleDismiss",(()=>{this.timer=window.setTimeout((()=>this.setState({visible:!1})),this.props.dismissSpeed)})),V(this,"handleMouseEnter",(()=>{clearTimeout(this.timer)})),V(this,"handleExited",(()=>{this.props.closeToast(this.props.id)}))}componentDidMount(){this.setState({visible:!0}),this.handleDismiss()}get icon(){return Ut[this.props.type]}get typeClassName(){switch(this.props.type){case o.Se.SUCCESS:return Ot;case o.Se.ERROR:return jt;case o.Se.INFO:return Rt;case o.Se.NOTICE:default:return kt}}get label(){switch(this.props.type){case o.Se.SUCCESS:return Z.Z.t("shared.common.success");case o.Se.ERROR:return Z.Z.t("shared.common.error");case o.Se.INFO:return Z.Z.t("shared.common.info");case o.Se.NOTICE:default:return Z.Z.t("shared.common.notice")}}get content(){var{content:e,raw:t}=this.props;return e?t?h.createElement("span",{dangerouslySetInnerHTML:{__html:e},role:"alert"}):h.createElement("span",{role:"alert"},e):null}render(){return h.createElement(Ue,{in:this.state.visible,timeout:300,unmountOnExit:!0,onExited:this.handleExited,classNames:{enterActive:Tt,enterDone:Nt,exitActive:Lt,exitDone:Dt}},(e=>h.createElement("div",{className:F()(Ct,this.typeClassName,e),onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleDismiss},h.createElement("div",{className:"content","data-e2e":"toast"},h.createElement(m.TX,{tag:"em"},this.label),h.createElement(m.JO,{className:Pt,icon:this.icon}),this.content))))}}zt.propTypes={closeToast:te.exports.func.isRequired,content:te.exports.string,dismissSpeed:te.exports.number,id:te.exports.number.isRequired,raw:te.exports.bool,type:te.exports.oneOf(Object.values(o.Se)).isRequired},zt.defaultProps={dismissSpeed:6e3,raw:!1};var Bt="ToastManager-module_wrapper__0ogtT",qt=e=>{var{closeToast:t,toasts:n}=e;return h.createElement("div",{className:Bt,role:"alert","data-e2e":"toast-manager"},n.map((e=>h.createElement(zt,Q({},e,{key:e.id,closeToast:t})))))};qt.propTypes={toasts:te.exports.arrayOf(te.exports.shape({id:te.exports.number.isRequired})),closeToast:te.exports.func.isRequired},qt.defaultProps={toasts:[]};var Ft,Zt,Gt=e=>({toasts:Object.values(e.toast.toasts)}),Yt=e=>({closeToast:t=>{e(f(t))}}),Ht=(0,r.$j)(Gt,Yt)(qt),Wt={exports:{}};Ft=Wt,Zt=Wt.exports,function(){var e,t="Expected a function",n="__lodash_hash_undefined__",r="__lodash_placeholder__",i=16,o=32,a=64,s=128,u=256,l=1/0,c=9007199254740991,d=NaN,p=4294967295,f=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",i],["flip",512],["partial",o],["partialRight",a],["rearg",u]],h="[object Arguments]",g="[object Array]",m="[object Boolean]",v="[object Date]",_="[object Error]",A="[object Function]",y="[object GeneratorFunction]",b="[object Map]",E="[object Number]",w="[object Object]",x="[object Promise]",I="[object RegExp]",M="[object Set]",S="[object String]",C="[object Symbol]",N="[object WeakMap]",T="[object ArrayBuffer]",L="[object DataView]",D="[object Float32Array]",O="[object Float64Array]",k="[object Int8Array]",R="[object Int16Array]",j="[object Int32Array]",P="[object Uint8Array]",U="[object Uint8ClampedArray]",z="[object Uint16Array]",B="[object Uint32Array]",q=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,Z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,H=RegExp(G.source),W=RegExp(Y.source),V=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ae=/($^)/,ye=/['\n\r\u2028\u2029\\]/g,be="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",we="\\u2700-\\u27bf",xe="a-z\\xdf-\\xf6\\xf8-\\xff",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",Me="\\ufe0e\\ufe0f",Se="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ce="['\u2019]",Ne="["+be+"]",Te="["+Se+"]",Le="["+Ee+"]",De="\\d+",Oe="["+we+"]",ke="["+xe+"]",Re="[^"+be+Se+De+we+xe+Ie+"]",je="\\ud83c[\\udffb-\\udfff]",Pe="[^"+be+"]",Ue="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Be="["+Ie+"]",qe="\\u200d",Fe="(?:"+ke+"|"+Re+")",Ze="(?:"+Be+"|"+Re+")",Ge="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ye="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",He="(?:"+Le+"|"+je+")?",We="["+Me+"]?",Ve=We+He+"(?:"+qe+"(?:"+[Pe,Ue,ze].join("|")+")"+We+He+")*",Qe="(?:"+[Oe,Ue,ze].join("|")+")"+Ve,Ke="(?:"+[Pe+Le+"?",Le,Ue,ze,Ne].join("|")+")",Xe=RegExp(Ce,"g"),$e=RegExp(Le,"g"),Je=RegExp(je+"(?="+je+")|"+Ke+Ve,"g"),et=RegExp([Be+"?"+ke+"+"+Ge+"(?="+[Te,Be,"$"].join("|")+")",Ze+"+"+Ye+"(?="+[Te,Be+Fe,"$"].join("|")+")",Be+"?"+Fe+"+"+Ge,Be+"+"+Ye,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Qe].join("|"),"g"),tt=RegExp("["+qe+be+Ee+Me+"]"),nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,ot={};ot[D]=ot[O]=ot[k]=ot[R]=ot[j]=ot[P]=ot[U]=ot[z]=ot[B]=!0,ot[h]=ot[g]=ot[T]=ot[m]=ot[L]=ot[v]=ot[_]=ot[A]=ot[b]=ot[E]=ot[w]=ot[I]=ot[M]=ot[S]=ot[N]=!1;var at={};at[h]=at[g]=at[T]=at[L]=at[m]=at[v]=at[D]=at[O]=at[k]=at[R]=at[j]=at[b]=at[E]=at[w]=at[I]=at[M]=at[S]=at[C]=at[P]=at[U]=at[z]=at[B]=!0,at[_]=at[A]=at[N]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,lt=parseInt,ct="object"==typeof ee&&ee&&ee.Object===Object&&ee,dt="object"==typeof self&&self&&self.Object===Object&&self,pt=ct||dt||Function("return this")(),ft=Zt&&!Zt.nodeType&&Zt,ht=ft&&Ft&&!Ft.nodeType&&Ft,gt=ht&&ht.exports===ft,mt=gt&&ct.process,vt=function(){try{var e=ht&&ht.require&&ht.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch(t){}}(),_t=vt&&vt.isArrayBuffer,At=vt&&vt.isDate,yt=vt&&vt.isMap,bt=vt&&vt.isRegExp,Et=vt&&vt.isSet,wt=vt&&vt.isTypedArray;function xt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function It(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function Lt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function nn(e,t){for(var n=e.length;n--&&Bt(t,e[n],0)>-1;);return n}var rn=Wt({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"}),on=Wt({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+st[e]}function sn(e){return tt.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,i=e.length,o=0,a=[];++n",""":'"',"'":"'"}),vn=function ee(ie){var be=(ie=null==ie?pt:vn.defaults(pt.Object(),ie,vn.pick(pt,rt))).Array,Ee=ie.Date,we=ie.Error,xe=ie.Function,Ie=ie.Math,Me=ie.Object,Se=ie.RegExp,Ce=ie.String,Ne=ie.TypeError,Te=be.prototype,Le=xe.prototype,De=Me.prototype,Oe=ie["__core-js_shared__"],ke=Le.toString,Re=De.hasOwnProperty,je=0,Pe=function(){var e=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ue=De.toString,ze=ke.call(Me),Be=pt._,qe=Se("^"+ke.call(Re).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=gt?ie.Buffer:e,Ze=ie.Symbol,Ge=ie.Uint8Array,Ye=Fe?Fe.allocUnsafe:e,He=ln(Me.getPrototypeOf,Me),We=Me.create,Ve=De.propertyIsEnumerable,Qe=Te.splice,Ke=Ze?Ze.isConcatSpreadable:e,Je=Ze?Ze.iterator:e,tt=Ze?Ze.toStringTag:e,st=function(){try{var e=po(Me,"defineProperty");return e({},"",{}),e}catch(t){}}(),ct=ie.clearTimeout!==pt.clearTimeout&&ie.clearTimeout,dt=Ee&&Ee.now!==pt.Date.now&&Ee.now,ft=ie.setTimeout!==pt.setTimeout&&ie.setTimeout,ht=Ie.ceil,mt=Ie.floor,vt=Me.getOwnPropertySymbols,Pt=Fe?Fe.isBuffer:e,Ft=ie.isFinite,Zt=Te.join,Wt=ln(Me.keys,Me),_n=Ie.max,An=Ie.min,yn=Ee.now,bn=ie.parseInt,En=Ie.random,wn=Te.reverse,xn=po(ie,"DataView"),In=po(ie,"Map"),Mn=po(ie,"Promise"),Sn=po(ie,"Set"),Cn=po(ie,"WeakMap"),Nn=po(Me,"create"),Tn=Cn&&new Cn,Ln={},Dn=Uo(xn),On=Uo(In),kn=Uo(Mn),Rn=Uo(Sn),jn=Uo(Cn),Pn=Ze?Ze.prototype:e,Un=Pn?Pn.valueOf:e,zn=Pn?Pn.toString:e;function Bn(e){if(ts(e)&&!Ga(e)&&!(e instanceof Gn)){if(e instanceof Zn)return e;if(Re.call(e,"__wrapped__"))return zo(e)}return new Zn(e)}var qn=function(){function t(){}return function(n){if(!es(n))return{};if(We)return We(n);t.prototype=n;var r=new t;return t.prototype=e,r}}();function Fn(){}function Zn(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=e}function Gn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=n?t:n)),t}function ur(t,n,r,i,o,a){var s,u=1&n,l=2&n,c=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),s!==e)return s;if(!es(t))return t;var d=Ga(t);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!u)return Ni(t,s)}else{var p=go(t),f=p==A||p==y;if(Va(t))return wi(t,u);if(p==w||p==h||f&&!o){if(s=l||f?{}:vo(t),!u)return l?function(e,t){return Ti(e,ho(e),t)}(t,function(e,t){return e&&Ti(t,Ds(t),e)}(s,t)):function(e,t){return Ti(e,fo(e),t)}(t,ir(s,t))}else{if(!at[p])return o?t:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case T:return xi(e);case m:case v:return new i(+e);case L:return function(e,t){var n=t?xi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case O:case k:case R:case j:case P:case U:case z:case B:return Ii(e,n);case b:return new i;case E:case S:return new i(e);case I:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case M:return new i;case C:return r=e,Un?Me(Un.call(r)):{}}}(t,p,u)}}a||(a=new Qn);var g=a.get(t);if(g)return g;a.set(t,s),as(t)?t.forEach((function(e){s.add(ur(e,n,r,e,t,a))})):ns(t)&&t.forEach((function(e,i){s.set(i,ur(e,n,r,i,t,a))}));var _=d?e:(c?l?io:ro:l?Ds:Ls)(t);return Mt(_||t,(function(e,i){_&&(e=t[i=e]),tr(s,i,ur(e,n,r,i,t,a))})),s}function lr(t,n,r){var i=r.length;if(null==t)return!i;for(t=Me(t);i--;){var o=r[i],a=n[o],s=t[o];if(s===e&&!(o in t)||!a(s))return!1}return!0}function cr(n,r,i){if("function"!=typeof n)throw new Ne(t);return Lo((function(){n.apply(e,i)}),r)}function dr(e,t,n,r){var i=-1,o=Tt,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=Dt(t,$t(n))),r?(o=Lt,a=!1):t.length>=200&&(o=en,a=!1,t=new Vn(t));e:for(;++i-1},Hn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Wn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(In||Hn),string:new Yn}},Wn.prototype.delete=function(e){var t=lo(this,e).delete(e);return this.size-=t?1:0,t},Wn.prototype.get=function(e){return lo(this,e).get(e)},Wn.prototype.has=function(e){return lo(this,e).has(e)},Wn.prototype.set=function(e,t){var n=lo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Vn.prototype.add=Vn.prototype.push=function(e){return this.__data__.set(e,n),this},Vn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.clear=function(){this.__data__=new Hn,this.size=0},Qn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Qn.prototype.get=function(e){return this.__data__.get(e)},Qn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Hn){var r=n.__data__;if(!In||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wn(r)}return n.set(e,t),this.size=n.size,this};var pr=Oi(yr),fr=Oi(br,!0);function hr(e,t){var n=!0;return pr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(t,n,r){for(var i=-1,o=t.length;++i0&&n(s)?t>1?vr(s,t-1,n,r,i):Ot(i,s):r||(i[i.length]=s)}return i}var _r=ki(),Ar=ki(!0);function yr(e,t){return e&&_r(e,t,Ls)}function br(e,t){return e&&Ar(e,t,Ls)}function Er(e,t){return Nt(t,(function(t){return Xa(e[t])}))}function wr(t,n){for(var r=0,i=(n=Ai(n,t)).length;null!=t&&rt}function Sr(e,t){return null!=e&&Re.call(e,t)}function Cr(e,t){return null!=e&&t in Me(e)}function Nr(t,n,r){for(var i=r?Lt:Tt,o=t[0].length,a=t.length,s=a,u=be(a),l=1/0,c=[];s--;){var d=t[s];s&&n&&(d=Dt(d,$t(n))),l=An(d.length,l),u[s]=!r&&(n||o>=120&&d.length>=120)?new Vn(s&&d):e}d=t[0];var p=-1,f=u[0];e:for(;++p=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Yr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&Qe.call(s,u,1),Qe.call(e,u,1);return e}function Wr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Ao(i)?Qe.call(e,i,1):di(e,i)}}return e}function Vr(e,t){return e+mt(En()*(t-e+1))}function Qr(e,t){var n="";if(!e||t<1||t>c)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return Do(So(e,t,ru),e+"")}function Xr(e){return Xn(Bs(e))}function $r(e,t){var n=Bs(e);return Ro(n,sr(t,0,n.length))}function Jr(t,n,r,i){if(!es(t))return t;for(var o=-1,a=(n=Ai(n,t)).length,s=a-1,u=t;null!=u&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=be(i);++r>>1,a=e[o];null!==a&&!us(a)&&(n?a<=t:a=200){var l=t?null:Qi(e);if(l)return dn(l);a=!1,i=en,u=new Vn}else u=t?[]:s;e:for(;++r=i?t:ri(t,n,r)}var Ei=ct||function(e){return pt.clearTimeout(e)};function wi(e,t){if(t)return e.slice();var n=e.length,r=Ye?Ye(n):new e.constructor(n);return e.copy(r),r}function xi(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function Ii(e,t){var n=t?xi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Mi(t,n){if(t!==n){var r=t!==e,i=null===t,o=t===t,a=us(t),s=n!==e,u=null===n,l=n===n,c=us(n);if(!u&&!c&&!a&&t>n||a&&s&&l&&!u&&!c||i&&s&&l||!r&&l||!o)return 1;if(!i&&!a&&!c&&t1?r[o-1]:e,s=o>2?r[2]:e;for(a=t.length>3&&"function"==typeof a?(o--,a):e,s&&yo(r[0],r[1],s)&&(a=o<3?e:a,o=1),n=Me(n);++i-1?o[a?n[s]:s]:e}}function zi(n){return no((function(r){var i=r.length,o=i,a=Zn.prototype.thru;for(n&&r.reverse();o--;){var s=r[o];if("function"!=typeof s)throw new Ne(t);if(a&&!u&&"wrapper"==ao(s))var u=new Zn([],!0)}for(o=u?o:i;++o1&&A.reverse(),p&&c<_&&(A.length=c),this&&this!==pt&&this instanceof s&&(I=v||Pi(I)),I.apply(x,A)}}function qi(e,t){return function(n,r){return function(e,t,n,r){return yr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Fi(t,n){return function(r,i){var o;if(r===e&&i===e)return n;if(r!==e&&(o=r),i!==e){if(o===e)return i;"string"==typeof r||"string"==typeof i?(r=li(r),i=li(i)):(r=ui(r),i=ui(i)),o=t(r,i)}return o}}function Zi(e){return no((function(t){return t=Dt(t,$t(uo())),Kr((function(n){var r=this;return e(t,(function(e){return xt(e,r,n)}))}))}))}function Gi(t,n){var r=(n=n===e?" ":li(n)).length;if(r<2)return r?Qr(n,t):n;var i=Qr(n,ht(t/fn(n)));return sn(n)?bi(hn(i),0,t).join(""):i.slice(0,t)}function Yi(t){return function(n,r,i){return i&&"number"!=typeof i&&yo(n,r,i)&&(r=i=e),n=fs(n),r===e?(r=n,n=0):r=fs(r),function(e,t,n,r){for(var i=-1,o=_n(ht((t-e)/(n||1)),0),a=be(o);o--;)a[r?o:++i]=e,e+=n;return a}(n,r,i=i===e?nu))return!1;var c=a.get(t),d=a.get(n);if(c&&d)return c==n&&d==t;var p=-1,f=!0,h=2&r?new Vn:e;for(a.set(t,n),a.set(n,t);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Mt(f,(function(n){var r="_."+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function ko(t){var n=0,r=0;return function(){var i=yn(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(e,arguments)}}function Ro(t,n){var r=-1,i=t.length,o=i-1;for(n=n===e?i:n;++r1?t[n-1]:e;return r="function"==typeof r?(t.pop(),r):e,oa(t,r)}));function pa(e){var t=Bn(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var ha=no((function(t){var n=t.length,r=n?t[0]:0,i=this.__wrapped__,o=function(e){return ar(e,t)};return!(n>1||this.__actions__.length)&&i instanceof Gn&&Ao(r)?((i=i.slice(r,+r+(n?1:0))).__actions__.push({func:fa,args:[o],thisArg:e}),new Zn(i,this.__chain__).thru((function(t){return n&&!t.length&&t.push(e),t}))):this.thru(o)})),ga=Li((function(e,t,n){Re.call(e,n)?++e[n]:or(e,n,1)})),ma=Ui(Zo),va=Ui(Go);function _a(e,t){return(Ga(e)?Mt:pr)(e,uo(t,3))}function Aa(e,t){return(Ga(e)?St:fr)(e,uo(t,3))}var ya=Li((function(e,t,n){Re.call(e,n)?e[n].push(t):or(e,n,[t])})),ba=Kr((function(e,t,n){var r=-1,i="function"==typeof t,o=Ha(e)?be(e.length):[];return pr(e,(function(e){o[++r]=i?xt(t,e,n):Tr(e,t,n)})),o})),Ea=Li((function(e,t,n){or(e,n,t)}));function wa(e,t){return(Ga(e)?Dt:zr)(e,uo(t,3))}var xa=Li((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ia=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yo(e,t[0],t[1])?t=[]:n>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),Gr(e,vr(t,1),[])})),Ma=dt||function(){return pt.Date.now()};function Sa(t,n,r){return n=r?e:n,n=t&&null==n?t.length:n,Xi(t,s,e,e,e,e,n)}function Ca(n,r){var i;if("function"!=typeof r)throw new Ne(t);return n=hs(n),function(){return--n>0&&(i=r.apply(this,arguments)),n<=1&&(r=e),i}}var Na=Kr((function(e,t,n){var r=1;if(n.length){var i=cn(n,so(Na));r|=o}return Xi(e,r,t,n,i)})),Ta=Kr((function(e,t,n){var r=3;if(n.length){var i=cn(n,so(Ta));r|=o}return Xi(t,r,e,n,i)}));function La(n,r,i){var o,a,s,u,l,c,d=0,p=!1,f=!1,h=!0;if("function"!=typeof n)throw new Ne(t);function g(t){var r=o,i=a;return o=a=e,d=t,u=n.apply(i,r)}function m(t){var n=t-c;return c===e||n>=r||n<0||f&&t-d>=s}function v(){var e=Ma();if(m(e))return _(e);l=Lo(v,function(e){var t=r-(e-c);return f?An(t,s-(e-d)):t}(e))}function _(t){return l=e,h&&o?g(t):(o=a=e,u)}function A(){var t=Ma(),n=m(t);if(o=arguments,a=this,c=t,n){if(l===e)return function(e){return d=e,l=Lo(v,r),p?g(e):u}(c);if(f)return Ei(l),l=Lo(v,r),g(c)}return l===e&&(l=Lo(v,r)),u}return r=ms(r)||0,es(i)&&(p=!!i.leading,s=(f="maxWait"in i)?_n(ms(i.maxWait)||0,r):s,h="trailing"in i?!!i.trailing:h),A.cancel=function(){l!==e&&Ei(l),d=0,o=c=a=l=e},A.flush=function(){return l===e?u:_(Ma())},A}var Da=Kr((function(e,t){return cr(e,1,t)})),Oa=Kr((function(e,t,n){return cr(e,ms(t)||0,n)}));function ka(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new Ne(t);var r=function t(){var r=arguments,i=n?n.apply(this,r):r[0],o=t.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return t.cache=o.set(i,a)||o,a};return r.cache=new(ka.Cache||Wn),r}function Ra(e){if("function"!=typeof e)throw new Ne(t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ka.Cache=Wn;var ja=yi((function(e,t){var n=(t=1==t.length&&Ga(t[0])?Dt(t[0],$t(uo())):Dt(vr(t,1),$t(uo()))).length;return Kr((function(r){for(var i=-1,o=An(r.length,n);++i=t})),Za=Lr(function(){return arguments}())?Lr:function(e){return ts(e)&&Re.call(e,"callee")&&!Ve.call(e,"callee")},Ga=be.isArray,Ya=_t?$t(_t):function(e){return ts(e)&&Ir(e)==T};function Ha(e){return null!=e&&Ja(e.length)&&!Xa(e)}function Wa(e){return ts(e)&&Ha(e)}var Va=Pt||mu,Qa=At?$t(At):function(e){return ts(e)&&Ir(e)==v};function Ka(e){if(!ts(e))return!1;var t=Ir(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Xa(e){if(!es(e))return!1;var t=Ir(e);return t==A||t==y||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $a(e){return"number"==typeof e&&e==hs(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var ns=yt?$t(yt):function(e){return ts(e)&&go(e)==b};function rs(e){return"number"==typeof e||ts(e)&&Ir(e)==E}function is(e){if(!ts(e)||Ir(e)!=w)return!1;var t=He(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==ze}var os=bt?$t(bt):function(e){return ts(e)&&Ir(e)==I},as=Et?$t(Et):function(e){return ts(e)&&go(e)==M};function ss(e){return"string"==typeof e||!Ga(e)&&ts(e)&&Ir(e)==S}function us(e){return"symbol"==typeof e||ts(e)&&Ir(e)==C}var ls=wt?$t(wt):function(e){return ts(e)&&Ja(e.length)&&!!ot[Ir(e)]},cs=Hi(Ur),ds=Hi((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Ha(e))return ss(e)?hn(e):Ni(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=go(e);return(t==b?un:t==M?dn:Bs)(e)}function fs(e){return e?(e=ms(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function hs(e){var t=fs(e),n=t%1;return t===t?n?t-n:t:0}function gs(e){return e?sr(hs(e),0,p):0}function ms(e){if("number"==typeof e)return e;if(us(e))return d;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=he.test(e);return n||me.test(e)?lt(e.slice(2),n?2:8):fe.test(e)?d:+e}function vs(e){return Ti(e,Ds(e))}function _s(e){return null==e?"":li(e)}var As=Di((function(e,t){if(xo(t)||Ha(t))Ti(t,Ls(t),e);else for(var n in t)Re.call(t,n)&&tr(e,n,t[n])})),ys=Di((function(e,t){Ti(t,Ds(t),e)})),bs=Di((function(e,t,n,r){Ti(t,Ds(t),e,r)})),Es=Di((function(e,t,n,r){Ti(t,Ls(t),e,r)})),ws=no(ar),xs=Kr((function(t,n){t=Me(t);var r=-1,i=n.length,o=i>2?n[2]:e;for(o&&yo(n[0],n[1],o)&&(i=1);++r1),t})),Ti(e,io(e),n),r&&(n=ur(n,7,eo));for(var i=t.length;i--;)di(n,t[i]);return n})),js=no((function(e,t){return null==e?{}:function(e,t){return Yr(e,t,(function(t,n){return Ss(e,n)}))}(e,t)}));function Ps(e,t){if(null==e)return{};var n=Dt(io(e),(function(e){return[e]}));return t=uo(t),Yr(e,n,(function(e,n){return t(e,n[0])}))}var Us=Ki(Ls),zs=Ki(Ds);function Bs(e){return null==e?[]:Jt(e,Ls(e))}var qs=ji((function(e,t,n){return t=t.toLowerCase(),e+(n?Fs(t):t)}));function Fs(e){return Ks(_s(e).toLowerCase())}function Zs(e){return(e=_s(e))&&e.replace(_e,rn).replace($e,"")}var Gs=ji((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ys=ji((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Hs=Ri("toLowerCase"),Ws=ji((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Vs=ji((function(e,t,n){return e+(n?" ":"")+Ks(t)})),Qs=ji((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ks=Ri("toUpperCase");function Xs(t,n,r){return t=_s(t),(n=r?e:n)===e?function(e){return nt.test(e)}(t)?function(e){return e.match(et)||[]}(t):function(e){return e.match(ue)||[]}(t):t.match(n)||[]}var $s=Kr((function(t,n){try{return xt(t,e,n)}catch(r){return Ka(r)?r:new we(r)}})),Js=no((function(e,t){return Mt(t,(function(t){t=Po(t),or(e,t,Na(e[t],e))})),e}));function eu(e){return function(){return e}}var tu=zi(),nu=zi(!0);function ru(e){return e}function iu(e){return Rr("function"==typeof e?e:ur(e,1))}var ou=Kr((function(e,t){return function(n){return Tr(n,e,t)}})),au=Kr((function(e,t){return function(n){return Tr(e,n,t)}}));function su(e,t,n){var r=Ls(t),i=Er(t,r);null!=n||es(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Er(t,Ls(t)));var o=!(es(n)&&"chain"in n)||!!n.chain,a=Xa(e);return Mt(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Ni(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ot([this.value()],arguments))})})),e}function uu(){}var lu=Zi(Dt),cu=Zi(Ct),du=Zi(jt);function pu(e){return bo(e)?Ht(Po(e)):function(e){return function(t){return wr(t,e)}}(e)}var fu=Yi(),hu=Yi(!0);function gu(){return[]}function mu(){return!1}var vu=Fi((function(e,t){return e+t}),0),_u=Vi("ceil"),Au=Fi((function(e,t){return e/t}),1),yu=Vi("floor"),bu=Fi((function(e,t){return e*t}),1),Eu=Vi("round"),wu=Fi((function(e,t){return e-t}),0);return Bn.after=function(e,n){if("function"!=typeof n)throw new Ne(t);return e=hs(e),function(){if(--e<1)return n.apply(this,arguments)}},Bn.ary=Sa,Bn.assign=As,Bn.assignIn=ys,Bn.assignInWith=bs,Bn.assignWith=Es,Bn.at=ws,Bn.before=Ca,Bn.bind=Na,Bn.bindAll=Js,Bn.bindKey=Ta,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ga(e)?e:[e]},Bn.chain=pa,Bn.chunk=function(t,n,r){n=(r?yo(t,n,r):n===e)?1:_n(hs(n),0);var i=null==t?0:t.length;if(!i||n<1)return[];for(var o=0,a=0,s=be(ht(i/n));oo?0:o+r),(i=i===e||i>o?o:hs(i))<0&&(i+=o),i=r>i?0:gs(i);r>>0)?(t=_s(t))&&("string"==typeof n||null!=n&&!os(n))&&!(n=li(n))&&sn(t)?bi(hn(t),0,r):t.split(n,r):[]},Bn.spread=function(e,n){if("function"!=typeof e)throw new Ne(t);return n=null==n?0:_n(hs(n),0),Kr((function(t){var r=t[n],i=bi(t,0,n);return r&&Ot(i,r),xt(e,this,i)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?ri(e,1,t):[]},Bn.take=function(t,n,r){return t&&t.length?ri(t,0,(n=r||n===e?1:hs(n))<0?0:n):[]},Bn.takeRight=function(t,n,r){var i=null==t?0:t.length;return i?ri(t,(n=i-(n=r||n===e?1:hs(n)))<0?0:n,i):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?fi(e,uo(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?fi(e,uo(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,n,r){var i=!0,o=!0;if("function"!=typeof e)throw new Ne(t);return es(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),La(e,n,{leading:i,maxWait:n,trailing:o})},Bn.thru=fa,Bn.toArray=ps,Bn.toPairs=Us,Bn.toPairsIn=zs,Bn.toPath=function(e){return Ga(e)?Dt(e,Po):us(e)?[e]:Ni(jo(_s(e)))},Bn.toPlainObject=vs,Bn.transform=function(e,t,n){var r=Ga(e),i=r||Va(e)||ls(e);if(t=uo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:es(e)&&Xa(o)?qn(He(e)):{}}return(i?Mt:yr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Bn.unary=function(e){return Sa(e,1)},Bn.union=ta,Bn.unionBy=na,Bn.unionWith=ra,Bn.uniq=function(e){return e&&e.length?ci(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?ci(e,uo(t,2)):[]},Bn.uniqWith=function(t,n){return n="function"==typeof n?n:e,t&&t.length?ci(t,e,n):[]},Bn.unset=function(e,t){return null==e||di(e,t)},Bn.unzip=ia,Bn.unzipWith=oa,Bn.update=function(e,t,n){return null==e?e:pi(e,t,_i(n))},Bn.updateWith=function(t,n,r,i){return i="function"==typeof i?i:e,null==t?t:pi(t,n,_i(r),i)},Bn.values=Bs,Bn.valuesIn=function(e){return null==e?[]:Jt(e,Ds(e))},Bn.without=aa,Bn.words=Xs,Bn.wrap=function(e,t){return Pa(_i(t),e)},Bn.xor=sa,Bn.xorBy=ua,Bn.xorWith=la,Bn.zip=ca,Bn.zipObject=function(e,t){return mi(e||[],t||[],tr)},Bn.zipObjectDeep=function(e,t){return mi(e||[],t||[],Jr)},Bn.zipWith=da,Bn.entries=Us,Bn.entriesIn=zs,Bn.extend=ys,Bn.extendWith=bs,su(Bn,Bn),Bn.add=vu,Bn.attempt=$s,Bn.camelCase=qs,Bn.capitalize=Fs,Bn.ceil=_u,Bn.clamp=function(t,n,r){return r===e&&(r=n,n=e),r!==e&&(r=(r=ms(r))===r?r:0),n!==e&&(n=(n=ms(n))===n?n:0),sr(ms(t),n,r)},Bn.clone=function(e){return ur(e,4)},Bn.cloneDeep=function(e){return ur(e,5)},Bn.cloneDeepWith=function(t,n){return ur(t,5,n="function"==typeof n?n:e)},Bn.cloneWith=function(t,n){return ur(t,4,n="function"==typeof n?n:e)},Bn.conformsTo=function(e,t){return null==t||lr(e,t,Ls(t))},Bn.deburr=Zs,Bn.defaultTo=function(e,t){return null==e||e!==e?t:e},Bn.divide=Au,Bn.endsWith=function(t,n,r){t=_s(t),n=li(n);var i=t.length,o=r=r===e?i:sr(hs(r),0,i);return(r-=n.length)>=0&&t.slice(r,o)==n},Bn.eq=Ba,Bn.escape=function(e){return(e=_s(e))&&W.test(e)?e.replace(Y,on):e},Bn.escapeRegExp=function(e){return(e=_s(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Bn.every=function(t,n,r){var i=Ga(t)?Ct:hr;return r&&yo(t,n,r)&&(n=e),i(t,uo(n,3))},Bn.find=ma,Bn.findIndex=Zo,Bn.findKey=function(e,t){return Ut(e,uo(t,3),yr)},Bn.findLast=va,Bn.findLastIndex=Go,Bn.findLastKey=function(e,t){return Ut(e,uo(t,3),br)},Bn.floor=yu,Bn.forEach=_a,Bn.forEachRight=Aa,Bn.forIn=function(e,t){return null==e?e:_r(e,uo(t,3),Ds)},Bn.forInRight=function(e,t){return null==e?e:Ar(e,uo(t,3),Ds)},Bn.forOwn=function(e,t){return e&&yr(e,uo(t,3))},Bn.forOwnRight=function(e,t){return e&&br(e,uo(t,3))},Bn.get=Ms,Bn.gt=qa,Bn.gte=Fa,Bn.has=function(e,t){return null!=e&&mo(e,t,Sr)},Bn.hasIn=Ss,Bn.head=Ho,Bn.identity=ru,Bn.includes=function(e,t,n,r){e=Ha(e)?e:Bs(e),n=n&&!r?hs(n):0;var i=e.length;return n<0&&(n=_n(i+n,0)),ss(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Bt(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:hs(n);return i<0&&(i=_n(r+i,0)),Bt(e,t,i)},Bn.inRange=function(t,n,r){return n=fs(n),r===e?(r=n,n=0):r=fs(r),function(e,t,n){return e>=An(t,n)&&e<_n(t,n)}(t=ms(t),n,r)},Bn.invoke=Ts,Bn.isArguments=Za,Bn.isArray=Ga,Bn.isArrayBuffer=Ya,Bn.isArrayLike=Ha,Bn.isArrayLikeObject=Wa,Bn.isBoolean=function(e){return!0===e||!1===e||ts(e)&&Ir(e)==m},Bn.isBuffer=Va,Bn.isDate=Qa,Bn.isElement=function(e){return ts(e)&&1===e.nodeType&&!is(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Ha(e)&&(Ga(e)||"string"==typeof e||"function"==typeof e.splice||Va(e)||ls(e)||Za(e)))return!e.length;var t=go(e);if(t==b||t==M)return!e.size;if(xo(e))return!jr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Dr(e,t)},Bn.isEqualWith=function(t,n,r){var i=(r="function"==typeof r?r:e)?r(t,n):e;return i===e?Dr(t,n,e,r):!!i},Bn.isError=Ka,Bn.isFinite=function(e){return"number"==typeof e&&Ft(e)},Bn.isFunction=Xa,Bn.isInteger=$a,Bn.isLength=Ja,Bn.isMap=ns,Bn.isMatch=function(e,t){return e===t||Or(e,t,co(t))},Bn.isMatchWith=function(t,n,r){return r="function"==typeof r?r:e,Or(t,n,co(n),r)},Bn.isNaN=function(e){return rs(e)&&e!=+e},Bn.isNative=function(e){if(wo(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return kr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=rs,Bn.isObject=es,Bn.isObjectLike=ts,Bn.isPlainObject=is,Bn.isRegExp=os,Bn.isSafeInteger=function(e){return $a(e)&&e>=-9007199254740991&&e<=c},Bn.isSet=as,Bn.isString=ss,Bn.isSymbol=us,Bn.isTypedArray=ls,Bn.isUndefined=function(t){return t===e},Bn.isWeakMap=function(e){return ts(e)&&go(e)==N},Bn.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==Ir(e)},Bn.join=function(e,t){return null==e?"":Zt.call(e,t)},Bn.kebabCase=Gs,Bn.last=Ko,Bn.lastIndexOf=function(t,n,r){var i=null==t?0:t.length;if(!i)return-1;var o=i;return r!==e&&(o=(o=hs(r))<0?_n(i+o,0):An(o,i-1)),n===n?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(t,n,o):zt(t,Gt,o,!0)},Bn.lowerCase=Ys,Bn.lowerFirst=Hs,Bn.lt=cs,Bn.lte=ds,Bn.max=function(t){return t&&t.length?gr(t,ru,Mr):e},Bn.maxBy=function(t,n){return t&&t.length?gr(t,uo(n,2),Mr):e},Bn.mean=function(e){return Yt(e,ru)},Bn.meanBy=function(e,t){return Yt(e,uo(t,2))},Bn.min=function(t){return t&&t.length?gr(t,ru,Ur):e},Bn.minBy=function(t,n){return t&&t.length?gr(t,uo(n,2),Ur):e},Bn.stubArray=gu,Bn.stubFalse=mu,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=bu,Bn.nth=function(t,n){return t&&t.length?Zr(t,hs(n)):e},Bn.noConflict=function(){return pt._===this&&(pt._=Be),this},Bn.noop=uu,Bn.now=Ma,Bn.pad=function(e,t,n){e=_s(e);var r=(t=hs(t))?fn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Gi(mt(i),n)+e+Gi(ht(i),n)},Bn.padEnd=function(e,t,n){e=_s(e);var r=(t=hs(t))?fn(e):0;return t&&rn){var i=t;t=n,n=i}if(r||t%1||n%1){var o=En();return An(t+o*(n-t+ut("1e-"+((o+"").length-1))),n)}return Vr(t,n)},Bn.reduce=function(e,t,n){var r=Ga(e)?kt:Vt,i=arguments.length<3;return r(e,uo(t,4),n,i,pr)},Bn.reduceRight=function(e,t,n){var r=Ga(e)?Rt:Vt,i=arguments.length<3;return r(e,uo(t,4),n,i,fr)},Bn.repeat=function(t,n,r){return n=(r?yo(t,n,r):n===e)?1:hs(n),Qr(_s(t),n)},Bn.replace=function(){var e=arguments,t=_s(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(t,n,r){var i=-1,o=(n=Ai(n,t)).length;for(o||(o=1,t=e);++ic)return[];var n=p,r=An(e,p);t=uo(t),e-=p;for(var i=Kt(r,t);++n=a)return t;var u=r-fn(i);if(u<1)return i;var l=s?bi(s,0,u).join(""):t.slice(0,u);if(o===e)return l+i;if(s&&(u+=l.length-u),os(o)){if(t.slice(u).search(o)){var c,d=l;for(o.global||(o=Se(o.source,_s(pe.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var p=c.index;l=l.slice(0,p===e?u:p)}}else if(t.indexOf(li(o),u)!=u){var f=l.lastIndexOf(o);f>-1&&(l=l.slice(0,f))}return l+i},Bn.unescape=function(e){return(e=_s(e))&&H.test(e)?e.replace(G,mn):e},Bn.uniqueId=function(e){var t=++je;return _s(e)+t},Bn.upperCase=Qs,Bn.upperFirst=Ks,Bn.each=_a,Bn.eachRight=Aa,Bn.first=Ho,su(Bn,function(){var e={};return yr(Bn,(function(t,n){Re.call(Bn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Bn.VERSION="4.17.21",Mt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),Mt(["drop","take"],(function(t,n){Gn.prototype[t]=function(r){r=r===e?1:_n(hs(r),0);var i=this.__filtered__&&!n?new Gn(this):this.clone();return i.__filtered__?i.__takeCount__=An(r,i.__takeCount__):i.__views__.push({size:An(r,p),type:t+(i.__dir__<0?"Right":"")}),i},Gn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Mt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Gn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:uo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Mt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Gn.prototype[e]=function(){return this[n](1).value()[0]}})),Mt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Gn.prototype[e]=function(){return this.__filtered__?new Gn(this):this[n](1)}})),Gn.prototype.compact=function(){return this.filter(ru)},Gn.prototype.find=function(e){return this.filter(e).head()},Gn.prototype.findLast=function(e){return this.reverse().find(e)},Gn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Gn(this):this.map((function(n){return Tr(n,e,t)}))})),Gn.prototype.reject=function(e){return this.filter(Ra(uo(e)))},Gn.prototype.slice=function(t,n){t=hs(t);var r=this;return r.__filtered__&&(t>0||n<0)?new Gn(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),n!==e&&(r=(n=hs(n))<0?r.dropRight(-n):r.take(n-t)),r)},Gn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Gn.prototype.toArray=function(){return this.take(p)},yr(Gn.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),o=Bn[i?"take"+("last"==n?"Right":""):n],a=i||/^find/.test(n);o&&(Bn.prototype[n]=function(){var n=this.__wrapped__,s=i?[1]:arguments,u=n instanceof Gn,l=s[0],c=u||Ga(n),d=function(e){var t=o.apply(Bn,Ot([e],s));return i&&p?t[0]:t};c&&r&&"function"==typeof l&&1!=l.length&&(u=c=!1);var p=this.__chain__,f=!!this.__actions__.length,h=a&&!p,g=u&&!f;if(!a&&c){n=g?n:new Gn(this);var m=t.apply(n,s);return m.__actions__.push({func:fa,args:[d],thisArg:e}),new Zn(m,p)}return h&&g?t.apply(this,s):(m=this.thru(d),h?i?m.value()[0]:m.value():m)})})),Mt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ga(i)?i:[],e)}return this[n]((function(n){return t.apply(Ga(n)?n:[],e)}))}})),yr(Gn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";Re.call(Ln,r)||(Ln[r]=[]),Ln[r].push({name:t,func:n})}})),Ln[Bi(e,2).name]=[{name:"wrapper",func:e}],Gn.prototype.clone=function(){var e=new Gn(this.__wrapped__);return e.__actions__=Ni(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ni(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ni(this.__views__),e},Gn.prototype.reverse=function(){if(this.__filtered__){var e=new Gn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Gn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ga(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},Bn.prototype.plant=function(t){for(var n,r=this;r instanceof Fn;){var i=zo(r);i.__index__=0,i.__values__=e,n?o.__wrapped__=i:n=i;var o=i;r=r.__wrapped__}return o.__wrapped__=t,n},Bn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Gn){var n=t;return this.__actions__.length&&(n=new Gn(this)),(n=n.reverse()).__actions__.push({func:fa,args:[ea],thisArg:e}),new Zn(n,this.__chain__)}return this.thru(ea)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Je&&(Bn.prototype[Je]=function(){return this}),Bn}();ht?((ht.exports=vn)._=vn,ft._=vn):pt._=vn}.call(ee);var Vt={[o.Se.ERROR]:{icon:G.DOR,label:Z.Z.t("shared.common.error")},[o.Se.INFO]:{icon:G.Jf2,label:Z.Z.t("shared.common.info")},[o.Se.NOTICE]:{icon:G.Jf2,label:Z.Z.t("shared.common.notice")},[o.Se.SUCCESS]:{icon:G.JUF,label:Z.Z.t("shared.common.success")}},Qt={[o.Se.ERROR]:{priority:1},[o.Se.SUCCESS]:{priority:3},[o.Se.INFO]:{priority:4},[o.Se.NOTICE]:{priority:5}},Kt={[o.Se.ERROR]:{priority:2},[o.Se.SUCCESS]:{priority:6},[o.Se.INFO]:{priority:7},[o.Se.NOTICE]:{priority:8}},Xt=300,$t=e=>{var{content:t,type:n}=e,r=t.includes("$t(e)));return Wt.exports.sortBy(t,["priority"])}var en={wrapper:"GridRow-module_wrapper__Uub42",extendedGrid:"GridRow-module_extendedGrid__Hm9MG"},tn={exports:{}};var nn,rn,on,an;function sn(){if(rn)return nn;rn=1;return nn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}tn.exports=function(){if(an)return on;an=1;var e=sn();function t(){}function n(){}return n.resetWarningCache=t,on=function(){function r(t,n,r,i,o,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var un={exports:{}};!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r{var{children:n,className:r,"data-e2e":i}=e;return h.createElement("div",{ref:t,className:ln(cn,r),"data-e2e":i},n)}));function pn(e){var{children:t,className:n,"data-e2e":r}=e;return h.createElement("div",{className:ln(en.wrapper,n),"data-e2e":r},t)}dn.displayName="GridContainer",dn.propTypes={"data-e2e":tn.exports.string,children:tn.exports.oneOfType([tn.exports.arrayOf(tn.exports.node),tn.exports.node]).isRequired,className:tn.exports.string},pn.propTypes={"data-e2e":tn.exports.string,children:tn.exports.any.isRequired,className:tn.exports.string};var fn={XL:"xl",L:"l",M:"m",S:"s",XS:"xs",XXS:"xxs"},hn={[fn.XL]:12,[fn.L]:12,[fn.M]:8,[fn.S]:4,[fn.XS]:4,[fn.XXS]:4},gn=Object.values(fn),mn=[0,1,2,3,4,5,6,7,8,9,10,11,12];var vn={wrapper:"GridColumn-module_wrapper__soqyu",xl_1:"GridColumn-module_xl_1__JReNg",xl_2:"GridColumn-module_xl_2__ry9yU",xl_3:"GridColumn-module_xl_3__OHlvX",xl_4:"GridColumn-module_xl_4__brxcj",xl_5:"GridColumn-module_xl_5__tH7mr",xl_6:"GridColumn-module_xl_6__Z53p6",xl_7:"GridColumn-module_xl_7__oZhoo",xl_8:"GridColumn-module_xl_8__pFyML",xl_9:"GridColumn-module_xl_9__cFKGC",xl_10:"GridColumn-module_xl_10__vZk48",xl_11:"GridColumn-module_xl_11__FexeR",xl_12:"GridColumn-module_xl_12__YZ-Rh",hide_above_xl:"GridColumn-module_hide_above_xl__erar5",hide_below_xl:"GridColumn-module_hide_below_xl__bqFPJ",l_1:"GridColumn-module_l_1__WzmV4",l_2:"GridColumn-module_l_2__Pw-g3",l_3:"GridColumn-module_l_3__K7iWt",l_4:"GridColumn-module_l_4__RAT6-",l_5:"GridColumn-module_l_5__8aWIR",l_6:"GridColumn-module_l_6__MgTYy",l_7:"GridColumn-module_l_7__-W6T1",l_8:"GridColumn-module_l_8__thtI5",l_9:"GridColumn-module_l_9__5JHTC",l_10:"GridColumn-module_l_10__I0f3o",l_11:"GridColumn-module_l_11__RUenR",l_12:"GridColumn-module_l_12__FvEF8",hide_above_l:"GridColumn-module_hide_above_l__UT1-z",hide_below_l:"GridColumn-module_hide_below_l__7M0-X",m_1:"GridColumn-module_m_1__YQJCo",m_2:"GridColumn-module_m_2__c8w6C",m_3:"GridColumn-module_m_3__RA-At",m_4:"GridColumn-module_m_4__6iIKY",m_5:"GridColumn-module_m_5__gTusg",m_6:"GridColumn-module_m_6__iVJpe",m_7:"GridColumn-module_m_7__pou8a",m_8:"GridColumn-module_m_8__3ZSLb",hide_above_m:"GridColumn-module_hide_above_m__zwIrv",hide_below_m:"GridColumn-module_hide_below_m__-PoVO",s_1:"GridColumn-module_s_1__XLGHz",s_2:"GridColumn-module_s_2__1-ptI",s_3:"GridColumn-module_s_3__gGW-l",s_4:"GridColumn-module_s_4__21RHi",hide_above_s:"GridColumn-module_hide_above_s__NbVNC",hide_below_s:"GridColumn-module_hide_below_s__Lbw11",xs_1:"GridColumn-module_xs_1__yycpU",xs_2:"GridColumn-module_xs_2__lfNOB",xs_3:"GridColumn-module_xs_3__2UqhV",xs_4:"GridColumn-module_xs_4__HIdGd",hide_above_xs:"GridColumn-module_hide_above_xs__k1r-Z",hide_below_xs:"GridColumn-module_hide_below_xs__lGMfM",xxs_1:"GridColumn-module_xxs_1__lPpo1",xxs_2:"GridColumn-module_xxs_2__L2HPM",xxs_3:"GridColumn-module_xxs_3__lRrol",xxs_4:"GridColumn-module_xxs_4__qVTq6",hide_above_xxs:"GridColumn-module_hide_above_xxs__h8jYZ",hide_below_xxs:"GridColumn-module_hide_below_xxs__PtxIg"};function _n(e){var{"data-e2e":t,children:n,className:r,xxs:i,xs:o,s:a,m:s,l:u,xl:l,hideAbove:c,hideBelow:d}=e,p={xxs:i,xs:o,s:a,m:s,l:u,xl:l},f={},g=0;gn.forEach((e=>{f[e]=p[e]||g,g=f[e]}));var m=function(e){if(!e)return[];var t=gn.indexOf(e);return gn.reduce(((e,n,r)=>r<=t?e.concat("hide_above_".concat(n)):e),[])}(c).concat(function(e){if(!e)return[];var t=gn.indexOf(e);return gn.reduce(((e,n,r)=>r>t?e.concat("hide_below_".concat(n)):e),[])}(d)).concat(function(e){var t=[];for(var n in e){var r=hn[n]||0,i=Math.min(e[n],r);i>0&&t.push("".concat(n,"_").concat(i))}return t}(f)).map((e=>vn[e]));return h.createElement("div",{className:ln(vn.wrapper,m,r),"data-e2e":t},n)}_n.propTypes={"data-e2e":tn.exports.string,children:tn.exports.oneOfType([tn.exports.arrayOf(tn.exports.node),tn.exports.node]),xxs:tn.exports.oneOf(mn),xs:tn.exports.oneOf(mn),s:tn.exports.oneOf(mn),m:tn.exports.oneOf(mn),l:tn.exports.oneOf(mn),xl:tn.exports.oneOf(mn),hideBelow:tn.exports.oneOf(gn),hideAbove:tn.exports.oneOf(gn),className:tn.exports.string},_n.defaultProps={children:null,xxs:0,xs:0,s:0,m:0,l:0,xl:hn[fn.XL],hideBelow:null,hideAbove:null};var An=50,yn=7e3,bn=4e3;var En={wrapper:"Toast-ds2-module_wrapper__t-XdO",closeButton:"Toast-ds2-module_closeButton__--Uhh",closeSection:"Toast-ds2-module_closeSection__vEYvY",content:"Toast-ds2-module_content__sp-Ho",divider:"Toast-ds2-module_divider__CeRL9",enterDone:"Toast-ds2-module_enterDone__gW6mE",enterActive:"Toast-ds2-module_enterActive__Q8WUV",error:"Toast-ds2-module_error__XMLt9",exitActive:"Toast-ds2-module_exitActive__0U7oL",exitDone:"Toast-ds2-module_exitDone__Cmp-J",icon:"Toast-ds2-module_icon__Dzxmd",info:"Toast-ds2-module_info__NErOc",notice:"Toast-ds2-module_notice__9fpKK",success:"Toast-ds2-module_success__T3iDW",centerAlign:"Toast-ds2-module_centerAlign__VOQev"};function wn(e){var{autoDismiss:t,closeToast:n,content:r,id:i,raw:o,showIcon:a,type:s}=e,[u,l]=(0,h.useState)(!0),[c,d]=(0,h.useState)(!1),p=(0,h.useRef)(),f=(0,h.useRef)(),g=(0,h.useRef)(),v=Vt[s].icon,_=function(e){var t=e.replace(/\s/g,"").length*An;return Math.min(Math.max(t,bn),yn)}(r),A=()=>g.current=window.setTimeout((()=>{l(!1)}),_);(0,h.useEffect)((()=>{d(function(e){var t=e?e.current:null;if(!t)return!1;var n=window.getComputedStyle(t);return parseInt(n.getPropertyValue("height"))<=parseInt(n.getPropertyValue("min-height"))}(p)),!0===t&&A()}),[r,t]);var y=()=>{f.current.classList.add(En.exitActive,En.exitDone),l(!1)},b=()=>clearTimeout(g.current),E=()=>A();return h.createElement(Ue,{classNames:{enterActive:En.enterActive,enterDone:En.enterDone,exitActive:En.exitActive,exitDone:En.exitDone},in:u,onExited:()=>n(i),timeout:Xt,unmountOnExit:!0},(e=>h.createElement(dn,null,h.createElement(pn,null,h.createElement(_n,{xs:4},h.createElement("div",{className:F()(En.wrapper,En[s],e),"data-testid":"toast-wrapper",onMouseEnter:b,onMouseLeave:E,ref:f},h.createElement("div",{className:F()(En.content,{[En.centerAlign]:c}),"data-e2e":"toast",ref:p},h.createElement(m.TX,{tag:"em"},Vt[s].label),!1===a?null:h.createElement(v,{className:En.icon}),o?h.createElement("span",{dangerouslySetInnerHTML:{__html:r},role:"alert"}):h.createElement("span",{role:"alert"},r)),h.createElement("div",{className:F()(En.closeSection,{[En.centerAlign]:c})},h.createElement("div",{className:En.divider}),h.createElement(Y.Av,{className:En.closeButton,onClick:y},h.createElement(G.EEu,null)))))))))}wn.propTypes={autoDismiss:te.exports.bool,closeToast:te.exports.func.isRequired,content:te.exports.string.isRequired,id:te.exports.number.isRequired,raw:te.exports.bool,showIcon:te.exports.bool,type:te.exports.oneOf(Object.values(o.Se)).isRequired},wn.defaultProps={autoDismiss:!1,raw:!1,showIcon:!0};var xn="ToastManager-ds2-module_wrapper__cPWmD",In="ToastManager-ds2-module_hidden__nhlQ6";function Mn(e){var{closeToast:t,toasts:n}=e,[r,i]=(0,h.useState)(Jt(n)),o=n.map((e=>e.id)).join(",");(0,h.useEffect)((()=>{i(Jt(n))}),[o]);var a=0===n.length;return h.createElement("div",{className:F()(xn,{[In]:a}),role:"alert","data-e2e":"toast-manager"},r.map((e=>h.createElement(wn,Q({},e,{key:e.id,closeToast:t})))))}Mn.propTypes={closeToast:te.exports.func.isRequired,toasts:te.exports.arrayOf(te.exports.shape({id:te.exports.number.isRequired}))},Mn.defaultProps={toasts:[]};(0,r.$j)(Gt,Yt)(Mn)},9207:(e,t,n)=>{"use strict";n.d(t,{Av:()=>Hl,I0:()=>nd,KM:()=>ep,OB:()=>id,R4:()=>Dp,Tj:()=>np,d7:()=>Ql,hS:()=>Zd,hU:()=>kd,ko:()=>sp,oB:()=>Zl,pd:()=>gd,pf:()=>Dd,pl:()=>mh,q6:()=>Bd,qp:()=>Yp,vZ:()=>Yd,w8:()=>jd,yN:()=>$d});var r,i=n(7294),o=n(3980),a=n.n(o),s=n(6002),u=n(7903),l=n(9371),c="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},d={exports:{}};r=d,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r0?2==u.length?typeof u[1]==i?this[u[0]]=u[1].call(this,c):this[u[0]]=u[1]:3==u.length?typeof u[1]!==i||u[1].exec&&u[1].test?this[u[0]]=c?c.replace(u[1],u[2]):r:this[u[0]]=c?u[1].call(this,c,u[2]):r:4==u.length&&(this[u[0]]=c?u[3].call(this,c.replace(u[1],u[2])):r):this[u]=c||r;d+=2}},str:function(e,t){for(var n in t)if(typeof t[n]===o&&t[n].length>0){for(var i=0;i"']/g,Q=RegExp(W.source),K=RegExp(V.source),X=/<%-([\s\S]+?)%>/g,$=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(re.source),oe=/^\s+/,ae=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,_e=/^0o[0-7]+$/i,Ae=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ie="\\u2700-\\u27bf",Me="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Ne="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['\u2019]",Le="["+we+"]",De="["+Ne+"]",Oe="["+xe+"]",ke="\\d+",Re="["+Ie+"]",je="["+Me+"]",Pe="[^"+we+Ne+ke+Ie+Me+Se+"]",Ue="\\ud83c[\\udffb-\\udfff]",ze="[^"+we+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",qe="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+Se+"]",Ze="\\u200d",Ge="(?:"+je+"|"+Pe+")",Ye="(?:"+Fe+"|"+Pe+")",He="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",We="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ve="(?:"+Oe+"|"+Ue+")"+"?",Qe="["+Ce+"]?",Ke=Qe+Ve+("(?:"+Ze+"(?:"+[ze,Be,qe].join("|")+")"+Qe+Ve+")*"),Xe="(?:"+[Re,Be,qe].join("|")+")"+Ke,$e="(?:"+[ze+Oe+"?",Oe,Be,qe,Le].join("|")+")",Je=RegExp(Te,"g"),et=RegExp(Oe,"g"),tt=RegExp(Ue+"(?="+Ue+")|"+$e+Ke,"g"),nt=RegExp([Fe+"?"+je+"+"+He+"(?="+[De,Fe,"$"].join("|")+")",Ye+"+"+We+"(?="+[De,Fe+Ge,"$"].join("|")+")",Fe+"?"+Ge+"+"+He,Fe+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ke,Xe].join("|"),"g"),rt=RegExp("["+Ze+we+xe+Ce+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,st={};st[R]=st[j]=st[P]=st[U]=st[z]=st[B]=st[q]=st[F]=st[Z]=!0,st[v]=st[_]=st[O]=st[A]=st[k]=st[y]=st[b]=st[E]=st[x]=st[I]=st[M]=st[C]=st[N]=st[T]=st[D]=!1;var ut={};ut[v]=ut[_]=ut[O]=ut[k]=ut[A]=ut[y]=ut[R]=ut[j]=ut[P]=ut[U]=ut[z]=ut[x]=ut[I]=ut[M]=ut[C]=ut[N]=ut[T]=ut[L]=ut[B]=ut[q]=ut[F]=ut[Z]=!0,ut[b]=ut[E]=ut[D]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,dt=parseInt,pt="object"==typeof c&&c&&c.Object===Object&&c,ft="object"==typeof self&&self&&self.Object===Object&&self,ht=pt||ft||Function("return this")(),gt=t&&!t.nodeType&&t,mt=gt&&e&&!e.nodeType&&e,vt=mt&&mt.exports===gt,_t=vt&&pt.process,At=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||_t&&_t.binding&&_t.binding("util")}catch(t){}}(),yt=At&&At.isArrayBuffer,bt=At&&At.isDate,Et=At&&At.isMap,wt=At&&At.isRegExp,xt=At&&At.isSet,It=At&&At.isTypedArray;function Mt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function St(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function Ot(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function nn(e,t){for(var n=e.length;n--&&Ft(t,e[n],0)>-1;);return n}var rn=Wt({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"}),on=Wt({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+lt[e]}function sn(e){return rt.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,r=e.length,i=0,a=[];++n",""":'"',"'":"'"});var vn=function e(t){var c=(t=null==t?ht:vn.defaults(ht.Object(),t,vn.pick(ht,ot))).Array,ae=t.Date,we=t.Error,xe=t.Function,Ie=t.Math,Me=t.Object,Se=t.RegExp,Ce=t.String,Ne=t.TypeError,Te=c.prototype,Le=xe.prototype,De=Me.prototype,Oe=t["__core-js_shared__"],ke=Le.toString,Re=De.hasOwnProperty,je=0,Pe=function(){var e=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ue=De.toString,ze=ke.call(Me),Be=ht._,qe=Se("^"+ke.call(Re).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=vt?t.Buffer:n,Ze=t.Symbol,Ge=t.Uint8Array,Ye=Fe?Fe.allocUnsafe:n,He=ln(Me.getPrototypeOf,Me),We=Me.create,Ve=De.propertyIsEnumerable,Qe=Te.splice,Ke=Ze?Ze.isConcatSpreadable:n,Xe=Ze?Ze.iterator:n,$e=Ze?Ze.toStringTag:n,tt=function(){try{var e=po(Me,"defineProperty");return e({},"",{}),e}catch(t){}}(),rt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,lt=ae&&ae.now!==ht.Date.now&&ae.now,pt=t.setTimeout!==ht.setTimeout&&t.setTimeout,ft=Ie.ceil,gt=Ie.floor,mt=Me.getOwnPropertySymbols,_t=Fe?Fe.isBuffer:n,At=t.isFinite,zt=Te.join,Wt=ln(Me.keys,Me),_n=Ie.max,An=Ie.min,yn=ae.now,bn=t.parseInt,En=Ie.random,wn=Te.reverse,xn=po(t,"DataView"),In=po(t,"Map"),Mn=po(t,"Promise"),Sn=po(t,"Set"),Cn=po(t,"WeakMap"),Nn=po(Me,"create"),Tn=Cn&&new Cn,Ln={},Dn=Uo(xn),On=Uo(In),kn=Uo(Mn),Rn=Uo(Sn),jn=Uo(Cn),Pn=Ze?Ze.prototype:n,Un=Pn?Pn.valueOf:n,zn=Pn?Pn.toString:n;function Bn(e){if(ts(e)&&!Ga(e)&&!(e instanceof Gn)){if(e instanceof Zn)return e;if(Re.call(e,"__wrapped__"))return zo(e)}return new Zn(e)}var qn=function(){function e(){}return function(t){if(!es(t))return{};if(We)return We(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Fn(){}function Zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Gn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function ur(e,t,r,i,o,a){var s,u=1&t,l=2&t,c=4&t;if(r&&(s=o?r(e,i,o,a):r(e)),s!==n)return s;if(!es(e))return e;var d=Ga(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return Ni(e,s)}else{var p=go(e),f=p==E||p==w;if(Va(e))return wi(e,u);if(p==M||p==v||f&&!o){if(s=l||f?{}:vo(e),!u)return l?function(e,t){return Ti(e,ho(e),t)}(e,function(e,t){return e&&Ti(t,Ds(t),e)}(s,e)):function(e,t){return Ti(e,fo(e),t)}(e,ir(s,e))}else{if(!ut[p])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case O:return xi(e);case A:case y:return new r(+e);case k:return function(e,t){var n=t?xi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case j:case P:case U:case z:case B:case q:case F:case Z:return Ii(e,n);case x:return new r;case I:case T:return new r(e);case C:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case N:return new r;case L:return i=e,Un?Me(Un.call(i)):{}}var i}(e,p,u)}}a||(a=new Qn);var h=a.get(e);if(h)return h;a.set(e,s),as(e)?e.forEach((function(n){s.add(ur(n,t,r,n,e,a))})):ns(e)&&e.forEach((function(n,i){s.set(i,ur(n,t,r,i,e,a))}));var g=d?n:(c?l?io:ro:l?Ds:Ls)(e);return Ct(g||e,(function(n,i){g&&(n=e[i=n]),tr(s,i,ur(n,t,r,i,e,a))})),s}function lr(e,t,r){var i=r.length;if(null==e)return!i;for(e=Me(e);i--;){var o=r[i],a=t[o],s=e[o];if(s===n&&!(o in e)||!a(s))return!1}return!0}function cr(e,t,i){if("function"!=typeof e)throw new Ne(r);return Lo((function(){e.apply(n,i)}),t)}function dr(e,t,n,r){var i=-1,o=Dt,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=kt(t,$t(n))),r?(o=Ot,a=!1):t.length>=200&&(o=en,a=!1,t=new Vn(t));e:for(;++i-1},Hn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Wn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(In||Hn),string:new Yn}},Wn.prototype.delete=function(e){var t=lo(this,e).delete(e);return this.size-=t?1:0,t},Wn.prototype.get=function(e){return lo(this,e).get(e)},Wn.prototype.has=function(e){return lo(this,e).has(e)},Wn.prototype.set=function(e,t){var n=lo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Vn.prototype.add=Vn.prototype.push=function(e){return this.__data__.set(e,i),this},Vn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.clear=function(){this.__data__=new Hn,this.size=0},Qn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Qn.prototype.get=function(e){return this.__data__.get(e)},Qn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Hn){var r=n.__data__;if(!In||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wn(r)}return n.set(e,t),this.size=n.size,this};var pr=Oi(yr),fr=Oi(br,!0);function hr(e,t){var n=!0;return pr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,r){for(var i=-1,o=e.length;++i0&&n(s)?t>1?vr(s,t-1,n,r,i):Rt(i,s):r||(i[i.length]=s)}return i}var _r=ki(),Ar=ki(!0);function yr(e,t){return e&&_r(e,t,Ls)}function br(e,t){return e&&Ar(e,t,Ls)}function Er(e,t){return Lt(t,(function(t){return Xa(e[t])}))}function wr(e,t){for(var r=0,i=(t=Ai(t,e)).length;null!=e&&rt}function Sr(e,t){return null!=e&&Re.call(e,t)}function Cr(e,t){return null!=e&&t in Me(e)}function Nr(e,t,r){for(var i=r?Ot:Dt,o=e[0].length,a=e.length,s=a,u=c(a),l=1/0,d=[];s--;){var p=e[s];s&&t&&(p=kt(p,$t(t))),l=An(p.length,l),u[s]=!r&&(t||o>=120&&p.length>=120)?new Vn(s&&p):n}p=e[0];var f=-1,h=u[0];e:for(;++f=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Yr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&Qe.call(s,u,1),Qe.call(e,u,1);return e}function Wr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Ao(i)?Qe.call(e,i,1):di(e,i)}}return e}function Vr(e,t){return e+gt(En()*(t-e+1))}function Qr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return Do(So(e,t,ru),e+"")}function Xr(e){return Xn(Bs(e))}function $r(e,t){var n=Bs(e);return Ro(n,sr(t,0,n.length))}function Jr(e,t,r,i){if(!es(e))return e;for(var o=-1,a=(t=Ai(t,e)).length,s=a-1,u=e;null!=u&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=c(i);++r>>1,a=e[o];null!==a&&!us(a)&&(n?a<=t:a=200){var l=t?null:Qi(e);if(l)return dn(l);a=!1,i=en,u=new Vn}else u=t?[]:s;e:for(;++r=i?e:ri(e,t,r)}var Ei=rt||function(e){return ht.clearTimeout(e)};function wi(e,t){if(t)return e.slice();var n=e.length,r=Ye?Ye(n):new e.constructor(n);return e.copy(r),r}function xi(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function Ii(e,t){var n=t?xi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Mi(e,t){if(e!==t){var r=e!==n,i=null===e,o=e===e,a=us(e),s=t!==n,u=null===t,l=t===t,c=us(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||i&&s&&l||!r&&l||!o)return 1;if(!i&&!a&&!c&&e1?r[o-1]:n,s=o>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(o--,a):n,s&&yo(r[0],r[1],s)&&(a=o<3?n:a,o=1),t=Me(t);++i-1?o[a?t[s]:s]:n}}function zi(e){return no((function(t){var i=t.length,o=i,a=Zn.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if("function"!=typeof s)throw new Ne(r);if(a&&!u&&"wrapper"==ao(s))var u=new Zn([],!0)}for(o=u?o:i;++o1&&y.reverse(),f&&du))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var p=-1,f=!0,h=2&r?new Vn:n;for(a.set(e,t),a.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(m,(function(n){var r="_."+n[0];t&n[1]&&!Dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(le):[]}(r),n)))}function ko(e){var t=0,r=0;return function(){var i=yn(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ro(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,oa(e,r)}));function pa(e){var t=Bn(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var ha=no((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Gn&&Ao(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:fa,args:[o],thisArg:n}),new Zn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var ga=Li((function(e,t,n){Re.call(e,n)?++e[n]:or(e,n,1)}));var ma=Ui(Zo),va=Ui(Go);function _a(e,t){return(Ga(e)?Ct:pr)(e,uo(t,3))}function Aa(e,t){return(Ga(e)?Nt:fr)(e,uo(t,3))}var ya=Li((function(e,t,n){Re.call(e,n)?e[n].push(t):or(e,n,[t])}));var ba=Kr((function(e,t,n){var r=-1,i="function"==typeof t,o=Ha(e)?c(e.length):[];return pr(e,(function(e){o[++r]=i?Mt(t,e,n):Tr(e,t,n)})),o})),Ea=Li((function(e,t,n){or(e,n,t)}));function wa(e,t){return(Ga(e)?kt:zr)(e,uo(t,3))}var xa=Li((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ia=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yo(e,t[0],t[1])?t=[]:n>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),Gr(e,vr(t,1),[])})),Ma=lt||function(){return ht.Date.now()};function Sa(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Xi(e,l,n,n,n,n,t)}function Ca(e,t){var i;if("function"!=typeof t)throw new Ne(r);return e=hs(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Na=Kr((function(e,t,n){var r=1;if(n.length){var i=cn(n,so(Na));r|=s}return Xi(e,r,t,n,i)})),Ta=Kr((function(e,t,n){var r=3;if(n.length){var i=cn(n,so(Ta));r|=s}return Xi(t,r,e,n,i)}));function La(e,t,i){var o,a,s,u,l,c,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Ne(r);function g(t){var r=o,i=a;return o=a=n,d=t,u=e.apply(i,r)}function m(e){var r=e-c;return c===n||r>=t||r<0||f&&e-d>=s}function v(){var e=Ma();if(m(e))return _(e);l=Lo(v,function(e){var n=t-(e-c);return f?An(n,s-(e-d)):n}(e))}function _(e){return l=n,h&&o?g(e):(o=a=n,u)}function A(){var e=Ma(),r=m(e);if(o=arguments,a=this,c=e,r){if(l===n)return function(e){return d=e,l=Lo(v,t),p?g(e):u}(c);if(f)return Ei(l),l=Lo(v,t),g(c)}return l===n&&(l=Lo(v,t)),u}return t=ms(t)||0,es(i)&&(p=!!i.leading,s=(f="maxWait"in i)?_n(ms(i.maxWait)||0,t):s,h="trailing"in i?!!i.trailing:h),A.cancel=function(){l!==n&&Ei(l),d=0,o=c=a=l=n},A.flush=function(){return l===n?u:_(Ma())},A}var Da=Kr((function(e,t){return cr(e,1,t)})),Oa=Kr((function(e,t,n){return cr(e,ms(t)||0,n)}));function ka(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ne(r);var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(ka.Cache||Wn),n}function Ra(e){if("function"!=typeof e)throw new Ne(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ka.Cache=Wn;var ja=yi((function(e,t){var n=(t=1==t.length&&Ga(t[0])?kt(t[0],$t(uo())):kt(vr(t,1),$t(uo()))).length;return Kr((function(r){for(var i=-1,o=An(r.length,n);++i=t})),Za=Lr(function(){return arguments}())?Lr:function(e){return ts(e)&&Re.call(e,"callee")&&!Ve.call(e,"callee")},Ga=c.isArray,Ya=yt?$t(yt):function(e){return ts(e)&&Ir(e)==O};function Ha(e){return null!=e&&Ja(e.length)&&!Xa(e)}function Wa(e){return ts(e)&&Ha(e)}var Va=_t||mu,Qa=bt?$t(bt):function(e){return ts(e)&&Ir(e)==y};function Ka(e){if(!ts(e))return!1;var t=Ir(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Xa(e){if(!es(e))return!1;var t=Ir(e);return t==E||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $a(e){return"number"==typeof e&&e==hs(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var ns=Et?$t(Et):function(e){return ts(e)&&go(e)==x};function rs(e){return"number"==typeof e||ts(e)&&Ir(e)==I}function is(e){if(!ts(e)||Ir(e)!=M)return!1;var t=He(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==ze}var os=wt?$t(wt):function(e){return ts(e)&&Ir(e)==C};var as=xt?$t(xt):function(e){return ts(e)&&go(e)==N};function ss(e){return"string"==typeof e||!Ga(e)&&ts(e)&&Ir(e)==T}function us(e){return"symbol"==typeof e||ts(e)&&Ir(e)==L}var ls=It?$t(It):function(e){return ts(e)&&Ja(e.length)&&!!st[Ir(e)]};var cs=Hi(Ur),ds=Hi((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Ha(e))return ss(e)?hn(e):Ni(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=go(e);return(t==x?un:t==N?dn:Bs)(e)}function fs(e){return e?(e=ms(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function hs(e){var t=fs(e),n=t%1;return t===t?n?t-n:t:0}function gs(e){return e?sr(hs(e),0,g):0}function ms(e){if("number"==typeof e)return e;if(us(e))return h;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=me.test(e);return n||_e.test(e)?dt(e.slice(2),n?2:8):ge.test(e)?h:+e}function vs(e){return Ti(e,Ds(e))}function _s(e){return null==e?"":li(e)}var As=Di((function(e,t){if(xo(t)||Ha(t))Ti(t,Ls(t),e);else for(var n in t)Re.call(t,n)&&tr(e,n,t[n])})),ys=Di((function(e,t){Ti(t,Ds(t),e)})),bs=Di((function(e,t,n,r){Ti(t,Ds(t),e,r)})),Es=Di((function(e,t,n,r){Ti(t,Ls(t),e,r)})),ws=no(ar);var xs=Kr((function(e,t){e=Me(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&yo(t[0],t[1],o)&&(i=1);++r1),t})),Ti(e,io(e),n),r&&(n=ur(n,7,eo));for(var i=t.length;i--;)di(n,t[i]);return n}));var js=no((function(e,t){return null==e?{}:function(e,t){return Yr(e,t,(function(t,n){return Ss(e,n)}))}(e,t)}));function Ps(e,t){if(null==e)return{};var n=kt(io(e),(function(e){return[e]}));return t=uo(t),Yr(e,n,(function(e,n){return t(e,n[0])}))}var Us=Ki(Ls),zs=Ki(Ds);function Bs(e){return null==e?[]:Jt(e,Ls(e))}var qs=ji((function(e,t,n){return t=t.toLowerCase(),e+(n?Fs(t):t)}));function Fs(e){return Ks(_s(e).toLowerCase())}function Zs(e){return(e=_s(e))&&e.replace(ye,rn).replace(et,"")}var Gs=ji((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ys=ji((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Hs=Ri("toLowerCase");var Ws=ji((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Vs=ji((function(e,t,n){return e+(n?" ":"")+Ks(t)}));var Qs=ji((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ks=Ri("toUpperCase");function Xs(e,t,r){return e=_s(e),(t=r?n:t)===n?function(e){return it.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var $s=Kr((function(e,t){try{return Mt(e,n,t)}catch(r){return Ka(r)?r:new we(r)}})),Js=no((function(e,t){return Ct(t,(function(t){t=Po(t),or(e,t,Na(e[t],e))})),e}));function eu(e){return function(){return e}}var tu=zi(),nu=zi(!0);function ru(e){return e}function iu(e){return Rr("function"==typeof e?e:ur(e,1))}var ou=Kr((function(e,t){return function(n){return Tr(n,e,t)}})),au=Kr((function(e,t){return function(n){return Tr(e,n,t)}}));function su(e,t,n){var r=Ls(t),i=Er(t,r);null!=n||es(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Er(t,Ls(t)));var o=!(es(n)&&"chain"in n)||!!n.chain,a=Xa(e);return Ct(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Ni(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})})),e}function uu(){}var lu=Zi(kt),cu=Zi(Tt),du=Zi(Ut);function pu(e){return bo(e)?Ht(Po(e)):function(e){return function(t){return wr(t,e)}}(e)}var fu=Yi(),hu=Yi(!0);function gu(){return[]}function mu(){return!1}var vu=Fi((function(e,t){return e+t}),0),_u=Vi("ceil"),Au=Fi((function(e,t){return e/t}),1),yu=Vi("floor");var bu=Fi((function(e,t){return e*t}),1),Eu=Vi("round"),wu=Fi((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new Ne(r);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Sa,Bn.assign=As,Bn.assignIn=ys,Bn.assignInWith=bs,Bn.assignWith=Es,Bn.at=ws,Bn.before=Ca,Bn.bind=Na,Bn.bindAll=Js,Bn.bindKey=Ta,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ga(e)?e:[e]},Bn.chain=pa,Bn.chunk=function(e,t,r){t=(r?yo(e,t,r):t===n)?1:_n(hs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=c(ft(i/t));oo?0:o+r),(i=i===n||i>o?o:hs(i))<0&&(i+=o),i=r>i?0:gs(i);r>>0)?(e=_s(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=li(t))&&sn(e)?bi(hn(e),0,r):e.split(t,r):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new Ne(r);return t=null==t?0:_n(hs(t),0),Kr((function(n){var r=n[t],i=bi(n,0,t);return r&&Rt(i,r),Mt(e,this,i)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?ri(e,1,t):[]},Bn.take=function(e,t,r){return e&&e.length?ri(e,0,(t=r||t===n?1:hs(t))<0?0:t):[]},Bn.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?ri(e,(t=i-(t=r||t===n?1:hs(t)))<0?0:t,i):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?fi(e,uo(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?fi(e,uo(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new Ne(r);return es(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),La(e,t,{leading:i,maxWait:t,trailing:o})},Bn.thru=fa,Bn.toArray=ps,Bn.toPairs=Us,Bn.toPairsIn=zs,Bn.toPath=function(e){return Ga(e)?kt(e,Po):us(e)?[e]:Ni(jo(_s(e)))},Bn.toPlainObject=vs,Bn.transform=function(e,t,n){var r=Ga(e),i=r||Va(e)||ls(e);if(t=uo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:es(e)&&Xa(o)?qn(He(e)):{}}return(i?Ct:yr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Bn.unary=function(e){return Sa(e,1)},Bn.union=ta,Bn.unionBy=na,Bn.unionWith=ra,Bn.uniq=function(e){return e&&e.length?ci(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?ci(e,uo(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?ci(e,n,t):[]},Bn.unset=function(e,t){return null==e||di(e,t)},Bn.unzip=ia,Bn.unzipWith=oa,Bn.update=function(e,t,n){return null==e?e:pi(e,t,_i(n))},Bn.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:pi(e,t,_i(r),i)},Bn.values=Bs,Bn.valuesIn=function(e){return null==e?[]:Jt(e,Ds(e))},Bn.without=aa,Bn.words=Xs,Bn.wrap=function(e,t){return Pa(_i(t),e)},Bn.xor=sa,Bn.xorBy=ua,Bn.xorWith=la,Bn.zip=ca,Bn.zipObject=function(e,t){return mi(e||[],t||[],tr)},Bn.zipObjectDeep=function(e,t){return mi(e||[],t||[],Jr)},Bn.zipWith=da,Bn.entries=Us,Bn.entriesIn=zs,Bn.extend=ys,Bn.extendWith=bs,su(Bn,Bn),Bn.add=vu,Bn.attempt=$s,Bn.camelCase=qs,Bn.capitalize=Fs,Bn.ceil=_u,Bn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ms(r))===r?r:0),t!==n&&(t=(t=ms(t))===t?t:0),sr(ms(e),t,r)},Bn.clone=function(e){return ur(e,4)},Bn.cloneDeep=function(e){return ur(e,5)},Bn.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:n)},Bn.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:n)},Bn.conformsTo=function(e,t){return null==t||lr(e,t,Ls(t))},Bn.deburr=Zs,Bn.defaultTo=function(e,t){return null==e||e!==e?t:e},Bn.divide=Au,Bn.endsWith=function(e,t,r){e=_s(e),t=li(t);var i=e.length,o=r=r===n?i:sr(hs(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},Bn.eq=Ba,Bn.escape=function(e){return(e=_s(e))&&K.test(e)?e.replace(V,on):e},Bn.escapeRegExp=function(e){return(e=_s(e))&&ie.test(e)?e.replace(re,"\\$&"):e},Bn.every=function(e,t,r){var i=Ga(e)?Tt:hr;return r&&yo(e,t,r)&&(t=n),i(e,uo(t,3))},Bn.find=ma,Bn.findIndex=Zo,Bn.findKey=function(e,t){return Bt(e,uo(t,3),yr)},Bn.findLast=va,Bn.findLastIndex=Go,Bn.findLastKey=function(e,t){return Bt(e,uo(t,3),br)},Bn.floor=yu,Bn.forEach=_a,Bn.forEachRight=Aa,Bn.forIn=function(e,t){return null==e?e:_r(e,uo(t,3),Ds)},Bn.forInRight=function(e,t){return null==e?e:Ar(e,uo(t,3),Ds)},Bn.forOwn=function(e,t){return e&&yr(e,uo(t,3))},Bn.forOwnRight=function(e,t){return e&&br(e,uo(t,3))},Bn.get=Ms,Bn.gt=qa,Bn.gte=Fa,Bn.has=function(e,t){return null!=e&&mo(e,t,Sr)},Bn.hasIn=Ss,Bn.head=Ho,Bn.identity=ru,Bn.includes=function(e,t,n,r){e=Ha(e)?e:Bs(e),n=n&&!r?hs(n):0;var i=e.length;return n<0&&(n=_n(i+n,0)),ss(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ft(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:hs(n);return i<0&&(i=_n(r+i,0)),Ft(e,t,i)},Bn.inRange=function(e,t,r){return t=fs(t),r===n?(r=t,t=0):r=fs(r),function(e,t,n){return e>=An(t,n)&&e<_n(t,n)}(e=ms(e),t,r)},Bn.invoke=Ts,Bn.isArguments=Za,Bn.isArray=Ga,Bn.isArrayBuffer=Ya,Bn.isArrayLike=Ha,Bn.isArrayLikeObject=Wa,Bn.isBoolean=function(e){return!0===e||!1===e||ts(e)&&Ir(e)==A},Bn.isBuffer=Va,Bn.isDate=Qa,Bn.isElement=function(e){return ts(e)&&1===e.nodeType&&!is(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Ha(e)&&(Ga(e)||"string"==typeof e||"function"==typeof e.splice||Va(e)||ls(e)||Za(e)))return!e.length;var t=go(e);if(t==x||t==N)return!e.size;if(xo(e))return!jr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Dr(e,t)},Bn.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return i===n?Dr(e,t,n,r):!!i},Bn.isError=Ka,Bn.isFinite=function(e){return"number"==typeof e&&At(e)},Bn.isFunction=Xa,Bn.isInteger=$a,Bn.isLength=Ja,Bn.isMap=ns,Bn.isMatch=function(e,t){return e===t||Or(e,t,co(t))},Bn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Or(e,t,co(t),r)},Bn.isNaN=function(e){return rs(e)&&e!=+e},Bn.isNative=function(e){if(wo(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return kr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=rs,Bn.isObject=es,Bn.isObjectLike=ts,Bn.isPlainObject=is,Bn.isRegExp=os,Bn.isSafeInteger=function(e){return $a(e)&&e>=-9007199254740991&&e<=f},Bn.isSet=as,Bn.isString=ss,Bn.isSymbol=us,Bn.isTypedArray=ls,Bn.isUndefined=function(e){return e===n},Bn.isWeakMap=function(e){return ts(e)&&go(e)==D},Bn.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==Ir(e)},Bn.join=function(e,t){return null==e?"":zt.call(e,t)},Bn.kebabCase=Gs,Bn.last=Ko,Bn.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=hs(r))<0?_n(i+o,0):An(o,i-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):qt(e,Gt,o,!0)},Bn.lowerCase=Ys,Bn.lowerFirst=Hs,Bn.lt=cs,Bn.lte=ds,Bn.max=function(e){return e&&e.length?gr(e,ru,Mr):n},Bn.maxBy=function(e,t){return e&&e.length?gr(e,uo(t,2),Mr):n},Bn.mean=function(e){return Yt(e,ru)},Bn.meanBy=function(e,t){return Yt(e,uo(t,2))},Bn.min=function(e){return e&&e.length?gr(e,ru,Ur):n},Bn.minBy=function(e,t){return e&&e.length?gr(e,uo(t,2),Ur):n},Bn.stubArray=gu,Bn.stubFalse=mu,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=bu,Bn.nth=function(e,t){return e&&e.length?Zr(e,hs(t)):n},Bn.noConflict=function(){return ht._===this&&(ht._=Be),this},Bn.noop=uu,Bn.now=Ma,Bn.pad=function(e,t,n){e=_s(e);var r=(t=hs(t))?fn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Gi(gt(i),n)+e+Gi(ft(i),n)},Bn.padEnd=function(e,t,n){e=_s(e);var r=(t=hs(t))?fn(e):0;return t&&rt){var i=e;e=t,t=i}if(r||e%1||t%1){var o=En();return An(e+o*(t-e+ct("1e-"+((o+"").length-1))),t)}return Vr(e,t)},Bn.reduce=function(e,t,n){var r=Ga(e)?jt:Vt,i=arguments.length<3;return r(e,uo(t,4),n,i,pr)},Bn.reduceRight=function(e,t,n){var r=Ga(e)?Pt:Vt,i=arguments.length<3;return r(e,uo(t,4),n,i,fr)},Bn.repeat=function(e,t,r){return t=(r?yo(e,t,r):t===n)?1:hs(t),Qr(_s(e),t)},Bn.replace=function(){var e=arguments,t=_s(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,r){var i=-1,o=(t=Ai(t,e)).length;for(o||(o=1,e=n);++if)return[];var n=g,r=An(e,g);t=uo(t),e-=g;for(var i=Kt(r,t);++n=a)return e;var u=r-fn(i);if(u<1)return i;var l=s?bi(s,0,u).join(""):e.slice(0,u);if(o===n)return l+i;if(s&&(u+=l.length-u),os(o)){if(e.slice(u).search(o)){var c,d=l;for(o.global||(o=Se(o.source,_s(he.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var p=c.index;l=l.slice(0,p===n?u:p)}}else if(e.indexOf(li(o),u)!=u){var f=l.lastIndexOf(o);f>-1&&(l=l.slice(0,f))}return l+i},Bn.unescape=function(e){return(e=_s(e))&&Q.test(e)?e.replace(W,mn):e},Bn.uniqueId=function(e){var t=++je;return _s(e)+t},Bn.upperCase=Qs,Bn.upperFirst=Ks,Bn.each=_a,Bn.eachRight=Aa,Bn.first=Ho,su(Bn,function(){var e={};return yr(Bn,(function(t,n){Re.call(Bn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Bn.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),Ct(["drop","take"],(function(e,t){Gn.prototype[e]=function(r){r=r===n?1:_n(hs(r),0);var i=this.__filtered__&&!t?new Gn(this):this.clone();return i.__filtered__?i.__takeCount__=An(r,i.__takeCount__):i.__views__.push({size:An(r,g),type:e+(i.__dir__<0?"Right":"")}),i},Gn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Gn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:uo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Gn.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Gn.prototype[e]=function(){return this.__filtered__?new Gn(this):this[n](1)}})),Gn.prototype.compact=function(){return this.filter(ru)},Gn.prototype.find=function(e){return this.filter(e).head()},Gn.prototype.findLast=function(e){return this.reverse().find(e)},Gn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Gn(this):this.map((function(n){return Tr(n,e,t)}))})),Gn.prototype.reject=function(e){return this.filter(Ra(uo(e)))},Gn.prototype.slice=function(e,t){e=hs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Gn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},Gn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Gn.prototype.toArray=function(){return this.take(g)},yr(Gn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=Bn[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(Bn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,u=t instanceof Gn,l=s[0],c=u||Ga(t),d=function(e){var t=o.apply(Bn,Rt([e],s));return i&&p?t[0]:t};c&&r&&"function"==typeof l&&1!=l.length&&(u=c=!1);var p=this.__chain__,f=!!this.__actions__.length,h=a&&!p,g=u&&!f;if(!a&&c){t=g?t:new Gn(this);var m=e.apply(t,s);return m.__actions__.push({func:fa,args:[d],thisArg:n}),new Zn(m,p)}return h&&g?e.apply(this,s):(m=this.thru(d),h?i?m.value()[0]:m.value():m)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ga(i)?i:[],e)}return this[n]((function(n){return t.apply(Ga(n)?n:[],e)}))}})),yr(Gn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";Re.call(Ln,r)||(Ln[r]=[]),Ln[r].push({name:t,func:n})}})),Ln[Bi(n,2).name]=[{name:"wrapper",func:n}],Gn.prototype.clone=function(){var e=new Gn(this.__wrapped__);return e.__actions__=Ni(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ni(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ni(this.__views__),e},Gn.prototype.reverse=function(){if(this.__filtered__){var e=new Gn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Gn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ga(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,r=this;r instanceof Fn;){var i=zo(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Gn){var t=e;return this.__actions__.length&&(t=new Gn(this)),(t=t.reverse()).__actions__.push({func:fa,args:[ea],thisArg:n}),new Zn(t,this.__chain__)}return this.thru(ea)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Xe&&(Bn.prototype[Xe]=function(){return this}),Bn}();mt?((mt.exports=vn)._=vn,gt._=vn):ht._=vn}).call(c)}(P,P.exports);var U=P.exports,z={exports:{}},B="undefined"!==typeof window?window:"undefined"!==typeof c?c:"undefined"!==typeof self?self:{},q=function(e){if(!e)return!1;var t=F.call(e);return"[object Function]"===t||"function"===typeof e&&"[object RegExp]"!==t||"undefined"!==typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)},F=Object.prototype.toString;var Z=function(e){return e.replace(/^\s+|\s+$/g,"")},G=function(){for(var e={},t=0;t0&&(l=setTimeout((function(){if(!s){s=!0,u.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",i(e)}}),e.timeout)),u.setRequestHeader)for(a in f)f.hasOwnProperty(a)&&u.setRequestHeader(a,f[a]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&"function"===typeof e.beforeSend&&e.beforeSend(u),u.send(p||null),u}z.exports=X,z.exports.default=X,X.XMLHttpRequest=H.XMLHttpRequest||function(){},X.XDomainRequest="withCredentials"in new X.XMLHttpRequest?X.XMLHttpRequest:H.XDomainRequest,function(e,t){for(var n=0;nt||(clearTimeout(e.j),e.j=setTimeout((function(){var t=performance.timing.navigationStart,n=h(e.g,e.b);t=(window.a&&window.a.A?1e3*window.a.A().C-t:0)||performance.timing.domContentLoadedEventEnd-t;if(e.u)var r=e.u;else performance.timing.domContentLoadedEventEnd?r=(r=performance.timing).domContentLoadedEventEnd-r.navigationStart:r=null;var i=performance.now();null===r&&v(e,Math.max(n+5e3,i+1e3));var o=e.a;5e3>i-n?n=null:n=5e3>i-(n=o.length?o[o.length-1].end:t)?null:Math.max(n,r),n&&(e.s(n),clearTimeout(e.j),e.i=!1,e.c&&e.c.disconnect(),e.h&&e.h.disconnect()),v(e,performance.now()+1e3)}),t-performance.now()),e.v=t)}g.prototype.getFirstConsistentlyInteractive=function(){var e=this;return new Promise((function(t){e.s=t,"complete"==document.readyState?m(e):window.addEventListener("load",(function(){m(e)}))}))},g.prototype.m=function(e){this.f.set(e,performance.now())},g.prototype.l=function(e){this.f.delete(e)},g.prototype.B=function(){v(this,performance.now()+5e3)},t.Object.defineProperties(g.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return[].concat(l(this.f.values()))}}});var _={getFirstConsistentlyInteractive:function(e){return e=e||{},"PerformanceLongTaskTiming"in window?new g(e).getFirstConsistentlyInteractive():Promise.resolve(null)}};e.exports?e.exports=_:window.ttiPolyfill=_}()}({exports:{}});var J={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},ee=function e(t){for(var n=[],r=1;r>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,me)}function ve(e){return 0!==e&&100*Math.random()<=e}function _e(e,t){return+e.toFixed(t)}function Ae(){}function ye(e,t,n){if(null===e||void 0===e)return JSON.stringify(e);var r=[!1,void 0];be(e)&&(r=[!0,e.toJSON],delete e.toJSON);var i,o,a=[!1,void 0];"object"===typeof e&&be(i=Object.getPrototypeOf(e))&&(a=[!0,i.toJSON],delete i.toJSON);try{o=JSON.stringify(e,t,n)}catch(ca){o=""}finally{r[0]&&(e.toJSON=r[1]),a[0]&&(i.toJSON=a[1])}return o}function be(e){return"object"===typeof e&&null!==e&&Object.prototype.hasOwnProperty.call(e,"toJSON")}function Ee(e,t){return-1!==e.indexOf(t)}function we(e){if(Array.from)return Array.from(e);var t=[];if(e instanceof Set)e.forEach((function(e){return t.push(e)}));else for(var n=0;n=0&&e<=100}function Me(e){return"number"===typeof e}function Se(e){return Object.keys(e).map((function(t){return e[t]}))}function Ce(e){return Object.keys(e).map((function(t){return[t,e[t]]}))}function Ne(e){return 0===Object.keys(e).length}function Te(e,t){return e.slice(0,t.length)===t}function Le(){if("object"===typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var e=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!==typeof e&&(e="object"===typeof self?self:"object"===typeof window?window:{}),e}function De(e){if(e.origin)return e.origin;var t=e.host.replace(/(:80|:443)$/,"");return"".concat(e.protocol,"//").concat(t)}function Oe(e,t){var n=new RegExp("(?:^|;)\\s*".concat(t,"\\s*=\\s*([^;]+)")).exec(e);return n?n[1]:void 0}function ke(e,t,n){void 0===n&&(n="");var r=e.charCodeAt(t-1),i=r>=55296&&r<=56319?t+1:t;return e.length<=i?e:"".concat(e.slice(0,i)).concat(n)}function Re(e,t,n,r){return je(e,[t],n,r)}function je(e,t,n,r){var i=void 0===r?{}:r,o=i.once,a=i.capture,s=i.passive,u=oe(o?function(e){c(),n(e)}:n),l=s?{capture:a,passive:s}:a;t.forEach((function(t){return e.addEventListener(t,u,l)}));var c=function(){return t.forEach((function(t){return e.removeEventListener(t,u,l)}))};return{stop:c}}function Pe(e,t){document.readyState===e||"complete"===document.readyState?t():Re(window,"complete"===e?"load":"DOMContentLoaded",t,{once:!0})}function Ue(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function ze(e,t,n){if(void 0===n&&(n=function(){if("undefined"!==typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(t){var n=e.has(t);return n||e.add(t),n}}}var t=[];return{hasAlreadyBeenSeen:function(e){var n=t.indexOf(e)>=0;return n||t.push(e),n}}}()),void 0===t)return e;if("object"!==typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var r=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,r)}if(!n.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var i=Array.isArray(e)?e:[],o=0;odt()?Math.round(t+e):function(e){return Math.round(dt()+e)}(e)}function rt(e){return Me(e)?_e(1e6*e,0):e}function it(){return(new Date).getTime()}function ot(){return it()}function at(){return performance.now()}function st(){return{relative:at(),timeStamp:ot()}}function ut(){return{relative:0,timeStamp:dt()}}function lt(e,t){return t-e}function ct(e){return e-dt()}function dt(){return void 0===He&&(He=performance.timing.navigationStart),He}function pt(e){return ft(e,De(window.location)).href}function ft(e,t){if(function(){if(void 0!==We)return We;try{var e=new URL("http://test/path");return We="http://test/path"===e.href}catch(ca){We=!1}return We}())return void 0!==t?new URL(e,t):new URL(e);if(void 0===t&&!/:/.test(e))throw new Error("Invalid URL: '".concat(e,"'"));var n=document,r=n.createElement("a");if(void 0!==t){var i=(n=document.implementation.createHTMLDocument("")).createElement("base");i.href=t,n.head.appendChild(i),n.body.appendChild(r)}return r.href=e,r}var ht="datad0g.com",gt="datadoghq.com",mt={logs:"logs",rum:"rum",sessionReplay:"session-replay"},vt={logs:"logs",rum:"rum",sessionReplay:"replay"};function _t(e,t,n){var r=e.site,i=void 0===r?gt:r,o=e.clientToken,a=i.split("."),s=a.pop(),u="".concat(mt[t],".browser-intake-").concat(a.join("-"),".").concat(s),l="https://".concat(u,"/api/v2/").concat(vt[t]),c=e.proxyUrl&&pt(e.proxyUrl);return{build:function(){var e="ddsource=browser"+"&ddtags=".concat(encodeURIComponent(["sdk_version:".concat("4.15.0")].concat(n).join(",")))+"&dd-api-key=".concat(o)+"&dd-evp-origin-version=".concat(encodeURIComponent("4.15.0"))+"&dd-evp-origin=browser"+"&dd-request-id=".concat(me());"rum"===t&&(e+="&batch_time=".concat(ot()));var r="".concat(l,"?").concat(e);return c?"".concat(c,"?ddforward=").concat(encodeURIComponent(r)):r},buildIntakeUrl:function(){return c?"".concat(c,"?ddforward"):l},endpointType:t}}var At=200;var yt=/[^a-z0-9_:./-]/;function bt(e,t){var n=At-e.length-1;(t.length>n||yt.test(t))&&ee.warn("".concat(e," value doesn't meet tag requirements and will be sanitized"));var r=t.replace(/,/g,"_");return"".concat(e,":").concat(r)}function Et(e){var t=function(e){var t=e.env,n=e.service,r=e.version,i=e.datacenter,o=[];return t&&o.push(bt("env",t)),n&&o.push(bt("service",n)),r&&o.push(bt("version",r)),i&&o.push(bt("datacenter",i)),o}(e),n=function(e,t){return{logsEndpointBuilder:_t(e,"logs",t),rumEndpointBuilder:_t(e,"rum",t),sessionReplayEndpointBuilder:_t(e,"sessionReplay",t)}}(e,t),r=Se(n).map((function(e){return e.buildIntakeUrl()})),i=function(e,t,n){if(!e.replica)return;var r=he({},e,{site:gt,clientToken:e.replica.clientToken}),i={logsEndpointBuilder:_t(r,"logs",n),rumEndpointBuilder:_t(r,"rum",n)};return t.push.apply(t,Se(i).map((function(e){return e.buildIntakeUrl()}))),he({applicationId:e.replica.applicationId},i)}(e,r,t);return he({isIntakeUrl:function(e){return r.some((function(t){return 0===e.indexOf(t)}))},replica:i,site:e.site||gt},n)}var wt={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function xt(e){var t,n;if(e&&e.clientToken)if(void 0===e.sampleRate||Ie(e.sampleRate)){var r;if(void 0===e.telemetrySampleRate||Ie(e.telemetrySampleRate))return r=e.enableExperimentalFeatures,Array.isArray(r)&&(Ye||(Ye=new Set(r)),r.filter((function(e){return"string"===typeof e})).forEach((function(e){Ye.add(e)}))),he({beforeSend:e.beforeSend&&$e(e.beforeSend,"beforeSend threw an error:"),cookieOptions:It(e),sampleRate:null!==(t=e.sampleRate)&&void 0!==t?t:100,telemetrySampleRate:null!==(n=e.telemetrySampleRate)&&void 0!==n?n:20,service:e.service,silentMultipleInit:!!e.silentMultipleInit,batchBytesLimit:Je("lower-batch-size")?10*pe:16*pe,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*ue,batchMessagesLimit:50,messageBytesLimit:256*pe},Et(e));ee.error("Telemetry Sample Rate should be a number between 0 and 100")}else ee.error("Sample Rate should be a number between 0 and 100");else ee.error("Client Token is not configured, we will not send any data.")}function It(e){var t={};return t.secure=function(e){return!!e.useSecureSessionCookie||!!e.useCrossSiteSessionCookie}(e),t.crossSite=!!e.useCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(t.domain=function(){if(void 0===Ge){for(var e="dd_site_test_".concat(me()),t=window.location.hostname.split("."),n=t.pop();t.length&&!Ke(e);)n="".concat(t.pop(),".").concat(n),Qe(e,"test",ue,{domain:n});Xe(e,{domain:n}),Ge=n}return Ge}()),t}var Mt="?";function St(e){var t=[],n=Ot(e,"stack");return n&&n.split("\n").forEach((function(e){var n=function(e){var t=Ct.exec(e);if(!t)return;var n=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),i=Nt.exec(t[2]);r&&i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]);return{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||Mt,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}(e)||function(e){var t=Tt.exec(e);if(!t)return;return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||Mt,line:+t[3],url:t[2]}}(e)||function(e){var t=Lt.exec(e);if(!t)return;var n=t[3]&&t[3].indexOf(" > eval")>-1,r=Dt.exec(t[3]);n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0);return{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||Mt,line:t[4]?+t[4]:void 0,url:t[3]}}(e);n&&(!n.func&&n.line&&(n.func=Mt),t.push(n))})),{message:Ot(e,"message"),name:Ot(e,"name"),stack:t}}var Ct=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Nt=/\((\S*)(?::(\d+))(?::(\d+))\)/;var Tt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var Lt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Dt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Ot(e,t){if("object"===typeof e&&e&&t in e){var n=e[t];return"string"===typeof n?n:void 0}}function kt(e,t,n){var r=e[t],i=n(r),o=function(){return i.apply(this,arguments)};return e[t]=o,{stop:function(){e[t]===o?e[t]=r:i=r}}}function Rt(e,t,n){var r=n.before,i=n.after;return kt(e,t,(function(e){return function(){var t,n=arguments;return r&&ae(r,this,n),"function"===typeof e&&(t=e.apply(this,n)),i&&ae(i,this,n),t}}))}function jt(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t);if(!r||!r.set||!r.configurable)return{stop:Ae};var i=function(e,t){setTimeout(oe((function(){n(e,t)})),0)},o=function(e){r.set.call(this,e),i(this,e)};return Object.defineProperty(e,t,{set:o}),{stop:function(){var n;(null===(n=Object.getOwnPropertyDescriptor(e,t))||void 0===n?void 0:n.set)===o?Object.defineProperty(e,t,r):i=Ae}}}var Pt=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function Ut(e){var t=function(e){return Rt(window,"onerror",{before:function(t,n,r,i,o){var a;if(o)a=St(o),e(a,o);else{var s,u={url:n,column:i,line:r},l=t;if("[object String]"==={}.toString.call(t)){var c=Pt.exec(l);c&&(s=c[1],l=c[2])}e(a={name:s,message:"string"===typeof l?l:void 0,stack:[u]},t)}}})}(e).stop,n=function(e){return Rt(window,"onunhandledrejection",{before:function(t){var n=t.reason||"Empty reason",r=St(n);e(r,n)}})}(e).stop;return{stop:function(){t(),n()}}}var zt={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function Bt(e,t,n,r){return e&&(void 0!==e.message||t instanceof Error)?{message:e.message||"Empty message",stack:qt(e),handlingStack:r,type:e.name}:{message:"".concat(n," ").concat(ye(t)),stack:"No stack, consider using an instance of Error",handlingStack:r,type:e&&e.name}}function qt(e){var t=Ft(e);return e.stack.forEach((function(e){var n="?"===e.func?"":e.func,r=e.args&&e.args.length>0?"(".concat(e.args.join(", "),")"):"",i=e.line?":".concat(e.line):"",o=e.line&&e.column?":".concat(e.column):"";t+="\n at ".concat(n).concat(r," @ ").concat(e.url).concat(i).concat(o)})),t}function Ft(e){return"".concat(e.name||"Error",": ").concat(e.message)}function Zt(){var e,t=new Error;if(!t.stack)try{throw t}catch(n){}return ae((function(){var n=St(t);n.stack=n.stack.slice(2),e=qt(n)})),e}var Gt=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe()||void 0),this.observers.push(e),{unsubscribe:function(){t.observers=t.observers.filter((function(t){return e!==t})),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach((function(t){return t(e)}))},e}();function Yt(){for(var e=[],t=0;t"],Xt=["ddog-gov.com"],$t={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1};function Jt(e){var t,n=new Gt;return $t.telemetryEnabled=ve(e.telemetrySampleRate),Qt=function(r){!Ee(Xt,e.site)&&$t.telemetryEnabled&&n.notify(function(e){return qe({type:"telemetry",date:ot(),service:"browser-sdk",version:"4.15.0",source:"browser",_dd:{format_version:2},telemetry:e,experimental_features:we(et())},void 0!==t?t():{})}(r))},te=tn,he($t,{maxEventsPerPage:e.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(e){t=e},observable:n}}function en(e,t){se(J.debug,e,t),nn(he({message:e,status:"debug"},t))}function tn(e){nn(he({status:"error"},function(e){if(e instanceof Error){var t=St(e);return{error:{kind:t.name,stack:qt(rn(t))},message:t.message}}return{error:{stack:"Not an instance of error"},message:"Uncaught ".concat(ye(e))}}(e)))}function nn(e){Qt&&$t.sentEventCount<$t.maxEventsPerPage&&($t.sentEventCount+=1,Qt(e))}function rn(e){return e.stack=e.stack.filter((function(e){return!e.url||Kt.some((function(t){return Te(e.url,t)}))})),e}var on=1/0,an=le,sn=function(){function e(e){var t=this;this.expireDelay=e,this.entries=[],this.clearOldContextsInterval=setInterval((function(){return t.clearOldContexts()}),an)}return e.prototype.add=function(e,t){var n=this,r={context:e,startTime:t,endTime:on,remove:function(){var e=n.entries.indexOf(r);e>=0&&n.entries.splice(e,1)},close:function(e){r.endTime=e}};return this.entries.unshift(r),r},e.prototype.find=function(e){void 0===e&&(e=on);for(var t=0,n=this.entries;t0&&this.entries[this.entries.length-1].endTime=gn)yn();else{var r,i=wn();if(_n()){if(i.lock)return void An(e,t);if(r=me(),i.lock=r,En(i,e.options),(i=wn()).lock!==r)return void An(e,t)}var o=e.process(i);if(_n()&&(i=wn()).lock!==r)An(e,t);else{if(o&&bn(o,e.options),_n()&&(!o||!xn(o))){if((i=wn()).lock!==r)return void An(e,t);delete i.lock,En(i,e.options),o=i}null===(n=e.after)||void 0===n||n.call(e,o||i),yn()}}else mn.push(e)}function _n(){return!!window.chrome||/HeadlessChrome/.test(window.navigator.userAgent)}function An(e,t){setTimeout(oe((function(){vn(e,t+1)})),hn)}function yn(){un=void 0;var e=mn.shift();e&&vn(e)}function bn(e,t){xn(e)?function(e){Qe(fn,"",0,e)}(t):(e.expire=String(it()+cn),En(e,t))}function En(e,t){Qe(fn,function(e){return Ce(e).map((function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n)})).join(pn)}(e),cn,t)}function wn(){var e=Ke(fn),t={};return function(e){return void 0!==e&&(-1!==e.indexOf(pn)||dn.test(e))}(e)&&e.split(pn).forEach((function(e){var n=dn.exec(e);if(null!==n){var r=n[1],i=n[2];t[r]=i}})),t}function xn(e){return Ne(e)}var In="_dd",Mn="_dd_r",Sn="_dd_l",Cn="rum",Nn="logs";function Tn(e,t,n){var r=new Gt,i=new Gt,o=setInterval(oe((function(){vn({options:e,process:function(e){return l(e)?void 0:{}},after:s})})),Ve),a=function(){var e=wn();if(l(e))return e;return{}}();function s(e){return l(e)||(e={}),u()&&(!function(e){return a.id!==e.id||a[t]!==e[t]}(e)?a=e:(a={},i.notify())),e}function u(){return void 0!==a[t]}function l(e){return(void 0===e.created||it()-Number(e.created)=this.messageBytesLimit?ee.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB.")):(this.hasMessageFor(t)&&this.remove(t),this.willReachedBytesLimitWith(i)&&this.flush("batch_bytes_limit"),this.push(r,i,t),this.isFull()&&this.flush("batch_messages_limit"))},e.prototype.process=function(e){var t=ye(e);return{processedMessage:t,messageBytesCount:this.computeBytesCount(t)}},e.prototype.push=function(e,t,n){this.bufferMessagesCount>0&&(this.bufferBytesCount+=1),void 0!==n?this.upsertBuffer[n]=e:this.pushOnlyBuffer.push(e),this.bufferBytesCount+=t,this.bufferMessagesCount+=1},e.prototype.remove=function(e){var t=this.upsertBuffer[e];delete this.upsertBuffer[e];var n=this.computeBytesCount(t);this.bufferBytesCount-=n,this.bufferMessagesCount-=1,this.bufferMessagesCount>0&&(this.bufferBytesCount-=1)},e.prototype.hasMessageFor=function(e){return void 0!==e&&void 0!==this.upsertBuffer[e]},e.prototype.willReachedBytesLimitWith=function(e){return this.bufferBytesCount+e+1>=this.batchBytesLimit},e.prototype.isFull=function(){return this.bufferMessagesCount===this.batchMessagesLimit||this.bufferBytesCount>=this.batchBytesLimit},e.prototype.flushPeriodically=function(){var e=this;setTimeout(oe((function(){e.flush("batch_flush_timeout"),e.flushPeriodically()})),this.flushTimeout)},e.prototype.flushOnVisibilityHidden=function(){var e=this;navigator.sendBeacon&&(Re(window,"beforeunload",this.beforeUnloadCallback),Re(document,"visibilitychange",(function(){"hidden"===document.visibilityState&&e.flush("visibility_hidden")})),Re(window,"beforeunload",(function(){return e.flush("before_unload")})))},e}();function qn(){var e=Le().DatadogEventBridge;if(e)return{getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,n){e.send(JSON.stringify({eventType:t,event:n}))}}}function Fn(e){var t;void 0===e&&(e=null===(t=Le().location)||void 0===t?void 0:t.hostname);var n=qn();return!!n&&n.getAllowedWebViewHosts().some((function(t){var n=t.replace(/\./g,"\\.");return new RegExp("^(.+\\.)*".concat(n,"$")).test(e)}))}function Zn(e,t,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&setTimeout((function(){r=0}),le),(r+=1)<=t||i)return i=!1,!1;if(r===t+1){i=!0;try{n({message:"Reached max number of ".concat(e,"s by minute: ").concat(t),source:zt.AGENT,startClocks:st()})}finally{i=!1}}return!0}}}var Gn,Yn=new WeakMap;function Hn(){return Un||(Un=function(){var e=new Gt((function(){var t=Rt(XMLHttpRequest.prototype,"open",{before:Wn}).stop,n=Rt(XMLHttpRequest.prototype,"send",{before:function(){Vn.call(this,e)}}).stop,r=Rt(XMLHttpRequest.prototype,"abort",{before:Qn}).stop;return function(){t(),n(),r()}}));return e}()),Un}function Wn(e,t){Yn.set(this,{state:"open",method:e,url:pt(t.toString())})}function Vn(e){var t=this,n=Yn.get(this);if(n){var r=n;r.state="start",r.startTime=at(),r.startClocks=st(),r.isAborted=!1,r.xhr=this;var i=!1,o=Rt(this,"onreadystatechange",{before:function(){this.readyState===XMLHttpRequest.DONE&&a()}}).stop,a=oe((function(){if(t.removeEventListener("loadend",a),o(),!i){i=!0;var s=n;s.state="complete",s.duration=lt(r.startClocks.timeStamp,ot()),s.status=t.status,e.notify(ge(s))}}));this.addEventListener("loadend",a),e.notify(r)}}function Qn(){var e=Yn.get(this);e&&(e.isAborted=!0)}function Kn(){return Gn||(Gn=function(){var e=new Gt((function(){if(window.fetch)return kt(window,"fetch",(function(t){return function(n,r){var i,o=ae(Xn,null,[e,n,r]);return o?(i=t.call(this,o.input,o.init),ae($n,null,[e,i,o])):i=t.call(this,n,r),i}})).stop}));return e}()),Gn}function Xn(e,t,n){var r=n&&n.method||"object"===typeof t&&t.method||"GET",i=pt("object"===typeof t&&t.url||t),o={state:"start",init:n,input:t,method:r,startClocks:st(),url:i};return e.notify(o),o}function $n(e,t,n){var r=function(t){var r=n;r.state="complete",r.duration=lt(r.startClocks.timeStamp,ot()),"stack"in t||t instanceof Error?(r.status=0,r.isAborted=t instanceof DOMException&&t.code===DOMException.ABORT_ERR,r.error=t,e.notify(r)):"status"in t&&(r.response=t,r.responseType=t.type,r.status=t.status,r.isAborted=!1,e.notify(r))};t.then(oe(r),oe(r))}var Jn={};function er(e){var t=e.map((function(e){return Jn[e]||(Jn[e]=function(e){var t=new Gt((function(){var n=console[e];return console[e]=function(){for(var r=[],i=0;i500&&this.buffer.splice(0,1)},e.prototype.drain=function(){this.buffer.forEach((function(e){return e()})),this.buffer.length=0},e}();function nr(e,t){for(var n=e,r=0,i=t.split(".");re[n])return!1;return!0}function hr(e){var t=e.duration,n=e.startTime,r=e.responseEnd;return rt(0===t&&n=0;t-=1){var n,r=e.body.childNodes[t];if(n=Mr(r))return n;if(!Sr(r))break}}(e);if(!t)return;return Ir(Oe(t,"trace-id"),Oe(t,"trace-time"))}(e);if(t&&!(t.traceTime<=it()-wr))return t.traceId}function Ir(e,t){var n=t&&Number(t);if(e&&n)return{traceId:e,traceTime:n}}function Mr(e){if(e&&function(e){return"#comment"===e.nodeName}(e)){var t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function Sr(e){return"#text"===e.nodeName}function Cr(){return void 0!==window.performance&&"getEntries"in performance}function Nr(e){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(e)}function Tr(e,t){var n;if(n=function(n){Dr(e,t,[n])},Pe("interactive",(function(){var e,t={entryType:"resource",initiatorType:cr,traceId:xr(document)};if(Nr("navigation")&&performance.getEntriesByType("navigation").length>0)e=he(performance.getEntriesByType("navigation")[0].toJSON(),t);else{var r=Lr();e=he(r,{decodedBodySize:0,duration:r.responseEnd,name:window.location.href,startTime:0},t)}n(e)})),Cr()){var r=performance.getEntries();setTimeout(oe((function(){return Dr(e,t,r)})))}if(window.PerformanceObserver){var i=oe((function(n){return Dr(e,t,n.getEntries())})),o=["resource","navigation","longtask","paint"],a=["largest-contentful-paint","first-input","layout-shift"];try{a.forEach((function(e){new PerformanceObserver(i).observe({type:e,buffered:!0})}))}catch(s){o.push.apply(o,a)}new PerformanceObserver(i).observe({entryTypes:o}),Cr()&&"addEventListener"in performance&&performance.addEventListener("resourcetimingbufferfull",(function(){performance.clearResourceTimings()}))}Nr("navigation")||function(e){function t(){e(he(Lr(),{entryType:"navigation"}))}Pe("complete",(function(){setTimeout(oe(t))}))}((function(n){Dr(e,t,[n])})),Nr("first-input")||function(e){var t=it(),n=!1,r=je(window,["click","mousedown","keydown","touchstart","pointerdown"],(function(e){if(e.cancelable){var t={entryType:"first-input",processingStart:at(),startTime:e.timeStamp};"pointerdown"===e.type?i(t):o(t)}}),{passive:!0,capture:!0}).stop;function i(e){je(window,["pointerup","pointercancel"],(function(t){"pointerup"===t.type&&o(e)}),{once:!0})}function o(i){if(!n){n=!0,r();var o=i.processingStart-i.startTime;o>=0&&oqr)){var e=Fr[Fr.length-1],t=at();void 0!==e&&void 0===e.end||Fr.push({start:t})}}function Yr(){if(0!==Fr.length){var e=Fr[Fr.length-1],t=at();void 0===e.end&&(e.end=t)}}function Hr(e){for(var t=Fr.length-1;t>=0;t--){var n=Fr[t];if(void 0!==n.end&&e>n.end)break;if(e>n.start&&(void 0===n.end||e=i;o--){var a=Fr[o];if(void 0!==a.end&&e>a.end)break;if(!(na.start?e:a.start,u=lt(e,s),l=lt(s,void 0===a.end||n0})}}));return r}(e,t,n);return function(e,t,n){var r,i=!1,o=setTimeout(oe((function(){return l({hadActivity:!1})})),ii),a=n&&setTimeout(oe((function(){return l({hadActivity:!0,end:ot()})})),n),s=e.subscribe((function(e){var t=e.isBusy;clearTimeout(o),clearTimeout(r);var n=ot();t||(r=setTimeout(oe((function(){return l({hadActivity:!0,end:n})})),oi))})),u=function(){i=!0,clearTimeout(o),clearTimeout(r),clearTimeout(a),s.unsubscribe()};function l(e){i||(u(),t(e))}return{stop:u}}(o,r,i)}function si(e,t){return Fe(e.excludedActivityUrls,t)}var ui=ue,li=100;function ci(e,t){var n,r=[],i=0;function o(e){e.stopObservable.subscribe(a),r.push(e),clearTimeout(n),n=setTimeout(oe(s),ui)}function a(){1===i&&r.every((function(e){return e.isStopped()}))&&(i=2,t(r))}function s(){clearTimeout(n),0===i&&(i=1,a())}return o(e),{tryAppend:function(e){return 0===i&&(r.length>0&&!function(e,t){return e.target===t.target&&(n=e,r=t,Math.sqrt(Math.pow(n.clientX-r.clientX,2)+Math.pow(n.clientY-r.clientY,2))<=li)&&e.timeStamp-t.timeStamp<=ui;var n,r}(r[r.length-1].event,e.event)?(s(),!1):(o(e),!0))},stop:function(){s()}}}var di="data-dd-action-name";function pi(e,t){var n;if(function(){void 0===hi&&(hi="closest"in HTMLElement.prototype);return hi}())n=e.closest("[".concat(t,"]"));else for(var r=e;r;){if(r.hasAttribute(t)){n=r;break}r=r.parentElement}if(n)return yi(Ai(n.getAttribute(t).trim()))}var fi,hi,gi=[function(e,t){if(function(){void 0===fi&&(fi="labels"in HTMLInputElement.prototype);return fi}()){if("labels"in e&&e.labels&&e.labels.length>0)return bi(e.labels[0],t)}else if(e.id){var n=e.ownerDocument&&e.ownerDocument.querySelector('label[for="'.concat(e.id.replace('"','\\"'),'"]'));return n&&bi(n,t)}},function(e){if("INPUT"===e.nodeName){var t=e,n=t.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return t.value}},function(e,t){if("BUTTON"===e.nodeName||"LABEL"===e.nodeName||"button"===e.getAttribute("role"))return bi(e,t)},function(e){return e.getAttribute("aria-label")},function(e,t){var n=e.getAttribute("aria-labelledby");if(n)return n.split(/\s+/).map((function(t){return function(e,t){return e.ownerDocument?e.ownerDocument.getElementById(t):null}(e,t)})).filter((function(e){return Boolean(e)})).map((function(e){return bi(e,t)})).join(" ")},function(e){return e.getAttribute("alt")},function(e){return e.getAttribute("name")},function(e){return e.getAttribute("title")},function(e){return e.getAttribute("placeholder")},function(e,t){if("options"in e&&e.options.length>0)return bi(e.options[0],t)}],mi=[function(e,t){return bi(e,t)}],vi=10;function _i(e,t,n){for(var r=e,i=0;i<=vi&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var o=0,a=n;o100?"".concat(ke(e,100)," [...]"):e}function bi(e,t){if(!e.isContentEditable){if("innerText"in e){var n=e.innerText,r=function(t){for(var r=e.querySelectorAll(t),i=0;i0&&(n=n.replace(a,""))}}};return Boolean(document.documentMode)&&r("script, style"),r("[".concat(di,"]")),t&&r("[".concat(t,"]")),n}return e.textContent}}function Ei(e){for(var t=[],n=e;n&&"HTML"!==n.nodeName;){var r=wi(n);if(r){t.unshift(r);break}t.unshift(xi(n)||Mi(n)),n=n.parentElement}return t.join(">")}function wi(e){if(e.id){var t=Ze(e.id);return 1===e.ownerDocument.body.querySelectorAll("#".concat(t)).length?"#".concat(t):void 0}}function xi(e){for(var t=we(e.classList).sort(),n=!0,r=0;r0},get hasPageActivity(){return void 0!==u},getUserActivity:n,addFrustration:function(e){p.push(e)},isStopped:function(){return 1===d||2===d},clone:function(){return Pi(e,t,n,r)},validate:function(){if(h(),1===d){var t=c.eventCounts,n=t.resourceCount,s=t.errorCount,l=t.longTaskCount,f=he({type:"click",duration:u&<(r.startClocks.timeStamp,u),id:a,frustrationTypes:p,target:i,position:o,counts:{resourceCount:n,errorCount:s,longTaskCount:l}},r);e.notify(1,f),d=2}},discard:function(){h(),d=2}}}function Ui(e,t){var n=zi(e)?{action:{id:e.id,target:e.target,position:e.position,loading_time:rt(e.duration),frustration:{type:e.frustrationTypes},error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}}}:void 0,r=zi(e)?void 0:e.context,i=qe({action:{id:me(),target:{name:e.name},type:e.type},date:e.startClocks.timeStamp,type:"action"},n),o=t.isInForegroundAt(e.startClocks.relative);return void 0!==o&&(i.view={in_foreground:o}),{customerContext:r,rawRumEvent:i,startTime:e.startClocks.relative,domainContext:zi(e)?{event:e.event}:{}}}function zi(e){return"custom"!==e.type}function Bi(e,t){var n=new Gt;return function(e){var t=er([J.error]).subscribe((function(t){return e.notify({startClocks:st(),message:t.message,stack:t.stack,source:zt.CONSOLE,handling:"handled",handlingStack:t.handlingStack})}))}(n),function(e){Ut((function(t,n){var r=Bt(t,n,"Uncaught"),i=r.stack,o=r.message,a=r.type;e.notify({message:o,stack:i,type:a,source:zt.SOURCE,startClocks:st(),originalError:n,handling:"unhandled"})}))}(n),function(e){var t=Wt([Ht.cspViolation,Ht.intervention]).subscribe((function(t){return e.notify({startClocks:st(),message:t.message,stack:t.stack,type:t.subtype,source:zt.REPORT,handling:"unhandled"})}))}(n),n.subscribe((function(t){return e.notify(12,{error:t})})),function(e,t){return e.subscribe(12,(function(n){var r=n.error,i=n.customerContext,o=n.savedCommonContext;e.notify(10,he({customerContext:i,savedCommonContext:o},function(e,t){var n={date:e.startClocks.timeStamp,error:{id:me(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,type:e.type,handling:e.handling,source_type:"browser"},type:"error"},r=t.isInForegroundAt(e.startClocks.relative);void 0!==r&&(n.view={in_foreground:r});return{rawRumEvent:n,startTime:e.startClocks.relative,domainContext:{error:e.originalError}}}(r,t)))})),{addError:function(t,n){var r=t.error,i=t.handlingStack,o=t.startClocks,a=t.context,s=function(e,t,n){var r=e instanceof Error?St(e):void 0;return he({startClocks:n,source:zt.CUSTOM,originalError:e,handling:"handled"},Bt(r,e,"Provided",t))}(r,i,o);e.notify(12,{customerContext:a,savedCommonContext:n,error:s})}}}(e,t)}function qi(e){if(performance&&"getEntriesByName"in performance){var t=performance.getEntriesByName(e.url,"resource");if(t.length&&"toJSON"in t[0]){var n,r=t.map((function(e){return e.toJSON()})).filter(mr).filter((function(t){return function(e,t,n){var r=1;return e.startTime>=t-r&&Fi(e)<=n+r}(t,e.startClocks.relative,Fi({startTime:e.startClocks.relative,duration:e.duration}))}));return 1===r.length?r[0]:2===r.length&&Fi((n=r)[0])<=n[1].startTime?r[1]:void 0}}}function Fi(e){return e.startTime+e.duration}function Zi(e){e.subscribe(6,(function(t){e.notify(10,function(e){var t="xhr"===e.type?"xhr":"fetch",n=qi(e),r=n?tt(n.startTime):e.startClocks,i=n?Yi(n):void 0,o=function(e){var t=e.traceSampled&&e.traceId&&e.spanId;if(!t)return;return{_dd:{span_id:e.spanId.toDecimalString(),trace_id:e.traceId.toDecimalString()}}}(e),a=qe({date:r.timeStamp,resource:{id:me(),type:t,duration:rt(e.duration),method:e.method,status_code:e.status,url:e.url},type:"resource"},o,i);return{startTime:r.relative,rawRumEvent:a,domainContext:{performanceEntry:n&&Hi(n),xhr:e.xhr,response:e.response,requestInput:e.input,requestInit:e.init,error:e.error}}}(t))})),e.subscribe(0,(function(t){for(var n=0,r=t;n=0;n-=1){var r=e[n];if(t(r,n,e))return r}}(e,(function(e){return"largest-contentful-paint"===e.entryType&&e.startTime=0?i:0,firstInputTime:r.startTime})}})).unsubscribe;return{stop:r}}(e,(function(e){r({firstInputDelay:e.firstInputDelay,firstInputTime:e.firstInputTime})})).stop;return{stop:function(){i(),o(),a(),s()}}}function Ki(e,t,n,r,i,o){var a,s={eventCounts:{errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0}},u=ri(e,(function(e){s.eventCounts=e,r()})).stop,l=function(e,t,n,r,i,o){var a="initial_load"===r,s=!0,u=[];function l(){!s&&!a&&u.length>0&&o(Math.max.apply(Math,u))}var c=ai(e,t,n,(function(e){s&&(s=!1,e.hadActivity&&u.push(lt(i.timeStamp,e.end)),l())})).stop;return{stop:c,setLoadEvent:function(e){a&&(a=!1,u.push(e),l())}}}(e,t,n,i,o,(function(e){s.loadingTime=e,r()})),c=l.stop,d=l.setLoadEvent;return Nr("layout-shift")?(s.cumulativeLayoutShift=0,a=function(e,t){var n=0,r=function(){var e,t,n=0;return{update:function(r){void 0===e||r.startTime-t>=ue||r.startTime-e>=5*ue?(e=t=r.startTime,n=r.value):(n+=r.value,t=r.startTime)},value:function(){return n}}}(),i=e.subscribe(0,(function(e){for(var i=0,o=e;in&&(n=r.value(),t(_e(n,4))))}})).unsubscribe;return{stop:i}}(e,(function(e){s.cumulativeLayoutShift=e,r()})).stop):a=Ae,{stop:function(){u(),c(),a()},setLoadEvent:d,viewMetrics:s}}var Xi=3e3,$i=5*le;function Ji(e,t,n,r,i,o,a){var s,u=function(i){var o=eo(t,n,r,e,"initial_load",ut(),i),a=Qi(t,(function(e){o.updateTimings(e),o.scheduleUpdate()})).stop;return{initialView:o,stop:a}}(a),l=u.stop,c=u.initialView,d=function(){t.subscribe(8,(function(){c.end(),c=p(void 0,{name:c.name,service:c.service,version:c.version})})),t.subscribe(9,(function(){c.end(),c.triggerUpdate()}));var e=window.setInterval(oe((function(){c.triggerUpdate()})),$i);return{stop:function(){clearInterval(e)}}}().stop;function p(i,o){return eo(t,n,r,e,"route_change",i,o)}return o&&(s=function(e){return e.subscribe((function(e){var t,n,r=e.oldLocation,i=e.newLocation;if(n=i,(t=r).pathname!==n.pathname||!function(e){var t=e.substr(1);return!!document.getElementById(t)}(n.hash)&&to(n.hash)!==to(t.hash))return c.end(),c.triggerUpdate(),void(c=p())}))}(i)),{addTiming:function(e,t){void 0===t&&(t=ot()),c.addTiming(e,t),c.scheduleUpdate()},startView:function(e,t){c.end(t),c.triggerUpdate(),c=p(t,e)},stop:function(){null===s||void 0===s||s.unsubscribe(),l(),d(),c.end()}}}function eo(e,t,n,r,i,o,a){void 0===o&&(o=st());var s,u,l,c,d=me(),p={},f={},h=0,g=ge(r);a&&(u=a.name,l=a.service,c=a.version),e.notify(2,{id:d,name:u,startClocks:o,service:l,version:c});var m=fe(oe(w),Xi,{leading:!1}),v=m.throttled,_=m.cancel,A=Ki(e,t,n,v,i,o),y=A.setLoadEvent,b=A.stop,E=A.viewMetrics;function w(){h+=1;var t=void 0===s?ot():s.timeStamp;e.notify(3,he({customTimings:f,documentVersion:h,id:d,name:u,service:l,version:c,loadingType:i,location:g,startClocks:o,timings:p,duration:lt(o.timeStamp,t),isActive:void 0===s},E))}return w(),{name:u,service:l,version:c,scheduleUpdate:v,end:function(t){void 0===t&&(t=st()),s=t,e.notify(4,{endClocks:s}),b()},triggerUpdate:function(){_(),w()},updateTimings:function(e){p=e,void 0!==e.loadEvent&&y(e.loadEvent)},addTiming:function(e,t){var n=function(e){return ePo&&"data:"===r.slice(0,5)?"data:truncated":r}var ta=1;var na=/[^a-z1-6-_]/;function ra(e){var t=e.toLowerCase().trim();return na.test(t)?"div":t}function ia(e){try{var t=e.rules||e.cssRules;return t?Array.from(t).map(oa).join(""):null}catch(n){return null}}function oa(e){return function(e){return"styleSheet"in e}(e)?ia(e.styleSheet)||"":e.cssText}var aa=100;function sa(e){var t=Ae,n=[];function r(){t(),e(n),n=[]}return{addMutations:function(e){0===n.length&&(t=function(e,t){if(window.requestIdleCallback){var n=window.requestIdleCallback(oe(e),t);return function(){return window.cancelIdleCallback(n)}}var r=window.requestAnimationFrame(oe(e));return function(){return window.cancelAnimationFrame(r)}}(r,{timeout:aa})),n.push.apply(n,e)},flush:r,stop:function(){t()}}}function ua(e,t,n){var r=lr();if(!r)return{stop:Ae};var i=sa((function(e){!function(e,t,n){var r=e.filter((function(e){return document.contains(e.target)&&function(e){for(var t=e;t;){if(!Ho(t))return!1;t=t.parentNode}return!0}(e.target)&&Uo(e.target,n)!==xo.HIDDEN})),i=function(e,t){for(var n=new Set,r=new Map,i=function(e){Ko(e.addedNodes,(function(e){n.add(e)})),Ko(e.removedNodes,(function(t){n.has(t)||r.set(t,e.target),n.delete(t)}))},o=0,a=e;o25||Math.abs(e.pageLeft-e.offsetLeft-window.scrollX)>25}()?(r.visualViewportX=Math.round(e-n.offsetLeft),r.visualViewportY=Math.round(t-n.offsetTop)):(r.layoutViewportX=Math.round(e+n.offsetLeft),r.layoutViewportY=Math.round(t+n.offsetTop)),r):r},pa=function(){var e=window.visualViewport;return{scale:e.scale,offsetLeft:e.offsetLeft,offsetTop:e.offsetTop,pageLeft:e.pageLeft,pageTop:e.pageTop,height:e.height,width:e.width}};function fa(){var e=window.visualViewport;return e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0}function ha(){var e=window.visualViewport;return e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0}var ga=50,ma=100,va=200;function _a(e){var t,n,r,i,o=(t=e.mutationController,n=e.mutationCb,r=e.defaultPrivacyLevel,ua(t,n,r).stop),a=function(e){var t=fe(oe((function(t){var n=t.target;if(Ho(n)){var r=Qo(t)?t.changedTouches[0]:t,i=r.clientX,o=r.clientY,a={id:Wo(n),timeOffset:0,x:i,y:o};if(window.visualViewport){var s=da(i,o),u=s.visualViewportX,l=s.visualViewportY;a.x=u,a.y=l}e([a],Qo(t)?po.TouchMove:po.MouseMove)}})),ga,{trailing:!1}).throttled;return je(document,["mousemove","touchmove"],t,{capture:!0,passive:!0}).stop}(e.mousemoveCb),s=function(e,t){var n=function(n){var r=n.target;if(Uo(r,t)!==xo.HIDDEN&&Ho(r)){var i=Qo(n)?n.changedTouches[0]:n,o=i.clientX,a=i.clientY,s={id:Wo(r),type:Aa[n.type],x:o,y:a};if(window.visualViewport){var u=da(o,a),l=u.visualViewportX,c=u.visualViewportY;s.x=l,s.y=c}e(s)}};return je(document,Object.keys(Aa),n,{capture:!0,passive:!0}).stop}(e.mouseInteractionCb,e.defaultPrivacyLevel),u=function(e,t){var n=fe(oe((function(n){var r=n.target;if(r&&Uo(r,t)!==xo.HIDDEN&&Ho(r)){var i=Wo(r);r===document?e({id:i,x:fa(),y:ha()}):e({id:i,x:r.scrollLeft,y:r.scrollTop})}})),ma).throttled;return Re(document,"scroll",n,{capture:!0,passive:!0}).stop}(e.scrollCb,e.defaultPrivacyLevel),l=function(e){return kr().subscribe(e).unsubscribe}(e.viewportResizeCb),c=function(e,t){var n=new WeakMap;function r(e){var n=Uo(e,t);if(n!==xo.HIDDEN){var r,o=e.type;if("radio"===o||"checkbox"===o){if(qo(e,n))return;r={isChecked:e.checked}}else{var a=Vo(e,n);if(void 0===a)return;r={text:a}}i(e,r);var s=e.name;"radio"===o&&s&&e.checked&&Ko(document.querySelectorAll('input[type="radio"][name="'.concat(s,'"]')),(function(t){t!==e&&i(t,{isChecked:!1})}))}}function i(t,r){if(Ho(t)){var i=n.get(t);i&&i.text===r.text&&i.isChecked===r.isChecked||(n.set(t,r),e(he({id:Wo(t)},r)))}}var o=je(document,["input","change"],(function(e){(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement)&&r(e.target)}),{capture:!0,passive:!0}).stop,a=[jt(HTMLInputElement.prototype,"value",r),jt(HTMLInputElement.prototype,"checked",r),jt(HTMLSelectElement.prototype,"value",r),jt(HTMLTextAreaElement.prototype,"value",r),jt(HTMLSelectElement.prototype,"selectedIndex",r)];return function(){a.forEach((function(e){return e.stop()})),o()}}(e.inputCb,e.defaultPrivacyLevel),d=function(e,t){var n=function(n){var r=n.target;r&&Uo(r,t)!==xo.HIDDEN&&Ho(r)&&e({id:Wo(r),type:"play"===n.type?Eo.Play:Eo.Pause})};return je(document,["play","pause"],n,{capture:!0,passive:!0}).stop}(e.mediaInteractionCb,e.defaultPrivacyLevel),p=function(e){var t=Rt(CSSStyleSheet.prototype,"insertRule",{before:function(t,n){Ho(this.ownerNode)&&e({id:Wo(this.ownerNode),adds:[{rule:t,index:n}]})}}).stop,n=Rt(CSSStyleSheet.prototype,"deleteRule",{before:function(t){Ho(this.ownerNode)&&e({id:Wo(this.ownerNode),removes:[{index:t}]})}}).stop;return function(){t(),n()}}(e.styleSheetRuleCb),f=(i=e.focusCb,je(window,["focus","blur"],(function(){i({has_focus:document.hasFocus()})})).stop),h=function(e){if(!window.visualViewport)return Ae;var t=fe(oe((function(){e(pa())})),va,{trailing:!1}),n=t.throttled,r=t.cancel,i=je(window.visualViewport,["resize","scroll"],n,{capture:!0,passive:!0}).stop;return function(){i(),r()}}(e.visualViewportResizeCb);return function(){o(),a(),s(),u(),l(),c(),d(),p(),f(),h()}}var Aa=((ca={}).mouseup=fo,ca.mousedown=ho,ca.click=go,ca.contextmenu=mo,ca.dblclick=vo,ca.focus=_o,ca.blur=Ao,ca.touchstart=yo,ca.touchend=bo,ca);function ya(e,t){return{data:he({source:e},t),type:co.IncrementalSnapshot,timestamp:ot()}}var ba,Ea=10;function wa(e){return Ma(e).segments_count}function xa(e){Ma(e).records_count+=1}function Ia(e){return null===ba||void 0===ba?void 0:ba.get(e)}function Ma(e){var t;return ba||(ba=new Map),ba.has(e)?t=ba.get(e):(t={records_count:0,segments_count:0,segments_total_raw_size:0},ba.set(e,t),ba.size>Ea&&function(){if(!ba)return;if(ba.keys)ba.delete(ba.keys().next().value);else{var e=!0;ba.forEach((function(t,n){e&&(ba.delete(n),e=!1)}))}}()),t}var Sa,Ca=0,Na=function(){function e(e,t,n,r,i,o){var a=this;this.worker=e,this.isFlushed=!1,this.flushReason=void 0,this.id=Ca++;var s=t.view.id;this.metadata=he({start:r.timestamp,end:r.timestamp,creation_reason:n,records_count:1,has_full_snapshot:r.type===co.FullSnapshot,index_in_view:wa(s)},t),function(e){Ma(e).segments_count+=1}(s),xa(s);var u=oe((function(t){var n=t.data;"errored"!==n.type&&"initialized"!==n.type&&(n.id===a.id?(!function(e,t){Ma(e).segments_total_raw_size+=t}(s,n.additionalBytesCount),"flushed"===n.type?(o(n.result,n.rawBytesCount),e.removeEventListener("message",u)):i(n.compressedBytesCount)):n.id>a.id&&(e.removeEventListener("message",u),en("Segment did not receive a 'flush' response before being replaced.")))}));e.addEventListener("message",u),this.worker.postMessage({data:'{"records":['.concat(JSON.stringify(r)),id:this.id,action:"write"})}return e.prototype.addRecord=function(e){var t;this.metadata.end=e.timestamp,this.metadata.records_count+=1,xa(this.metadata.view.id),(t=this.metadata).has_full_snapshot||(t.has_full_snapshot=e.type===co.FullSnapshot),this.worker.postMessage({data:",".concat(JSON.stringify(e)),id:this.id,action:"write"})},e.prototype.flush=function(e){this.worker.postMessage({data:"],".concat(JSON.stringify(this.metadata).slice(1),"\n"),id:this.id,action:"flush"}),this.flushReason=e,this.isFlushed=!0},e}(),Ta=30*ue,La=6e4;function Da(e,t,n,r,i,o){return function(e,t,n,r,i){void 0===i&&(i=window);var o={status:0,nextSegmentCreationReason:"init"},a=e.subscribe(2,(function(){l("view_change")})).unsubscribe,s=e.subscribe(9,(function(){l("before_unload")})).unsubscribe,u=Re(i,"visibilitychange",(function(){"hidden"===document.visibilityState&&l("visibility_hidden")}),{capture:!0}).stop;function l(e){1===o.status&&(o.segment.flush(e),clearTimeout(o.expirationTimeoutId)),o=e?{status:0,nextSegmentCreationReason:e}:{status:2}}function c(e,i){var a=t();if(a){var s=new Na(r,a,e,i,(function(e){!s.isFlushed&&e>La&&l("segment_bytes_limit")}),(function(e,t){n(e,s.metadata,t,s.flushReason)}));o={status:1,segment:s,expirationTimeoutId:setTimeout(oe((function(){l("segment_duration_limit")})),Ta)}}}return{addRecord:function(e){switch(o.status){case 0:c(o.nextSegmentCreationReason,e);break;case 1:o.segment.addRecord(e)}},stop:function(){l(),a(),s(),u()}}}(e,(function(){return function(e,t,n){var r=t.findTrackedSession(),i=n.findView();if(!r||!i)return;return{application:{id:e},session:{id:r.id},view:{id:i.id}}}(t,n,r)}),i,o)}function Oa(){return Sa||(Sa=URL.createObjectURL(new Blob(["(".concat(ka,")(self)")]))),new Worker(Sa)}function ka(){function e(e){return function(){try{return e.apply(this,arguments)}catch(t){try{self.postMessage({type:"errored",error:t})}catch(U){self.postMessage({type:"errored",error:"".concat(t)})}}}}e((function(){var t=function(){var e=4,t=0,n=1,r=2;function i(e){for(var t=e.length;--t>=0;)e[t]=0}var o=0,a=1,s=2,u=3,l=258,c=29,d=256,p=d+1+c,f=30,h=19,g=2*p+1,m=15,v=16,_=7,A=256,y=16,b=17,E=18,w=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),x=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),I=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),M=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),S=512,C=new Array(2*(p+2));i(C);var N=new Array(2*f);i(N);var T=new Array(S);i(T);var L=new Array(l-u+1);i(L);var D=new Array(c);i(D);var O,k,R,j=new Array(f);function P(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function U(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}i(j);var z=function(e){return e<256?T[e]:T[256+(e>>>7)]},B=function(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},q=function(e,t,n){e.bi_valid>v-n?(e.bi_buf|=t<>v-e.bi_valid,e.bi_valid+=n-v):(e.bi_buf|=t<>>=1,n<<=1}while(--t>0);return n>>>1},G=function(e){16===e.bi_valid?(B(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)},Y=function(e,t){var n,r,i,o,a,s,u=t.dyn_tree,l=t.max_code,c=t.stat_desc.static_tree,d=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,h=t.stat_desc.max_length,v=0;for(o=0;o<=m;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;nh&&(o=h,v++),u[2*r+1]=o,r>l||(e.bl_count[o]++,a=0,r>=f&&(a=p[r-f]),s=u[2*r],e.opt_len+=s*(o+a),d&&(e.static_len+=s*(c[2*r+1]+a)));if(0!==v){do{for(o=h-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[h]--,v-=2}while(v>0);for(o=h;0!==o;o--)for(r=e.bl_count[o];0!==r;)(i=e.heap[--n])>l||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}},H=function(e,t,n){var r,i,o=new Array(m+1),a=0;for(r=1;r<=m;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=Z(o[s]++,s))}},W=function(){var e,t,n,r,i,o=new Array(m+1);for(n=0,r=0;r>=7;r8?B(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},K=function(e,t,n,r){Q(e),r&&(B(e,n),B(e,~n)),e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},X=function(e,t,n,r){var i=2*t,o=2*n;return e[i]>1;n>=1;n--)$(e,o,n);i=u;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],$(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,$(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Y(e,t),H(o,l,e.bl_count)},te=function(e,t,n){var r,i,o=-1,a=t[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s=3&&0===e.bl_tree[2*M[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t},ie=function(e,t,n,r){var i;for(q(e,t-257,5),q(e,n-1,5),q(e,r-4,4),i=0;i>>=1)if(1&i&&0!==e.dyn_ltree[2*r])return t;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return n;for(r=32;r0?(t.strm.data_type===r&&(t.strm.data_type=oe(t)),ee(t,t.l_desc),ee(t,t.d_desc),c=re(t),u=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=u&&(u=l)):u=l=i+5,i+4<=u&&-1!==n?se(t,n,i,o):t.strategy===e||l===u?(q(t,(a<<1)+(o?1:0),3),J(t,C,N)):(q(t,(s<<1)+(o?1:0),3),ie(t,t.l_desc.max_code+1,t.d_desc.max_code+1,c+1),J(t,t.dyn_ltree,t.dyn_dtree)),V(t),o&&Q(t)},le={_tr_init:function(e){ae||(W(),ae=!0),e.l_desc=new U(e.dyn_ltree,O),e.d_desc=new U(e.dyn_dtree,k),e.bl_desc=new U(e.bl_tree,R),e.bi_buf=0,e.bi_valid=0,V(e)},_tr_stored_block:se,_tr_flush_block:ue,_tr_tally:function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(L[n]+d+1)]++,e.dyn_dtree[2*z(t)]++),e.last_lit===e.lit_bufsize-1},_tr_align:function(e){q(e,a<<1,3),F(e,A,C),G(e)}},ce=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+t[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0},de=new Uint32Array(function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}()),pe=function(e,t,n,r){var i=de,o=r+n;e^=-1;for(var a=r;a>>8^i[255&(e^t[a])];return-1^e},fe={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},he={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},ge=le._tr_init,me=le._tr_stored_block,ve=le._tr_flush_block,_e=le._tr_tally,Ae=le._tr_align,ye=he.Z_NO_FLUSH,be=he.Z_PARTIAL_FLUSH,Ee=he.Z_FULL_FLUSH,we=he.Z_FINISH,xe=he.Z_BLOCK,Ie=he.Z_OK,Me=he.Z_STREAM_END,Se=he.Z_STREAM_ERROR,Ce=he.Z_DATA_ERROR,Ne=he.Z_BUF_ERROR,Te=he.Z_DEFAULT_COMPRESSION,Le=he.Z_FILTERED,De=he.Z_HUFFMAN_ONLY,Oe=he.Z_RLE,ke=he.Z_FIXED,Re=he.Z_DEFAULT_STRATEGY,je=he.Z_UNKNOWN,Pe=he.Z_DEFLATED,Ue=9,ze=15,Be=8,qe=286,Fe=30,Ze=19,Ge=2*qe+1,Ye=15,He=3,We=258,Ve=We+He+1,Qe=32,Ke=42,Xe=69,$e=73,Je=91,et=103,tt=113,nt=666,rt=1,it=2,ot=3,at=4,st=3,ut=function(e,t){return e.msg=fe[t],t},lt=function(e){return(e<<1)-(e>4?9:0)},ct=function(e){for(var t=e.length;--t>=0;)e[t]=0},dt=function(e,t,n){return(t<e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},ft=function(e,t){ve(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,pt(e.strm)},ht=function(e,t){e.pending_buf[e.pending++]=t},gt=function(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},mt=function(e,t,n,r){var i=e.avail_in;return i>r&&(i=r),0===i?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),1===e.state.wrap?e.adler=ce(e.adler,t,i,n):2===e.state.wrap&&(e.adler=pe(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},vt=function(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-Ve?e.strstart-(e.w_size-Ve):0,l=e.window,c=e.w_mask,d=e.prev,p=e.strstart+We,f=l[o+a-1],h=l[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(n=t)+a]===h&&l[n+a-1]===f&&l[n]===l[o]&&l[++n]===l[o+1]){o+=2,n++;do{}while(l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&oa){if(e.match_start=t,a=r,r>=s)break;f=l[o+a-1],h=l[o+a]}}}while((t=d[t&c])>u&&0!==--i);return a<=e.lookahead?a:e.lookahead},_t=function(e){var t,n,r,i,o,a=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=a+(a-Ve)){e.window.set(e.window.subarray(a,a+a),0),e.match_start-=a,e.strstart-=a,e.block_start-=a,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=a?r-a:0}while(--n);t=n=a;do{r=e.prev[--t],e.prev[t]=r>=a?r-a:0}while(--n);i+=a}if(0===e.strm.avail_in)break;if(n=mt(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=n,e.lookahead+e.insert>=He)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=dt(e,e.ins_h,e.window[o+1]);e.insert&&(e.ins_h=dt(e,e.ins_h,e.window[o+He-1]),e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert=He&&(e.ins_h=dt(e,e.ins_h,e.window[e.strstart+He-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-Ve&&(e.match_length=vt(e,n)),e.match_length>=He)if(r=_e(e,e.strstart-e.match_start,e.match_length-He),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=He){e.match_length--;do{e.strstart++,e.ins_h=dt(e,e.ins_h,e.window[e.strstart+He-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=dt(e,e.ins_h,e.window[e.strstart+1]);else r=_e(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(ft(e,!1),0===e.strm.avail_out))return rt}return e.insert=e.strstart=He&&(e.ins_h=dt(e,e.ins_h,e.window[e.strstart+He-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=He-1,0!==n&&e.prev_length4096)&&(e.match_length=He-1)),e.prev_length>=He&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-He,r=_e(e,e.strstart-1-e.prev_match,e.prev_length-He),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=dt(e,e.ins_h,e.window[e.strstart+He-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=He-1,e.strstart++,r&&(ft(e,!1),0===e.strm.avail_out))return rt}else if(e.match_available){if((r=_e(e,0,e.window[e.strstart-1]))&&ft(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return rt}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=_e(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart=He&&e.strstart>0&&(r=a[i=e.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=e.strstart+We;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=He?(n=_e(e,1,e.match_length-He),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=_e(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(ft(e,!1),0===e.strm.avail_out))return rt}return e.insert=0,t===we?(ft(e,!0),0===e.strm.avail_out?ot:at):e.last_lit&&(ft(e,!1),0===e.strm.avail_out)?rt:it},Et=function(e,t){for(var n;;){if(0===e.lookahead&&(_t(e),0===e.lookahead)){if(t===ye)return rt;break}if(e.match_length=0,n=_e(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(ft(e,!1),0===e.strm.avail_out))return rt}return e.insert=0,t===we?(ft(e,!0),0===e.strm.avail_out?ot:at):e.last_lit&&(ft(e,!1),0===e.strm.avail_out)?rt:it};function wt(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var xt=[new wt(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(_t(e),0===e.lookahead&&t===ye)return rt;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,ft(e,!1),0===e.strm.avail_out))return rt;if(e.strstart-e.block_start>=e.w_size-Ve&&(ft(e,!1),0===e.strm.avail_out))return rt}return e.insert=0,t===we?(ft(e,!0),0===e.strm.avail_out?ot:at):(e.strstart>e.block_start&&(ft(e,!1),e.strm.avail_out),rt)})),new wt(4,4,8,4,At),new wt(4,5,16,8,At),new wt(4,6,32,32,At),new wt(4,4,16,16,yt),new wt(8,16,32,32,yt),new wt(8,16,128,128,yt),new wt(8,32,128,256,yt),new wt(32,128,258,1024,yt),new wt(32,258,258,4096,yt)],It=function(e){e.window_size=2*e.w_size,ct(e.head),e.max_lazy_match=xt[e.level].max_lazy,e.good_match=xt[e.level].good_length,e.nice_match=xt[e.level].nice_length,e.max_chain_length=xt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=He-1,e.match_available=0,e.ins_h=0};function Mt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Pe,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(2*Ge),this.dyn_dtree=new Uint16Array(2*(2*Fe+1)),this.bl_tree=new Uint16Array(2*(2*Ze+1)),ct(this.dyn_ltree),ct(this.dyn_dtree),ct(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Ye+1),this.heap=new Uint16Array(2*qe+1),ct(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*qe+1),ct(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var St=function(e){if(!e||!e.state)return ut(e,Se);e.total_in=e.total_out=0,e.data_type=je;var t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?Ke:tt,e.adler=2===t.wrap?0:1,t.last_flush=ye,ge(t),Ie},Ct=function(e){var t=St(e);return t===Ie&&It(e.state),t},Nt=function(e,t,n,r,i,o){if(!e)return Se;var a=1;if(t===Te&&(t=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>Ue||n!==Pe||r<8||r>15||t<0||t>9||o<0||o>ke)return ut(e,Se);8===r&&(r=9);var s=new Mt;return e.state=s,s.strm=e,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<xe||t<0)return e?ut(e,Se):Se;var i=e.state;if(!e.output||!e.input&&0!==e.avail_in||i.status===nt&&t!==we)return ut(e,0===e.avail_out?Ne:Se);i.strm=e;var o=i.last_flush;if(i.last_flush=t,i.status===Ke)if(2===i.wrap)e.adler=0,ht(i,31),ht(i,139),ht(i,8),i.gzhead?(ht(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),ht(i,255&i.gzhead.time),ht(i,i.gzhead.time>>8&255),ht(i,i.gzhead.time>>16&255),ht(i,i.gzhead.time>>24&255),ht(i,9===i.level?2:i.strategy>=De||i.level<2?4:0),ht(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(ht(i,255&i.gzhead.extra.length),ht(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=pe(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Xe):(ht(i,0),ht(i,0),ht(i,0),ht(i,0),ht(i,0),ht(i,9===i.level?2:i.strategy>=De||i.level<2?4:0),ht(i,st),i.status=tt);else{var a=Pe+(i.w_bits-8<<4)<<8;a|=(i.strategy>=De||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(a|=Qe),a+=31-a%31,i.status=tt,gt(i,a),0!==i.strstart&&(gt(i,e.adler>>>16),gt(i,65535&e.adler)),e.adler=1}if(i.status===Xe)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>n&&(e.adler=pe(e.adler,i.pending_buf,i.pending-n,n)),pt(e),n=i.pending,i.pending!==i.pending_buf_size));)ht(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(e.adler=pe(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=$e)}else i.status=$e;if(i.status===$e)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=pe(e.adler,i.pending_buf,i.pending-n,n)),pt(e),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}r=i.gzindexn&&(e.adler=pe(e.adler,i.pending_buf,i.pending-n,n)),0===r&&(i.gzindex=0,i.status=Je)}else i.status=Je;if(i.status===Je)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=pe(e.adler,i.pending_buf,i.pending-n,n)),pt(e),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}r=i.gzindexn&&(e.adler=pe(e.adler,i.pending_buf,i.pending-n,n)),0===r&&(i.status=et)}else i.status=et;if(i.status===et&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&pt(e),i.pending+2<=i.pending_buf_size&&(ht(i,255&e.adler),ht(i,e.adler>>8&255),e.adler=0,i.status=tt)):i.status=tt),0!==i.pending){if(pt(e),0===e.avail_out)return i.last_flush=-1,Ie}else if(0===e.avail_in&<(t)<=lt(o)&&t!==we)return ut(e,Ne);if(i.status===nt&&0!==e.avail_in)return ut(e,Ne);if(0!==e.avail_in||0!==i.lookahead||t!==ye&&i.status!==nt){var s=i.strategy===De?Et(i,t):i.strategy===Oe?bt(i,t):xt[i.level].func(i,t);if(s!==ot&&s!==at||(i.status=nt),s===rt||s===ot)return 0===e.avail_out&&(i.last_flush=-1),Ie;if(s===it&&(t===be?Ae(i):t!==xe&&(me(i,0,0,!1),t===Ee&&(ct(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),pt(e),0===e.avail_out))return i.last_flush=-1,Ie}return t!==we?Ie:i.wrap<=0?Me:(2===i.wrap?(ht(i,255&e.adler),ht(i,e.adler>>8&255),ht(i,e.adler>>16&255),ht(i,e.adler>>24&255),ht(i,255&e.total_in),ht(i,e.total_in>>8&255),ht(i,e.total_in>>16&255),ht(i,e.total_in>>24&255)):(gt(i,e.adler>>>16),gt(i,65535&e.adler)),pt(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?Ie:Me)},Lt=function(e,t){var n=t.length;if(!e||!e.state)return Se;var r=e.state,i=r.wrap;if(2===i||1===i&&r.status!==Ke||r.lookahead)return Se;if(1===i&&(e.adler=ce(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){0===i&&(ct(r.head),r.strstart=0,r.block_start=0,r.insert=0);var o=new Uint8Array(r.w_size);o.set(t.subarray(n-r.w_size,n),0),t=o,n=r.w_size}var a=e.avail_in,s=e.next_in,u=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,_t(r);r.lookahead>=He;){var l=r.strstart,c=r.lookahead-(He-1);do{r.ins_h=dt(r,r.ins_h,r.window[l+He-1]),r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++}while(--c);r.strstart=l,r.lookahead=He-1,_t(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=He-1,r.match_available=0,e.next_in=s,e.input=u,e.avail_in=a,r.wrap=i,Ie},Dt=Tt,Ot={deflateInit:function(e,t){return Nt(e,t,Pe,ze,Be,Re)},deflateInit2:Nt,deflateReset:Ct,deflateResetKeep:St,deflateSetHeader:function(e,t){return e&&e.state?2!==e.state.wrap?Se:(e.state.gzhead=t,Ie):Se},deflate:Dt,deflateEnd:function(e){if(!e||!e.state)return Se;var t=e.state.status;return t!==Ke&&t!==Xe&&t!==$e&&t!==Je&&t!==et&&t!==tt&&t!==nt?ut(e,Se):(e.state=null,t===tt?ut(e,Ce):Ie)},deflateSetDictionary:Lt,deflateInfo:"pako deflate (from Nodeca project)"};function kt(e){for(var t=0,n=0,r=e.length;n=252?6:jt>=248?5:jt>=240?4:jt>=224?3:jt>=192?2:1;function Pt(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}Rt[254]=Rt[254]=1;var Ut=Pt,zt=Object.prototype.toString,Bt=he.Z_NO_FLUSH,qt=he.Z_SYNC_FLUSH,Ft=he.Z_FULL_FLUSH,Zt=he.Z_FINISH,Gt=he.Z_OK,Yt=he.Z_STREAM_END,Ht=he.Z_DEFAULT_COMPRESSION,Wt=he.Z_DEFAULT_STRATEGY,Vt=he.Z_DEFLATED;function Qt(){this.options={level:Ht,method:Vt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ut,this.strm.avail_out=0;var t=Ot.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(t!==Gt)throw new Error(fe[t]);if(e.header&&Ot.deflateSetHeader(this.strm,e.header),e.dictionary){var n;if(n="[object ArrayBuffer]"===zt.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(t=Ot.deflateSetDictionary(this.strm,n))!==Gt)throw new Error(fe[t]);this._dict_set=!0}}function Kt(e){if("function"===typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);var t,n,r,i,o,a=e.length,s=0;for(i=0;i>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t}return Qt.prototype.push=function(e,t){var n,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;for(r=t===~~t?t:!0===t?Zt:Bt,"[object ArrayBuffer]"===zt.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;)if(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(r===qt||r===Ft)&&i.avail_out<=6)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else{if((n=Ot.deflate(i,r))===Yt)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),n=Ot.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Gt;if(0!==i.avail_out){if(r>0&&i.next_out>0)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else if(0===i.avail_in)break}else this.onData(i.output)}return!0},Qt.prototype.onData=function(e){this.chunks.push(e)},Qt.prototype.onEnd=function(e){e===Gt&&(this.result=kt(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},{Deflate:Qt,constants:he,string2buf:Kt}}(),n=t.Deflate,r=t.constants,i=t.string2buf,o=new n,a=0;function s(e){var t=i(e);return o.push(t,r.Z_SYNC_FLUSH),a+=t.length,t.length}self.addEventListener("message",e((function(e){var t=e.data;switch(t.action){case"init":self.postMessage({type:"initialized"});break;case"write":var i=s(t.data);self.postMessage({type:"wrote",id:t.id,compressedBytesCount:o.chunks.reduce((function(e,t){return e+t.length}),0),additionalBytesCount:i});break;case"flush":i=t.data?s(t.data):0;o.push("",r.Z_FINISH),self.postMessage({type:"flushed",id:t.id,result:o.result,additionalBytesCount:i,rawBytesCount:a}),o=new n,a=0}})))}))()}var Ra={status:0};function ja(e,t){switch(void 0===t&&(t=Oa),Ra.status){case 0:Ra={status:1,callbacks:[e]},function(e){void 0===e&&(e=Oa);try{var t=e();return t.addEventListener("error",oe(Pa)),t.addEventListener("message",oe((function(e){var n,r=e.data;"errored"===r.type?Pa(r.error):"initialized"===r.type&&(n=t,1===Ra.status&&(Ra.callbacks.forEach((function(e){return e(n)})),Ra={status:3,worker:n}))}))),t.postMessage({action:"init"}),t}catch(n){Pa(n)}}(t);break;case 1:Ra.callbacks.push(e);break;case 2:e();break;case 3:e(Ra.worker)}}function Pa(e){1===Ra.status?(ee.error("Session Replay recording failed to start: an error occurred while creating the Worker:",e),e instanceof Event||e instanceof Error&&Ee(e.message,"Content Security Policy")?ee.error("Please make sure CSP is correctly configured https://docs.datadoghq.com/real_user_monitoring/faq/content_security_policy"):tn(e),Ra.callbacks.forEach((function(e){return e()})),Ra={status:2}):tn(e)}function Ua(e,t,n,r,i){var o=new FormData;o.append("segment",new Blob([t],{type:"application/octet-stream"}),"".concat(n.session.id,"-").concat(n.start)),za(n,(function(e,t){return o.append(e,t)})),o.append("raw_segment_size",r.toString()),new jn(e,La).send(o,t.byteLength,i)}function za(e,t,n){void 0===n&&(n=""),Ce(e).forEach((function(e){var r=e[0],i=e[1];"object"===typeof i&&null!==i?za(i,t,"".concat(n).concat(r,".")):t("".concat(n).concat(r),String(i))}))}var Ba=function(e,t){if(void 0===t&&(t=ja),Fn())return{start:Ae,stop:Ae,getReplayStats:function(){},onRumStart:Ae,isRecording:function(){return!1}};var n={status:0},r=function(){n={status:1}},i=function(){n={status:0}};return{start:function(){return r()},stop:function(){return i()},getReplayStats:Ia,onRumStart:function(o,a,s,u){o.subscribe(7,(function(){2!==n.status&&3!==n.status||(i(),n={status:1})})),o.subscribe(8,(function(){1===n.status&&r()})),r=function(){var r=s.findTrackedSession();r&&r.hasPremiumPlan?2!==n.status&&3!==n.status&&(n={status:2},Pe("interactive",(function(){2===n.status&&t((function(t){if(2===n.status)if(t){var r=e(o,a,s,u,t).stop;n={status:3,stopRecording:r}}else n={status:0}}))}))):n={status:1}},i=function(){0!==n.status&&(3===n.status&&n.stopRecording(),n={status:0})},1===n.status&&r()},isRecording:function(){return 3===n.status}}}((function(e,t,n,r,i){var o;Je("lower-batch-size")&&(void 0===(o=22*pe)&&(o=6e4),La=o);var a=Da(e,t.applicationId,n,r,(function(e,n,r,i){return Ua(t.sessionReplayEndpointBuilder,e,n,r,i)}),i),s=a.addRecord,u=a.stop,l=function(e){var t=e.emit;if(!t)throw new Error("emit function is required");var n=new la,r=function(r){void 0===r&&(r=ot()),n.flush();var i=Rr(),o=i.width,a=i.height;t({data:{height:a,href:window.location.href,width:o},type:co.Meta,timestamp:r}),t({data:{has_focus:document.hasFocus()},type:co.Focus,timestamp:r}),t({data:{node:Xo(document,e.defaultPrivacyLevel),initialOffset:{left:fa(),top:ha()}},type:co.FullSnapshot,timestamp:r}),window.visualViewport&&t({data:pa(),type:co.VisualViewport,timestamp:r})};return r(),{stop:_a({mutationController:n,defaultPrivacyLevel:e.defaultPrivacyLevel,inputCb:function(e){return t(ya(po.Input,e))},mediaInteractionCb:function(e){return t(ya(po.MediaInteraction,e))},mouseInteractionCb:function(e){return t(ya(po.MouseInteraction,e))},mousemoveCb:function(e,n){return t(ya(n,{positions:e}))},mutationCb:function(e){return t(ya(po.Mutation,e))},scrollCb:function(e){return t(ya(po.Scroll,e))},styleSheetRuleCb:function(e){return t(ya(po.StyleSheetRule,e))},viewportResizeCb:function(e){return t(ya(po.ViewportResize,e))},focusCb:function(e){return t({data:e,type:co.Focus,timestamp:ot()})},visualViewportResizeCb:function(e){t({data:e,type:co.VisualViewport,timestamp:ot()})}}),takeFullSnapshot:r,flushMutations:function(){return n.flush()}}}({emit:s,defaultPrivacyLevel:t.defaultPrivacyLevel}),c=l.stop,d=l.takeFullSnapshot,p=l.flushMutations,f=e.subscribe(4,(function(){p(),s({timestamp:ot(),type:co.ViewEnd})})).unsubscribe,h=e.subscribe(2,(function(e){d(e.startClocks.timeStamp)})).unsubscribe;return{stop:function(){f(),h(),c(),u()}}})),qa=function(e,t,n){var r=(void 0===n?{}:n).ignoreInitIfSyntheticsWillInjectRum,i=void 0===r||r,o=!1,a=function(){var e={};return{get:function(){return e},add:function(t,n){e[t]=n},remove:function(t){delete e[t]},set:function(t){e=t}}}(),s={},u=function(){},l=function(){},c=new tr,d=function(e,t){void 0===t&&(t=ot()),c.add((function(){return d(e,t)}))},p=function(e,t){void 0===t&&(t=st()),c.add((function(){return p(e,t)}))},f=function(e,t){void 0===t&&(t=g()),c.add((function(){return f(e,t)}))},h=function(e,t){void 0===t&&(t=g()),c.add((function(){return h(e,t)}))};function g(){return Be({context:a.get(),user:s})}function m(n,r){var i=e(n,(function(){return{user:s,context:a.get(),hasReplay:!!t.isRecording()||void 0}}),t,r);p=i.startView,f=i.addAction,h=i.addError,d=i.addTiming,u=i.getInternalContext,c.drain(),t.onRumStart(i.lifeCycle,n,i.session,i.viewContexts)}var v=oe((function(e){p("object"===typeof e?e:{name:e})})),_=function(e){var t=he({version:"4.15.0",onReady:function(e){e()}},e);return Object.defineProperty(t,"_setDebug",{get:function(){return ie},enumerable:!1}),t}({init:oe((function(e){if(!i||!ur()){if(Fn())e=function(e){return he({},e,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sampleRate:100})}(e);else if(!function(e){if(!function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(me()),n="test";Qe(t,n,ue,e);var r=Ke(t)===n;return Xe(t,e),r}catch(i){return ee.error(i),!1}}(It(e)))return ee.warn("Cookies are not authorized, we will not send any data."),!1;if("file:"===window.location.protocol)return ee.error("Execution is not allowed in the current context."),!1;return!0}(e))return;if(function(e){if(o)return e.silentMultipleInit||ee.error("DD_RUM is already initialized."),!1;return!0}(e)){var t=function(e){var t,n,r,i;if(e.applicationId){var o=null!==(t=e.premiumSampleRate)&&void 0!==t?t:e.replaySampleRate;if(void 0===o||Ie(o))if(void 0===e.tracingSampleRate||Ie(e.tracingSampleRate)){if(void 0!==e.allowedTracingOrigins){if(!Array.isArray(e.allowedTracingOrigins))return void ee.error("Allowed Tracing Origins should be an array");if(0!==e.allowedTracingOrigins.length&&void 0===e.service)return void ee.error("Service need to be configured when tracing is enabled")}if(void 0===e.excludedActivityUrls||Array.isArray(e.excludedActivityUrls)){var a=xt(e);if(a){var s,u,l=!!e.trackFrustrations;return he({applicationId:e.applicationId,version:e.version,actionNameAttribute:e.actionNameAttribute,premiumSampleRate:null!==o&&void 0!==o?o:100,allowedTracingOrigins:null!==(n=e.allowedTracingOrigins)&&void 0!==n?n:[],tracingSampleRate:null!==(r=e.tracingSampleRate)&&void 0!==r?r:100,excludedActivityUrls:null!==(i=e.excludedActivityUrls)&&void 0!==i?i:[],trackInteractions:!!e.trackInteractions||l,trackFrustrations:l,trackViewsManually:!!e.trackViewsManually,defaultPrivacyLevel:(s=wt,u=e.defaultPrivacyLevel,Object.keys(s).some((function(e){return s[e]===u}))?e.defaultPrivacyLevel:wt.MASK_USER_INPUT)},a)}}else ee.error("Excluded Activity Urls should be an array")}else ee.error("Tracing Sample Rate should be a number between 0 and 100");else ee.error("Premium Sample Rate should be a number between 0 and 100")}else ee.error("Application ID is not configured, no RUM data will be collected.")}(e);if(t){if(t.trackViewsManually){var n=c;c=new tr,p=function(e){m(t,e)},n.drain()}else m(t);l=function(){return Be(e)},o=!0}}}})),addRumGlobalContext:oe(a.add),removeRumGlobalContext:oe(a.remove),getRumGlobalContext:oe(a.get),setRumGlobalContext:oe(a.set),getInternalContext:oe((function(e){return u(e)})),getInitConfiguration:oe((function(){return l()})),addAction:oe((function(e,t){f({name:e,context:Be(t),startClocks:st(),type:"custom"})})),addError:function(e,t){var n=Zt();ae((function(){h({error:e,handlingStack:n,context:Be(t),startClocks:st()})}))},addTiming:oe((function(e,t){d(e,t)})),setUser:oe((function(e){var t=function(e){if("object"!==typeof e||!e)return;var t=Be(e);"id"in t&&(t.id=String(t.id));"name"in t&&(t.name=String(t.name));"email"in t&&(t.email=String(t.email));return t}(e);t?s=t:ee.error("Unsupported user:",e)})),removeUser:oe((function(){s={}})),startView:v,startSessionReplayRecording:oe(t.start),stopSessionReplayRecording:oe(t.stop)});return _}((function(e,t,n,r){var i=new Vr,o=function(e){var t=Jt(e);if(Fn()){var n=qn();t.observable.subscribe((function(e){return n.send("internal_telemetry",e)}))}return t}(e);o.setContextProvider((function(){var t,n;return{application:{id:e.applicationId},session:{id:null===(t=a.findTrackedSession())||void 0===t?void 0:t.id},view:{id:null===(n=c.findView())||void 0===n?void 0:n.id},action:{id:f.findActionId()}}})),Fn()?function(e){var t=qn();e.subscribe(11,(function(e){t.send("rum",e)}))}(i):so(e,i,o.observable);var a=Fn()?function(){var e={id:"00000000-aaaa-0000-aaaa-000000000000",hasPremiumPlan:!0,hasLitePlan:!1};return{findTrackedSession:function(){return e}}}():oo(e,i),s=function(){var e=lr(),t=new Gt((function(){if(e){var n=new e(oe((function(){return t.notify()})));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return n.disconnect()}}}));return t}(),u=lo(location),l=function(e,t,n,r,i,o,a){var s=function(e){var t=new sn(Qr);return e.subscribe(2,(function(e){t.add(function(e){return{service:e.service,version:e.version,id:e.id,name:e.name}}(e),e.startClocks.relative)})),e.subscribe(4,(function(e){var n=e.endClocks;t.closeActive(n.relative)})),e.subscribe(8,(function(){t.reset()})),{findView:function(e){return t.find(e)},stop:function(){t.stop()}}}(e),u=function(e,t,n){var r,i=new sn(uo);e.subscribe(4,(function(e){var t=e.endClocks;i.closeActive(t.relative)})),e.subscribe(2,(function(e){var t=e.startClocks,o=n.href;i.add(a({url:o,referrer:r||document.referrer}),t.relative),r=o}));var o=t.subscribe((function(e){var t=e.newLocation,n=i.find();if(n){var r=at();i.closeActive(r),i.add(a({url:t.href,referrer:n.referrer}),r)}}));function a(e){return{url:e.url,referrer:e.referrer}}return{findUrl:function(e){return i.find(e)},stop:function(){o.unsubscribe(),i.stop()}}}(e,i,n),l=Zr(),c=function(e,t,n,r){e.subscribe(1,(function(t){return e.notify(10,Ui(t,r))}));var i={findActionId:Ae};return n.trackInteractions&&(i=ji(e,t,n).actionContexts),{addAction:function(t,n){e.notify(10,he({savedCommonContext:n},Ui(t,r)))},actionContexts:i}}(e,o,t,l),d=c.addAction,p=c.actionContexts;return zr(t,e,r,s,u,p,a),{viewContexts:s,foregroundContexts:l,urlContexts:u,addAction:d,actionContexts:p,stop:function(){s.stop(),l.stop()}}}(i,e,location,a,u,s,t),c=l.viewContexts,d=l.foregroundContexts,p=l.urlContexts,f=l.actionContexts,h=l.addAction;!function(e,t){e.subscribe(0,(function(n){for(var r=0,i=n;r-1},es=function(e,t){var n=this.__data__,r=Qa(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function ts(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t1&&void 0!==arguments[1]?arguments[1]:{},r=(t="errors","undefined"!==typeof window&&window.Scribd&&window.Scribd.Sentry&&window.Scribd.Sentry.queue&&window.Scribd.Sentry.queue[t]||[]);r?r.push({errorObject:e,extraInfo:n}):console.error(e,n)}function Al(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!("undefined"!==typeof window&&window.Scribd&&window.Scribd.Sentry&&window.Scribd.Sentry.disabled)&&(console.error(e,t),!0)}(e,t))if("undefined"!==typeof window&&window.Sentry&&window.Sentry.captureException&&window.Sentry.captureMessage&&window.Sentry.configureScope&&window.Sentry.withScope){var n=Object.keys(t);n.length?window.Sentry.withScope((r=>{n.forEach((e=>{r.setExtra(e,t[e])})),window.Sentry.captureException(e)})):window.Sentry.captureException(e)}else _l(e,t)}var yl=()=>{};var bl=new class{constructor(){this.CSRF_TOKEN=null,"undefined"!==typeof window&&(this.xhr_queue=[],this.get_csrf_token())}get_csrf_token(){var e=this;return this.send("post",{url:"/csrf_token",body:{href:window.location.href}},((t,n,r)=>{t||(e.CSRF_TOKEN=JSON.parse(r).csrf_token,e.xhr_queue.length&&e.xhr_queue.forEach((t=>e.send(...t))))}),!0)}get_read_defaults(){return{headers:{"X-Requested-With":"XMLHttpRequest"}}}get_modify_defaults(){return{headers:U.pickBy({"Content-Type":"application/json","X-CSRF-Token":this.CSRF_TOKEN,"X-Requested-With":"XMLHttpRequest"},U.identity)}}send(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yl,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i="get"===e.toLowerCase(),o=i?this.get_read_defaults():this.get_modify_defaults();"object"===typeof t.body&&(t.headers&&t.headers["Content-Type"]&&t.headers["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1?t.body=Object.keys(t.body).map((e=>encodeURIComponent(e)+"="+encodeURIComponent(t.body[e]))).join("&"):t.json||(t.body=JSON.stringify(t.body)));return"undefined"!==typeof window?i||this.CSRF_TOKEN||r?z.exports(U.merge(o,{method:e},t),((e,t,r)=>{var i;e?i={xhr_api_error:e}:t.statusCode>=500&&(i={statusCode:t.statusCode,body:r}),i&&Al(new Error("XHR error"),{extra:i}),n(e,t,r)})):(this.xhr_queue.push(arguments),yl):yl}get(e,t){return this.send("get",e,t)}post(e,t){return this.send("post",e,t)}patch(e,t){return this.send("patch",e,t)}put(e,t){return this.send("put",e,t)}delete(e,t){return this.send("delete",e,t)}asPromise(e,t){var n=ml({json:!0},t);return new Promise(((t,r)=>{this.send(e,n,((e,n,i)=>{var{statusCode:o}=n;return e?r(e):200!==o?r({message:"Received non-200 status code: ".concat(o),statusCode:o}):void t(ml(ml({},i),{},{statusCode:o}))}))}))}},El=e=>new RegExp("[^".concat(e,"]"),"g"),wl=/[a-zA-Z]/,xl="\\w\\.\\-\\/",Il="".concat(xl,":"),Ml=El(xl),Sl=El(Il),Cl=["boolean","number"];function Nl(e){return"string"!==typeof e||!1===wl.test(e[0])?null:e.replace(Ml,"_")}function Tl(e){return"string"===typeof e?e.replace(Sl,"_"):Cl.includes(typeof e)?e.toString():"undefined"===typeof e?"undefined":null===e?"null":null}var Ll="count",Dl="decrement",Ol="gauge",kl="increment",Rl="timing";function jl(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};for(var[n,r]of Object.entries(e)){var i=Nl(n),o=Tl(r);if(null===i||null===o)return null;t[i]=o}return t}(r);if(null===i)return Al(new Error("Datadog: Invalid metric tags"),{tags:r});var o={metric:t,tags:i,type:e};n&&(o.value=n),bl.post({body:o,dataType:"json",url:"/log/dd"})}class Pl{static decrement(e,t){jl(Dl,e,null,t)}static increment(e,t){jl(kl,e,null,t)}}vl(Pl,"count",jl.bind(Pl,Ll)),vl(Pl,"gauge",jl.bind(Pl,Ol)),vl(Pl,"timing",jl.bind(Pl,Rl)),Object.values({DE:{lang:"de",language:"de",lcid:"de",name:"Deutsch",prefix:"de"},EN:{lang:"en_US",language:"en-US",lcid:"en",name:"English",prefix:"en"},ES:{lang:"es-419",language:"es-419",lcid:"es",name:"espa\xf1ol",prefix:"es"},FR:{lang:"fr",language:"fr",lcid:"fr",name:"fran\xe7ais",prefix:"fr"},ID:{lang:"id_ID",language:"id-ID",lcid:"id",name:"Bahasa Indonesia",prefix:"id"},IT:{lang:"it",language:"it",lcid:"it",name:"italiano",prefix:"it"},PT:{lang:"pt_BR",language:"pt-BR",lcid:"pt-br",name:"portugu\xeas",prefix:"pt"},RO:{lang:"ro_RO",language:"ro-RO",lcid:"ro",name:"Rom\xe2n\u0103",prefix:"ro"},RU:{lang:"ru_RU",language:"ru-RU",lcid:"ru",name:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",prefix:"ru"}}).map((e=>e.language));var Ul=(e,t)=>"undefined"!==typeof e||"undefined"!==typeof t;var zl={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pause_break:19,caps_lock:20,esc:27,space:32,page_up:33,page_down:34,end:35,home:36,left_arrow:37,up_arrow:38,right_arrow:39,down_arrow:40,insert:45,delete:46,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,cmd:91,left_window_key:91,right_window_key:92,select_key:93,numpad_0:96,numpad_1:97,numpad_2:98,numpad_3:99,numpad_4:100,numpad_5:101,numpad_6:102,numpad_7:103,numpad_8:104,numpad_9:105,multiply:106,add:107,subtract:109,decimal_point:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,num_lock:144,scroll_lock:145,semi_colon:186,equal_sign:187,comma:188,dash:189,period:190,forward_slash:191,grave_accent:192,open_bracket:219,back_slash:220,close_bracket:221,single_quote:222,firefox_cmd:224};P.exports.memoize((e=>{return!("undefined"===typeof window||!e.scrollTo)&&!((t=navigator.userAgent).indexOf("Safari/")>-1&&-1===t.indexOf("Chrome/"));var t}));var Bl={},ql=e=>(Bl[e]="undefined"===typeof Bl[e]?0:Bl[e]+1,"".concat(e,"_").concat(Bl[e]));function Fl(e){return this?("undefined"===typeof this.uidCache&&(this.uidCache={}),this.uidCache[e]=this.uidCache[e]||ql(e),this.uidCache[e]):ql(e)}var Zl={DEFAULT:"default",DANGER:"danger",DISABLED:"disabled",NONE:"none"},Gl={BUTTON:"button",SUBMIT:"submit"};var Yl={wrapper:"TextButton-module_wrapper__ZwW-w",children:"TextButton-module_children__HwxUl",content:"TextButton-module_content__6x-Ra",danger:"TextButton-module_danger__ZZ1dL",default:"TextButton-module_default__ekglb",disabled:"TextButton-module_disabled__J-Qyg",leftIcon:"TextButton-module_leftIcon__tZ3Sb",rightAlignedText:"TextButton-module_rightAlignedText__1b-RN",rightIcon:"TextButton-module_rightIcon__nDfu4"},Hl=e=>{var{"aria-label":t,"aria-expanded":n,"data-e2e":r,buttonStyle:o,children:a,className:s,disabled:u,href:l,leftIcon:c,nodeRef:d,onBlur:f,onClick:h,onFocus:g,onKeyDown:m,onKeyPress:v,onKeyUp:_,onMouseDown:A,onMouseEnter:y,onMouseLeave:b,onMouseOut:E,onMouseOver:w,rel:x,rightIcon:I,role:M,tabIndex:S,target:C,type:N}=e,T=Ul(l,C),L="button";T&&(L="a");var D=function(e,t,n){return e===Zl.NONE?[n.wrapper,t]:[n.wrapper,n[e],t]}(o,s,Yl);return i.createElement(L,{"aria-disabled":u?"true":"false","aria-expanded":n,"aria-label":t,className:p(...D,{[Yl.disabled]:u}),"data-e2e":r,href:l,onBlur:f,onClick:h,onFocus:g,onKeyDown:m,onKeyPress:v,onKeyUp:_,onMouseDown:A,onMouseEnter:y,onMouseLeave:b,onMouseOut:E,onMouseOver:w,ref:d,rel:T?x:null,role:M,tabIndex:S,target:C,type:T?null:N},i.createElement("span",{className:Yl.content},c?i.createElement(c,{className:Yl.leftIcon,"data-e2e":"btn-icon"}):null,i.createElement("span",{className:p(Yl.children,{[Yl.rightAlignedText]:Boolean(I)})},a),I?i.createElement(I,{className:Yl.rightIcon,"data-e2e":"btn-icon"}):null))};Hl.propTypes={"aria-expanded":a().bool,"aria-label":a().string,"data-e2e":a().string,buttonStyle:a().oneOf(Object.values(Zl)),children:a().oneOfType([a().array,a().element,a().string]),className:a().string,disabled:a().bool,href:a().string,leftIcon:a().elementType,nodeRef:a().oneOfType([a().func,a().shape({current:a().any})]),onBlur:a().func,onClick:a().func,onFocus:a().func,onKeyDown:a().func,onKeyPress:a().func,onKeyUp:a().func,onMouseDown:a().func,onMouseEnter:a().func,onMouseLeave:a().func,onMouseOut:a().func,onMouseOver:a().func,rel:a().string,rightIcon:a().elementType,role:a().string,tabIndex:a().string,target:a().string,type:a().oneOf(Object.values(Gl))},Hl.defaultProps={"aria-expanded":null,"aria-label":null,"data-e2e":null,buttonStyle:Zl.DEFAULT,className:"",disabled:!1,leftIcon:null,rel:null,rightIcon:null,type:Gl.BUTTON};var Wl={exports:{}};!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r{var{above:r,atAndAbove:i,atAndBelow:o,below:a}=e;if(1!==[r,i,o,a].filter((e=>e)).length)return new Error("\n Invalid props: ".concat(n,' requires only one of the\n props "above", or "below" in order to apply the appropriate media query'))};function Xl(){return Xl=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pc);return(0,i.createElement)(r,dc({ref:t,style:dc({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},a)},s))}));var hc="SvgIcon-module_wrapper__1fPqw",gc="SvgIcon-module_icon__sUHUn";function mc(e){var{"data-e2e":t,alt:n,className:r,icon:o,nodeRef:a}=e;return i.createElement("span",{className:lc(hc,r),"data-e2e":t,ref:a},i.createElement(o,{role:"img","aria-hidden":"true",className:gc}),n?i.createElement(fc,null,n):null)}function vc(e){return i.createElement("svg",Xl({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("circle",{cx:8,cy:8,r:7,stroke:"currentColor",strokeWidth:2}),i.createElement("path",{d:"M7 4h2v5H7V4z",fill:"currentColor"}),i.createElement("rect",{x:7,y:10,width:2,height:2,rx:1,fill:"currentColor"}))}function _c(e){return i.createElement("svg",Xl({width:8,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{d:"M7.41 1.41L6 0 0 6l6 6 1.41-1.41L2.83 6l4.58-4.59z",fill:"currentColor"}))}function Ac(e){return i.createElement("svg",Xl({width:8,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{d:"M0 1.41L1.41 0l6 6-6 6L0 10.59 4.58 6 0 1.41z",fill:"currentColor"}))}function yc(e){return i.createElement("svg",Xl({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{d:"M8.24 11.66L4 7.41 5.41 6l2.83 2.83L11.07 6l1.42 1.41-4.25 4.25z",fill:"currentColor"}))}function bc(e){return i.createElement("svg",Xl({fill:"none",height:16,width:16,xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{clipRule:"evenodd",d:"M2 0a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V2a2 2 0 00-2-2zm4.707 11.707l7-7-1.414-1.414L6 9.586 3.707 7.293 2.293 8.707l3 3 .707.707z",fill:"currentColor",fillRule:"evenodd"}))}function Ec(e){return i.createElement("svg",Xl({fill:"none",height:24,width:24,xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{clipRule:"evenodd",d:"M2 4a2 2 0 012-2h16a2 2 0 012 2v16a2 2 0 01-2 2H4a2 2 0 01-2-2zm17.06 5.06l-2.12-2.12L10 13.878l-2.94-2.94-2.12 2.122L10 18.12z",fill:"currentColor",fillRule:"evenodd"}))}function wc(e){return i.createElement("svg",Xl({fill:"none",height:16,width:16,xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{clipRule:"evenodd",d:"M14 2H2v12h12zM2 0a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V2a2 2 0 00-2-2z",fill:"currentColor",fillRule:"evenodd"}))}function xc(e){return i.createElement("svg",Xl({fill:"none",height:24,width:24,xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{clipRule:"evenodd",d:"M20 4H4v16h16zM4 2a2 2 0 00-2 2v16a2 2 0 002 2h16a2 2 0 002-2V4a2 2 0 00-2-2z",fill:"currentColor",fillRule:"evenodd"}))}function Ic(e){return i.createElement("svg",Xl({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4a1 1 0 100-2 1 1 0 000 2zm0 2a3.001 3.001 0 01-2.83-2H0V2h2.17a3.001 3.001 0 015.66 0H16v2H7.83A3.001 3.001 0 015 6zm6 3a1 1 0 100-2 1 1 0 000 2zm2.83 0a3.001 3.001 0 01-5.66 0H0V7h8.17a3.001 3.001 0 015.66 0H16v2h-2.17zM6 13a1 1 0 11-2 0 1 1 0 012 0zm-3.83 1a3.001 3.001 0 005.66 0H16v-2H7.83a3.001 3.001 0 00-5.66 0H0v2h2.17z",fill:"currentColor"}))}function Mc(e){return i.createElement("svg",Xl({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 8A6 6 0 112 8a6 6 0 0112 0zm2 0A8 8 0 110 8a8 8 0 0116 0zm-8 4a4 4 0 100-8 4 4 0 000 8z",fill:"currentColor"}))}function Sc(e){return i.createElement("svg",Xl({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14A6 6 0 108 2a6 6 0 000 12zm0 2A8 8 0 108 0a8 8 0 000 16z",fill:"currentColor"}))}function Cc(e){return i.createElement("svg",Xl({width:20,height:19,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.81 6.62l7.19.62-5.45 4.73L16.18 19 10 15.27 3.82 19l1.64-7.03L0 7.24l7.19-.61L10 0l2.81 6.62zm-6.57 9.05L10 13.4l3.77 2.28-1-4.28 3.32-2.88-4.38-.38L10 4.1 8.3 8.13l-4.38.38 3.32 2.88-1 4.28z",fill:"currentColor"}))}function Nc(e){return i.createElement("svg",Xl({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.248 5.226l5.752.49-4.36 3.734L12.944 15 8 12.055 3.056 15l1.312-5.55L0 5.716l5.752-.482L8 0l2.248 5.226zm-5.256 7.145L8 10.579l3.016 1.8-.8-3.38 2.656-2.273-3.504-.3L8 3.236 6.64 6.419l-3.504.3 2.656 2.274-.8 3.379z",fill:"currentColor"}))}function Tc(e){return i.createElement("svg",Xl({width:12,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.686 3.833L12 4.192 8.73 6.93 9.708 11 6 8.84 2.292 11l.984-4.07L0 4.192l4.314-.354L6 0l1.686 3.833zM3.744 9.072L6 7.758l2.262 1.32-.6-2.478 1.992-1.668-2.628-.22L6 2.373 4.98 4.707l-2.628.22 1.992 1.667-.6 2.478z",fill:"currentColor"}))}function Lc(e){return i.createElement("svg",Xl({width:20,height:19,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{d:"M10 15.27L16.18 19l-1.64-7.03L20 7.24l-7.19-.61L10 0 7.19 6.63 0 7.24l5.46 4.73L3.82 19 10 15.27z",fill:"currentColor"}))}function Dc(e){return i.createElement("svg",Xl({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{d:"M8 12.055L12.944 15l-1.312-5.55L16 5.716l-5.752-.482L8 0 5.752 5.234 0 5.716 4.368 9.45 3.056 15 8 12.055z",fill:"currentColor"}))}function Oc(e){return i.createElement("svg",Xl({width:12,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{d:"M6 8.84L9.708 11l-.984-4.07L12 4.192l-4.314-.354L6 0 4.314 3.838 0 4.192 3.276 6.93 2.292 11 6 8.84z",fill:"currentColor"}))}function kc(e){return i.createElement("svg",Xl({width:20,height:19,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.81 6.62l7.19.62-5.45 4.73L16.18 19 10 15.27 3.82 19l1.64-7.03L0 7.24l7.19-.61L10 0l2.81 6.62zM10 4.1v9.3l3.77 2.28-1-4.28 3.32-2.88-4.38-.38L10 4.1z",fill:"currentColor"}))}function Rc(e){return i.createElement("svg",Xl({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.248 5.226l5.752.49-4.36 3.734L12.944 15 8 12.055 3.056 15l1.312-5.55L0 5.716l5.752-.482L8 0l2.248 5.226zM8 3.236v7.343l3.016 1.8-.8-3.379 2.656-2.274-3.504-.3L8 3.236z",fill:"currentColor"}))}function jc(e){return i.createElement("svg",Xl({width:12,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.686 3.833L12 4.192 8.73 6.93 9.708 11 6 8.84 2.292 11l.984-4.07L0 4.192l4.314-.354L6 0l1.686 3.833zM6 2.373v5.385l2.262 1.32-.6-2.478 1.992-1.667-2.628-.22L6 2.373z",fill:"currentColor"}))}function Pc(e){return i.createElement("svg",Xl({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 5a3 3 0 11-6 0 3 3 0 016 0zm2 0A5 5 0 117 5a5 5 0 0110 0zm-7 7a7 7 0 00-7 7v3h2v-3a5 5 0 015-5h4a5 5 0 015 5v3h2v-3a7 7 0 00-7-7h-4z",fill:"currentColor"}))}mc.propTypes={"data-e2e":$l.exports.string,alt:$l.exports.string,className:$l.exports.string,icon:$l.exports.any.isRequired,nodeRef:$l.exports.any},mc.defaultProps={"data-e2e":null,alt:null,nodeRef:null};var Uc=e=>i.createElement(mc,Xl({icon:vc},e)),zc=e=>i.createElement(mc,Xl({icon:_c},e)),Bc=e=>i.createElement(mc,Xl({icon:Ac},e)),qc=e=>i.createElement(mc,Xl({icon:yc},e)),Fc=e=>i.createElement(mc,Xl({icon:Ic},e)),Zc=e=>i.createElement(mc,Xl({icon:Mc},e)),Gc=e=>i.createElement(mc,Xl({icon:Sc},e)),Yc=e=>i.createElement(mc,Xl({icon:Cc},e)),Hc=e=>i.createElement(mc,Xl({icon:Nc},e)),Wc=e=>i.createElement(mc,Xl({icon:Tc},e)),Vc=e=>i.createElement(mc,Xl({icon:Lc},e)),Qc=e=>i.createElement(mc,Xl({icon:Dc},e)),Kc=e=>i.createElement(mc,Xl({icon:Oc},e)),Xc=e=>i.createElement(mc,Xl({icon:kc},e)),$c=e=>i.createElement(mc,Xl({icon:Rc},e)),Jc=e=>i.createElement(mc,Xl({icon:jc},e)),ed={icon:"CheckboxInput-module_icon__DLVuD",iconWrapper:"CheckboxInput-module_iconWrapper__aXffM",disabled:"CheckboxInput-module_disabled__kfU1v",keyboardFocus:"CheckboxInput-module_keyboardFocus__G2V-X",selected:"CheckboxInput-module_selected__zLLeX",label:"CheckboxInput-module_label__JZGPu",labelText:"CheckboxInput-module_labelText__QGbc7"},td={large:{selected:e=>i.createElement(mc,Xl({icon:Ec},e)),unselected:e=>i.createElement(mc,Xl({icon:xc},e))},small:{selected:e=>i.createElement(mc,Xl({icon:bc},e)),unselected:e=>i.createElement(mc,Xl({icon:wc},e))}};function nd(e){var{className:t,labelText:n,value:r,disabled:o,selected:a,onChange:s,id:c,name:d,size:p,"data-e2e":f,"aria-describedby":h,"aria-labelledby":g}=e,[m]=(0,i.useState)(Fl(d)),[v,_]=(0,i.useState)(!1),A=(0,u.v9)((e=>e.viewport.isKeyboardUser)),y=a?td[p].selected:td[p].unselected;return i.createElement("div",{className:t,"data-e2e":f},i.createElement("label",{className:ed.label,htmlFor:c||m},i.createElement(l.TX,null,i.createElement("input",{"aria-describedby":h,"aria-labelledby":g,checked:a,className:"",disabled:o,id:c||m,name:d,onFocus:()=>{A&&_(!0)},onBlur:()=>{A&&_(!1)},onChange:s,onKeyPress:e=>{e.which===zl.enter&&s(e)},type:"checkbox",value:r})),i.createElement("div",{className:Vl(ed.iconWrapper,{[ed.disabled]:o,[ed.keyboardFocus]:v,[ed.selected]:a}),"data-testid":"checkbox-icon"},i.createElement(y,{className:ed.icon})),n?i.createElement("span",{className:Vl(ed.labelText,{[ed.disabled]:o,[ed.selected]:a}),"data-testid":"label-text-".concat(n)},n):null))}nd.propTypes={"aria-describedby":a().string,"aria-labelledby":a().string,"data-e2e":a().string,className:a().string,disabled:a().bool,id:a().string,labelText:a().string,name:a().string,onChange:a().func.isRequired,selected:a().bool,size:a().oneOf(Object.values(y)),value:a().string},nd.defaultProps={"aria-describedby":null,"aria-labelledby":null,"data-e2e":null,className:"",disabled:!1,id:"",labelText:"",name:"",selected:!1,size:y.SMALL,value:""};var rd={wrapper:"ComponentButton-module_wrapper__qmgzK",default:"ComponentButton-module_default__516O4",outline:"ComponentButton-module_outline__2iOf5",selected:"ComponentButton-module_selected__lj9H3",disabled:"ComponentButton-module_disabled__Wfyf7",transparent:"ComponentButton-module_transparent__lr687"};function id(e){var{"aria-label":t,"data-e2e":n,buttonStyle:r,className:o,disabled:a,hiddenText:s,onClick:u,onFocus:c,onKeyDown:d,onKeyPress:p,onKeyUp:f,onMouseDown:h,icon:g,role:m,selected:v,tabIndex:_,target:A}=e;return i.createElement("button",{"aria-disabled":a?"true":"false","aria-label":t,className:Vl(rd.wrapper,rd[r],o,{[rd.disabled]:a,[rd.selected]:v}),"data-e2e":n,onClick:u,onFocus:c,onKeyDown:d,onKeyPress:p,onKeyUp:f,onMouseDown:h,role:m,tabIndex:_,target:A,type:"button"},i.createElement(g,{"data-e2e":"btn-icon"}),s?i.createElement(l.TX,{text:s}):null)}function od(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ad(e){for(var t=1;ti.createElement(mc,Xl({icon:Pc},e)),size:null},pd.propTypes={"data-e2e":a().string,className:a().string,imageUrl:a().string,retinaImageUrl:a().string,size:a().oneOf([D.L,D.S]),style:a().oneOf(Object.values(f)).isRequired},pd.defaultProps={"data-e2e":null,className:"",imageUrl:null,retinaImageUrl:null,size:null};var fd={IMAGE:1,AUTHOR:2,ICON:3},hd=e=>e.imageUrl?fd.IMAGE:!e.imageUrl&&e.isAuthor&&e.initials?fd.AUTHOR:fd.ICON;function gd(e){switch(hd(e)){case fd.IMAGE:return i.createElement(pd,e);case fd.AUTHOR:return i.createElement(cd,e);case fd.ICON:return i.createElement(dd,e);default:return console.error("AvatarFactory was given an invalid type"),null}}gd.propTypes=ad(ad(ad({},cd.propTypes),dd.propTypes),pd.propTypes),gd.defaultProps=ad(ad(ad({},cd.defaultProps),dd.defaultProps),pd.defaultProps);var md="DropdownButtonPicker-module_wrapper__mM0Ax",vd="DropdownButtonPicker-module_active__yhOuQ",_d="DropdownButtonPicker-module_currentValue__-d7FO",Ad="DropdownButtonPicker-module_default__Pl5QP",yd="DropdownButtonPicker-module_icon__C0MLC",bd="DropdownButtonPicker-module_disabled__XnCLC",Ed="DropdownButtonPicker-module_isSelected__Vuo-V",wd="DropdownButtonPicker-module_select__xINWr";function xd(e){var{className:t,disabled:n,isSelected:r,onChange:o,options:a,placeholderText:s,value:u}=e,l=a.find((e=>e.value===u)),c=(null===l||void 0===l?void 0:l.label)||s;return i.createElement("div",{className:Vl(md,t,{[vd]:l,[Ad]:!n&&!r,[bd]:n,[Ed]:r})},i.createElement("div",{className:_d,"aria-hidden":!0},c),i.createElement(qc,{className:yd}),i.createElement("select",{className:wd,disabled:n,onChange:o,value:u},a.map((e=>i.createElement("option",{value:e.value,key:e.value},e.label)))))}xd.propTypes={className:a().string,disabled:a().bool,isSelected:a().bool,onChange:a().func.isRequired,options:a().arrayOf(a().shape({value:a().any,label:a().string})).isRequired,placeholderText:a().string,value:a().any},xd.defaultProps={className:null,disabled:!1,isSelected:!1,placeholderText:null};var Id="SectionDivider-module_divider__Q9iWE";function Md(e){var{className:t}=e;return i.createElement("span",{"data-testid":"section-divider",className:Vl(Id,t)})}Md.propTypes={className:a().string},Md.defaultProps={className:""};var Sd="InlineDivider-module_divider__cPvSp";function Cd(e){var{className:t}=e;return i.createElement("span",{"data-testid":"divider",className:Vl(Sd,t)})}Cd.propTypes={className:a().string},Cd.defaultProps={className:""};var Nd={[I.SECTION]:Md,[I.INLINE]:Cd};function Td(e){var{type:t,className:n}=e,r=Nd[t];return r?i.createElement(r,{className:n}):(console.error("invalid Divider type value"),null)}Td.propTypes={type:a().oneOf(Object.values(I)),className:a().string},Td.defaultProps={type:I.INLINE,className:null};var Ld={wrapper:"TooltipWrapper-module_wrapper__nVHZr",tooltip:"TooltipWrapper-module_tooltip__4zsdH",content:"TooltipWrapper-module_content__dk1Y8",contentWithIcon:"TooltipWrapper-module_contentWithIcon__3vfN2",icon:"TooltipWrapper-module_icon__aof3i",wrapText:"TooltipWrapper-module_wrapText__wMLHW"};function Dd(e){var{children:t,content:n,"data-e2e":r,icon:o,position:a,wrapText:s}=e;return i.createElement(l.$,{"data-e2e":r,content:o?i.createElement("div",{className:Ld.contentWithIcon},i.createElement(o,{className:Ld.icon}),n):n,contentClass:Vl(Ld.content,{[Ld.wrapText]:s}),padding:8,position:a,tooltipClass:Ld.tooltip,wrapperClass:Ld.wrapper},t)}Dd.propTypes={children:a().oneOfType([a().element,a().node]).isRequired,content:a().string.isRequired,"data-e2e":a().string,icon:a().elementType,position:a().oneOf(Object.values(ad(ad({},k),R))),wrapText:a().bool},Dd.defaultProps={"data-e2e":"tooltip",wrapText:!1};var Od={wrapper:"IconButton-module_wrapper__JbByX",danger:"IconButton-module_danger__P9TDC",filled:"IconButton-module_filled__gNTEW",outline:"IconButton-module_outline__-0brc",default:"IconButton-module_default__-t8E9",disabled:"IconButton-module_disabled__dyx8y",monotoneBlack:"IconButton-module_monotoneBlack__EspsW",monotoneWhite:"IconButton-module_monotoneWhite__wfmlF",l:"IconButton-module_l__t2twD",s:"IconButton-module_s__U9rwY"};function kd(e){var{"aria-label":t,"data-e2e":n,buttonStyle:r,className:o,disabled:a,fillStyle:s,onClick:u,onFocus:l,onKeyDown:c,onKeyPress:d,onKeyUp:p,onMouseDown:f,href:h,icon:g,rel:m,role:v,size:_,tabIndex:A,target:y,tooltipContent:b,tooltipPosition:E,type:w}=e,x=Ul(h,y),I="button";return x&&(I="a"),i.createElement(Dd,{content:b,position:E},i.createElement(I,{"aria-disabled":a?"true":"false","aria-label":t||b,className:Vl(Od.wrapper,Od[r],Od[s],Od[_],o,{[Od.disabled]:a}),"data-e2e":n,href:h,onClick:u,onFocus:l,onKeyDown:c,onKeyPress:d,onKeyUp:p,onMouseDown:f,rel:x?m:null,role:v,tabIndex:A,target:y,type:x?null:w},i.createElement(g,{"data-e2e":"btn-icon"})))}kd.propTypes={"aria-label":a().string,"data-e2e":a().string,buttonStyle:a().oneOf(Object.values(v)),className:a().string,disabled:a().bool,fillStyle:a().oneOf(Object.values(m)),onClick:a().func,onFocus:a().func,onKeyDown:a().func,onKeyPress:a().func,onKeyUp:a().func,onMouseDown:a().func,href:a().string,icon:a().elementType.isRequired,rel:a().string,role:a().string,size:a().oneOf([D.L,D.S]),tabIndex:a().string,target:a().string,tooltipContent:a().string.isRequired,tooltipPosition:a().oneOf(Object.values(ad(ad({},k),R))),type:a().oneOf(Object.values(_))},kd.defaultProps={"aria-label":null,"data-e2e":null,buttonStyle:v.DEFAULT,disabled:!1,fillStyle:m.FILLED,onClick:yl,rel:null,role:"button",size:D.L,tooltipPosition:k.TOP,type:_.BUTTON};var Rd={wrapper:"InputError-module_wrapper__coUvQ",icon:"InputError-module_icon__6PjqM"};function jd(e){var{message:t,children:n,className:r}=e;return i.createElement("div",{className:Vl(Rd.wrapper,r),role:"alert"},t?i.createElement(i.Fragment,null,i.createElement(Uc,{className:Rd.icon}),i.createElement(l.TX,{text:s.Z.t("shared.common.forms.error")}),i.createElement("span",null,t)):n)}jd.propTypes={message:a().string,children:a().oneOfType([a().array,a().element,a().string]),className:a().string},jd.defaultProps={message:null,children:null};var Pd="LoadingSkeleton-module_loadingSkeleton__B-AyW";function Ud(e){var{className:t}=e;return i.createElement("div",{"aria-disabled":!0,"aria-label":"loading",className:Vl(Pd,t),"data-testid":"LoadingSkeleton"})}Ud.propTypes={className:a().string},Ud.defaultProps={className:null};var zd={paddle:"Paddle-module_paddle__pI-HD",backPaddleIcon:"Paddle-module_backPaddleIcon__i7tIf",forwardPaddleIcon:"Paddle-module_forwardPaddleIcon__JB329",hidden:"Paddle-module_hidden__0FNuU",l:"Paddle-module_l__7mnj5",s:"Paddle-module_s__CwZri"};function Bd(e){var{"data-e2e":t,["data-".concat(x.QUICKVIEW_CAROUSEL_PADDLE)]:n,className:r,direction:o,hidden:a,hiddenText:s,onClick:u,nodeRef:c,size:d}=e,p=o===L.BACK?zc:Bc,f={["data-".concat(x.QUICKVIEW_CAROUSEL_PADDLE)]:n};return i.createElement("button",ud({type:"button",className:Vl(zd.paddle,{[zd.hidden]:a},zd[d],r),"data-e2e":t,onClick:u,ref:c},f),i.createElement(p,{className:o===L.FORWARD?zd.forwardPaddleIcon:zd.backPaddleIcon}),s?i.createElement(l.TX,null,s):null)}Bd.propTypes={"data-e2e":a().string,"data-qcp":a().string,className:a().string,direction:a().oneOf([L.BACK,L.FORWARD]).isRequired,hidden:a().bool,hiddenText:a().string,onClick:a().func,nodeRef:a().oneOfType([a().func,a().shape({current:a().any})]),size:a().oneOf([D.L,D.S])},Bd.defaultProps={"data-qcp":null,hidden:!1,onClick:yl};var qd={wrapper:"PillButton-common-module_wrapper__erEZy",disabled:"PillButton-common-module_disabled__adXos",isSelected:"PillButton-common-module_isSelected__DEG00"},Fd={l:"FilterPillButton-module_l__q-TRm",s:"FilterPillButton-module_s__wEBB5"};function Zd(e){var{"data-e2e":t,className:n,disabled:r,hiddenText:o,href:a,isSelected:s,label:u,onClick:c,onFocus:d,onKeyDown:p,onKeyPress:f,onKeyUp:h,onMouseDown:g,role:m,size:v,target:_}=e,A="button";return Ul(a,_)&&(A="a"),i.createElement(A,{"aria-disabled":r?"true":"false",className:Vl(qd.wrapper,n,Fd[v],{[qd.disabled]:r,[qd.isSelected]:s}),"data-e2e":t,href:a,onClick:c,onFocus:d,onKeyDown:p,onKeyPress:f,onKeyUp:h,onMouseDown:g,role:m},u,o?i.createElement(l.TX,{text:o}):null)}Zd.propTypes={"data-e2e":a().string,className:a().string,disabled:a().bool,hiddenText:a().string,href:a().string,isSelected:a().bool,label:a().string.isRequired,onClick:a().func,onFocus:a().func,onKeyDown:a().func,onKeyPress:a().func,onKeyUp:a().func,onMouseDown:a().func,role:a().string,size:a().oneOf([D.L,D.S]),target:a().string},Zd.defaultProps={"data-e2e":null,disabled:!1,isSelected:!1};var Gd={wrapper:"PillSelect-module_wrapper__e-Ipq",default:"PillSelect-module_default__lby1A",icon:"PillSelect-module_icon__efBu9"};function Yd(e){var{"data-e2e":t,className:n,disabled:r,isSelected:o,label:a,onClick:s,role:u}=e;return i.createElement("button",{className:Vl(qd.wrapper,Gd.wrapper,n,{[qd.disabled]:r,[qd.isSelected]:o,[Gd.default]:!r&&!o}),"data-e2e":t,onClick:s,role:u,type:"button"},a,i.createElement(qc,{className:Gd.icon}))}Yd.propTypes={"data-e2e":a().string,className:a().string,disabled:a().bool,isSelected:a().bool,label:a().string.isRequired,onClick:a().func,role:a().string},Yd.defaultProps={"data-e2e":null,className:null,disabled:!1,isSelected:!1,onClick:yl,role:null};var Hd={wrapper:"UserNotificationTag-module_wrapper__Q3ytp",standard:"UserNotificationTag-module_standard__MID5M",numbered:"UserNotificationTag-module_numbered__aJZQu"};function Wd(e){var{className:t,num:n}=e,r=!!n;return i.createElement("span",{className:Vl(Hd.wrapper,t,{[Hd.standard]:!r,[Hd.numbered]:r}),"data-testid":"user-notification-tag"},r?n:null)}Wd.propTypes={className:a().string,num:a().number},Wd.defaultProps={className:null,num:null};var Vd="RefinePillButton-module_wrapper__bh30D",Qd="RefinePillButton-module_refineTag__VtDHm";function Kd(e){var{"data-e2e":t,tagNumber:n,className:r,disabled:o,hiddenText:a,href:u,isSelected:c,onClick:d,onFocus:p,onKeyDown:f,onKeyPress:h,onKeyUp:g,onMouseDown:m,role:v}=e,_="button";"undefined"!==typeof u&&(_="a");var A=n>0;return i.createElement(Dd,{content:s.Z.t("search.filters.filters"),position:"top"},i.createElement(_,{"aria-disabled":o?"true":"false",className:Vl(qd.wrapper,r,Vd,{[qd.disabled]:o,[qd.isSelected]:c}),"data-e2e":t,href:u,onClick:d,onFocus:p,onKeyDown:f,onKeyPress:h,onKeyUp:g,onMouseDown:m,role:v},i.createElement(Fc,null),a?i.createElement(l.TX,{text:a}):null,A?i.createElement(Wd,{className:Qd,num:n}):null))}Kd.propTypes={"data-e2e":a().string,tagNumber:a().number,className:a().string,disabled:a().bool,hiddenText:a().string,href:a().string,isSelected:a().bool,onClick:a().func,onFocus:a().func,onKeyDown:a().func,onKeyPress:a().func,onKeyUp:a().func,onMouseDown:a().func,role:a().string},Kd.defaultProps={"data-e2e":null,disabled:!1,isSelected:!1};var Xd={wrapper:"PillLabel-module_wrapper__g6O6m",success:"PillLabel-module_success__O-Yhv",notice:"PillLabel-module_notice__TRKT7",info:"PillLabel-module_info__LlhcX",error:"PillLabel-module_error__Cexj1",text:"PillLabel-module_text__oMeQS",icon:"PillLabel-module_icon__bVNMa"};function $d(e){var{className:t,"data-e2e":n,icon:r,text:o,type:a}=e;return i.createElement("span",{className:Vl(Xd.wrapper,t,{[Xd.info]:a===M.INFO,[Xd.success]:a===M.SUCCESS}),"data-testid":"pill-label","data-e2e":n},r?i.createElement(r,{className:Xd.icon}):null,i.createElement("p",{className:Xd.text},o))}$d.propTypes={className:a().string,"data-e2e":a().string,icon:a().elementType,text:a().string.isRequired,type:a().oneOf(Object.values(M))},$d.defaultProps={className:null,"data-e2e":null,icon:null,type:M.DEFAULT};var Jd={wrapper:"PrimaryButton-module_wrapper__rm4pX",content:"PrimaryButton-module_content__mhVlt",danger:"PrimaryButton-module_danger__2SEVz",default:"PrimaryButton-module_default__Bd6o3",disabled:"PrimaryButton-module_disabled__NAaPh",icon:"PrimaryButton-module_icon__6DiI0",leftAlignedText:"PrimaryButton-module_leftAlignedText__IrP1G",monotoneBlack:"PrimaryButton-module_monotoneBlack__tYCwi",monotoneWhite:"PrimaryButton-module_monotoneWhite__Jah4R",l:"PrimaryButton-module_l__V8Byb",s:"PrimaryButton-module_s__8jzng"};function ep(e){var{"data-e2e":t,buttonStyle:n,children:r,className:o,disabled:a,onClick:s,onFocus:u,onKeyDown:l,onKeyPress:c,onKeyUp:d,onMouseDown:p,href:f,icon:h,rel:g,role:m,size:v,tabIndex:_,target:A,type:y}=e,b=Ul(f,A),E="button";return b&&(E="a"),i.createElement(E,{"aria-disabled":a?"true":"false",className:Vl(Jd.wrapper,Jd[n],Jd[v],o,{[Jd.disabled]:a}),"data-e2e":t,href:f,onClick:s,onFocus:u,onKeyDown:l,onKeyPress:c,onKeyUp:d,onMouseDown:p,rel:b?g:null,role:m,tabIndex:_,target:A,type:b?null:y},i.createElement("div",{className:Jd.content},h?i.createElement(h,{"data-e2e":"btn-icon",className:Jd.icon}):null,i.createElement("div",{className:Vl({[Jd.leftAlignedText]:Boolean(h)})},r)))}ep.propTypes={"data-e2e":a().string,buttonStyle:a().oneOf(Object.values(v)),children:a().oneOfType([a().array,a().element,a().string]).isRequired,className:a().string,disabled:a().bool,onClick:a().func,onFocus:a().func,onKeyDown:a().func,onKeyPress:a().func,onKeyUp:a().func,onMouseDown:a().func,href:a().string,icon:a().elementType,rel:a().string,role:a().string,size:a().oneOf([D.L,D.S]),tabIndex:a().string,target:a().string,type:a().oneOf(Object.values(_))},ep.defaultProps={"data-e2e":null,buttonStyle:v.DEFAULT,disabled:!1,rel:null,size:D.L,type:_.BUTTON};var tp={wrapper:"PrimaryFunctionButton-module_wrapper__c70e3",default:"PrimaryFunctionButton-module_default__fux4y",disabled:"PrimaryFunctionButton-module_disabled__fiN-U",filled:"PrimaryFunctionButton-module_filled__l0C4X",l:"PrimaryFunctionButton-module_l__QlRLS",s:"PrimaryFunctionButton-module_s__F-RjW"};function np(e){var{"data-e2e":t,disabled:n,onClick:r,onFocus:o,onKeyDown:a,onKeyPress:s,onKeyUp:u,onMouseDown:c,hiddenText:d,href:p,icon:f,isSelected:h,rel:g,role:m,size:v,target:_,tooltipContent:A,type:y}=e,b=Ul(p,_),E="button";b&&(E="a");var w=i.createElement(E,{"aria-disabled":n?"true":"false",className:Vl(tp.wrapper,{[tp.default]:!n,[tp.disabled]:n},tp[v]),"data-e2e":t,href:p,onClick:r,onFocus:o,onKeyDown:a,onKeyPress:s,onKeyUp:u,onMouseDown:c,rel:b?g:null,role:m,target:_,type:b?null:y},i.createElement(f,{className:Vl({[tp.filled]:h})}),d?i.createElement(l.TX,{text:d}):null);return A?i.createElement(Dd,{content:A},w):w}np.propTypes={"data-e2e":a().string,disabled:a().bool,onClick:a().func,onFocus:a().func,onKeyDown:a().func,onKeyPress:a().func,onKeyUp:a().func,onMouseDown:a().func,hiddenText:a().string,href:a().string,icon:a().elementType.isRequired,isSelected:a().bool,rel:a().string,role:a().string,size:a().oneOf([D.L,D.S]),target:a().string,tooltipContent:a().string,type:a().oneOf(Object.values(_))},np.defaultProps={"data-e2e":null,disabled:!1,onClick:yl,isSelected:!1,rel:null,role:"button",size:D.L,type:_.BUTTON};var rp={wrapper:"ProgressBar-module_wrapper__3irW7",filledBar:"ProgressBar-module_filledBar__HXoVj"},ip=0,op=100,ap=e=>{switch(e){case w.AUDIOBOOK:case w.SUMMARY_CANONICAL:return s.Z.t("shared.common.progress.listened");default:return s.Z.t("shared.common.progress.read")}};function sp(e){var{className:t,contentType:n,documentId:r,percentCompleted:o}=e,a="".concat(Math.round(o),"% ").concat(ap(n));return i.createElement("div",{"aria-labelledby":r,"aria-valuenow":o,"aria-valuemin":ip,"aria-valuemax":op,className:Vl(rp.wrapper,t),role:"progressbar"},i.createElement("div",{className:rp.filledBar,style:{width:"".concat(o,"%")}}),i.createElement(l.TX,null,a))}sp.propTypes={className:a().string,contentType:a().oneOf(Object.values(w)),documentId:a().number.isRequired,percentCompleted:(e,t,n)=>{var r=e[t];if(rop)return new Error("Invalid prop ".concat(t," supplied to ").concat(n,". ").concat(t," must be valued between 0 -> 100"))}},sp.defaultProps={className:null,percentCompleted:0};var up="RadioInput-module_iconWrapper__IlivP",lp="RadioInput-module_icon__IkR8D",cp="RadioInput-module_disabled__jzye-",dp="RadioInput-module_keyboardFocus__IoQmQ",pp="RadioInput-module_selected__Vzh4F",fp="RadioInput-module_label__DJxNW",hp="RadioInput-module_labelText__V8GCv";function gp(e){var{"aria-describedby":t,"aria-labelledby":n,className:r,"data-e2e":o,disabled:a,id:s,labelText:c,name:d,onChange:p,selected:f,value:h}=e,[g,m]=(0,i.useState)(!1),v=(0,u.v9)((e=>e.viewport.isKeyboardUser)),_=f?Zc:Gc;return i.createElement("div",{className:r,"data-e2e":o},i.createElement("label",{className:fp},i.createElement(l.TX,null,i.createElement("input",{"aria-describedby":t,"aria-labelledby":n,checked:f,disabled:a,id:s||Fl(d),name:d,onBlur:e=>{e.preventDefault(),v&&m(!1)},onChange:p,onFocus:e=>{e.preventDefault(),v&&m(!0)},onKeyPress:e=>{e.which===zl.enter&&p(e)},type:"radio",value:h})),i.createElement("div",{className:Vl(up,{[cp]:a,[dp]:g,[pp]:f}),"data-testid":"radio-icon"},i.createElement(_,{className:lp})),c?i.createElement("span",{className:Vl(hp,{[cp]:a,[pp]:f}),"data-testid":"label-text-".concat(c)},c):null))}gp.propTypes={"aria-describedby":a().string,"aria-labelledby":a().string,"data-e2e":a().string,className:a().string,disabled:a().bool,id:a().string,labelText:a().string,onChange:a().func.isRequired,name:a().string,selected:a().bool,value:a().string},gp.defaultProps={"aria-describedby":null,"aria-labelledby":null,"data-e2e":null,className:"",disabled:!1,id:"",labelText:"",name:"",selected:!1,value:""};var mp={mediumStar:"Stars-module_mediumStar__qkMgK",minimizedEmptyStar:"Stars-module_minimizedEmptyStar__2wkIk",smallStar:"Stars-module_smallStar__n-pKR",starIcon:"Stars-module_starIcon__JzBh8",tinyStar:"Stars-module_tinyStar__U9VZS"},vp=e=>[...Array(e).keys()];function _p(e){var{className:t,filledIcon:n,emptyIcon:r,halfIcon:o,rating:a,roundedRating:s,style:u}=e,l=Math.floor(s),c=s%1!==0,d=b-Math.ceil(s);return u===E.MINIMIZED?0===a?i.createElement(r,{className:mp.minimizedEmptyStar}):i.createElement(n,null):i.createElement(i.Fragment,null,vp(l).map((e=>i.createElement(n,{key:e,className:Vl(mp.starIcon,t)}))),c?i.createElement(o,{className:Vl(mp.starIcon,t)}):null,vp(d).map((e=>i.createElement(r,{key:e,className:Vl(mp.starIcon,t)}))))}function Ap(e){return i.createElement(_p,ud({},e,{className:mp.mediumStar,emptyIcon:Yc,filledIcon:Vc,halfIcon:Xc}))}function yp(e){return i.createElement(_p,ud({},e,{className:mp.smallStar,emptyIcon:Hc,filledIcon:Qc,halfIcon:$c}))}function bp(e){return i.createElement(_p,ud({},e,{className:mp.tinyStar,emptyIcon:Wc,filledIcon:Kc,halfIcon:Jc}))}_p.propTypes={className:a().string.isRequired,filledIcon:a().elementType,emptyIcon:a().elementType,halfIcon:a().elementType,rating:a().number.isRequired,roundedRating:a().number.isRequired,style:a().string.isRequired},_p.defaultProps={filledIcon:Qc,emptyIcon:Hc,halfIcon:$c},Ap.propTypes={rating:a().number.isRequired,roundedRating:a().number.isRequired,style:a().string.isRequired},yp.propTypes={rating:a().number.isRequired,roundedRating:a().number.isRequired,style:a().string.isRequired},bp.propTypes={rating:a().number.isRequired,roundedRating:a().number.isRequired,style:a().string.isRequired};var Ep={inlineJumboTextNonResponsive:"StaticContentRating-module_inlineJumboTextNonResponsive__v4wOJ",inlineText:"StaticContentRating-module_inlineText__Q8Reg",inlineTextNonResponsive:"StaticContentRating-module_inlineTextNonResponsive__u7XjF",minimized:"StaticContentRating-module_minimized__tLIvr",isInlineWrapper:"StaticContentRating-module_isInlineWrapper__vGb-j",stacked:"StaticContentRating-module_stacked__2biy-",stars:"StaticContentRating-module_stars__V7TE3",textLabel:"StaticContentRating-module_textLabel__SP3dY",textLabelJumbo:"StaticContentRating-module_textLabelJumbo__7981-",textLabelJumboZero:"StaticContentRating-module_textLabelJumboZero__oq4Hc",textLabelStacked:"StaticContentRating-module_textLabelStacked__Q9nJB"},{DEFAULT:wp,DEFAULT_NON_RESPONSIVE:xp,INLINE_JUMBO_TEXT_NON_RESPONSIVE:Ip,INLINE_TEXT_NON_RESPONSIVE:Mp,MINIMIZED:Sp,STACKED:Cp}=E,Np=[wp,xp],Tp=[{breakpointHideProps:{above:!0,key:"tiny",size:D.S},component:bp},{breakpointHideProps:{atAndBelow:!0,key:"small",size:D.S},component:yp}],Lp=e=>{var{children:t,style:n}=e;switch(n){case Ip:return t(Ap);case xp:case Mp:return t(yp);default:return Tp.map((e=>{var{breakpointHideProps:n,component:r}=e;return i.createElement(Ql,ud({},n,{key:n.key}),t(r))}))}};function Dp(e){var{className:t,colorClassName:n,"data-e2e":r,isInlineWrapper:o,labelClassName:a,nodeRef:u,rating:c,style:d,totalRatings:p}=e,f=p&&d!==Sp&&d!==Ip,h=Np.includes(d),g=function(e){if(!e||e<0)return 0;var t=.5*Math.round(2*e),n=Math.max(1,t);return Math.min(n,b)}(c),m="".concat(g,"/").concat(b);return 0===c&&(m=s.Z.t("doc_page.ratings.no_ratings")),f&&(m+=" - ".concat(p.toLocaleString()," ").concat(s.Z.t("shared.star_ratings.ratings",{count:p}))),i.createElement("div",{className:Vl(Ep[d],{[Ep.isInlineWrapper]:o},t),"data-e2e":r,ref:u},i.createElement(Lp,{style:d},(e=>i.createElement("div",{className:Vl(Ep.stars,n)},i.createElement(e,{rating:c,roundedRating:g,style:d})))),i.createElement(l.TX,null,s.Z.t("shared.star_ratings.rating_rating_to_display_out_of_5_stars",{ratingToDisplay:c})),h?null:i.createElement("div",{className:Vl(Ep.textLabel,{[Ep.textLabelStacked]:d===Cp,[Ep.textLabelJumbo]:d===Ip,[Ep.textLabelJumboZero]:d===Ip&&0===c},n,a)},m))}Lp.propTypes={children:a().func.isRequired,style:a().oneOf(Object.values(E)).isRequired},Dp.propTypes={className:a().string,colorClassName:a().string,"data-e2e":a().string,isInlineWrapper:a().bool,labelClassName:a().string,rating:a().number.isRequired,nodeRef:a().oneOfType([a().func,a().shape({current:a().any})]),style:a().string,totalRatings:a().number},Dp.defaultProps={className:"",colorClassName:"","data-e2e":null,labelClassName:"",isInlineWrapper:!1,style:wp,totalRatings:null};var Op="Textarea-module_wrapper__C-rOy",kp="Textarea-module_textarea__jIye0",Rp="TextFields-common-module_label__dAzAB",jp="TextFields-common-module_helperText__0P19i",Pp="TextFields-common-module_textfield__UmkWO",Up="TextFields-common-module_error__YN6Z8",zp="TextFields-common-module_textfieldWrapper__I1B5S",Bp="TextFields-common-module_disabled__NuS-J";function qp(e){var{className:t,"data-e2e":n,disabled:r,hasError:o,onKeyDown:a,helperText:s,id:u,label:l,maxLength:c,name:d,nodeRef:p,onChange:f,onFocus:h,placeholder:g,value:m}=e,v=u||Fl("textarea"),_=Fl("helperText");return i.createElement("div",{className:Vl(Op,t),"data-e2e":n},l?i.createElement("label",{className:Vl(Rp,{[Bp]:r}),htmlFor:v},l):null,s?i.createElement("p",{className:Vl(jp,{[Bp]:r}),id:_},s):null,i.createElement("textarea",{"aria-describedby":_,className:Vl(Pp,zp,kp,{[Up]:o,[Bp]:r}),disabled:r,id:v,name:d,maxLength:c,onChange:f,onKeyDown:a,placeholder:g,onFocus:h,ref:p,value:m}))}qp.propTypes={className:a().string,"data-e2e":a().string,disabled:a().bool,hasError:a().bool,helperText:a().string,id:a().string,label:a().string,maxLength:a().number,name:a().string.isRequired,nodeRef:a().oneOfType([a().func,a().shape({current:a().any})]),onChange:a().func,onFocus:a().func,onKeyDown:a().func,placeholder:a().string,value:a().string},qp.defaultProp={className:null,"data-e2e":null,disabled:!1,hasError:!1,helperText:null,id:null,label:null,maxLength:null,nodeRef:null,onChange:null,onFocus:null,onKeyDown:null,placeholder:null,required:!1,value:""};class Fp{constructor(e,t,n){this.pattern=e,this.placeholder=t,this.definitions=n,this.value=""}_addCharacter(e){if(!this._validateCharacter(e))return"";for(var t=e,n="",r=this.value.length+1,i=this.pattern.length-1;r{var{inputMask:t,onChange:n,value:r}=this.props;if(!t)return n(e);e.preventDefault();var i=ad({},e),o=i.target.value;if(o.length{this.toggle_focus(),this.props.onFocus(e)})),sd(this,"handleBlur",(e=>{this.toggle_focus(),this.props.onBlur(e)})),this.state={focus:!1},e.inputMask){var{pattern:t,placeholder:n}=e.inputMask;this.inputMask=new Fp(t,n,e.inputMaskDefinitions,this.set_value)}}componentDidUpdate(e){var t=!e.inputMask&&this.props.inputMask,n=e.inputMask&&this.props.inputMask&&e.inputMask.pattern!==this.props.inputMask.pattern;if(t||n){var{pattern:r,placeholder:i}=this.props.inputMask;this.inputMask=new Fp(r,i,this.props.inputMaskDefinitions)}else this.props.inputMask||(this.inputMask=null)}toggle_focus(){this.setState({focus:!this.state.focus})}renderInputMask(){var{inputMask:e,value:t}=this.props;if(e&&this.state.focus){var n=e.placeholder.substr(t.length);return i.createElement("div",{className:"input_mask","aria-hidden":"true"},i.createElement("i",null,t),n)}}render(){var{"data-e2e":e,afterInputChildren:t,className:n,disabled:r,hasError:o,helperText:a,id:s,inputChildren:u,inputWrapperClass:l,inputMask:c,inputRef:d,label:p,maxLength:f,name:h,onKeyDown:g,onKeyUp:m,placeholder:v,type:_,value:A}=this.props,y=s||Fl(h),b=Fl("helperText");return i.createElement("div",{className:Vl(Zp,n)},p?i.createElement("label",{className:Vl(Rp,{[Bp]:r}),htmlFor:y},p):null,a?i.createElement("p",{className:Vl(jp,{[Bp]:r}),id:b},a):null,i.createElement("div",{className:Vl(zp,l)},u,i.createElement("input",{"aria-describedby":b,className:Vl(Pp,Gp,{[Up]:o,[Bp]:r,has_input_mask:c}),"data-e2e":e,disabled:r,id:y,maxLength:f,name:h,onBlur:this.handleBlur,onChange:this.handleChange,onFocus:this.handleFocus,onKeyDown:g,onKeyUp:m,placeholder:v,ref:d,type:_,value:A}),t,this.renderInputMask()))}}Yp.propTypes={"data-e2e":a().string,afterInputChildren:a().any,className:a().string,disabled:a().bool,hasError:a().bool,helperText:a().string,id:a().string,inputChildren:a().any,inputWrapperClass:a().string,inputMask:a().shape({pattern:a().string.isRequired,placeholder:a().string.isRequired}),inputMaskDefinitions:a().object,inputRef:a().oneOfType([a().func,a().shape({current:a().any})]),label:a().string,maxLength:a().number,name:a().string.isRequired,onBlur:a().func,onChange:a().func,onFocus:a().func,onKeyDown:a().func,onKeyUp:a().func,placeholder:a().string,required:a().bool,type:a().string,value:a().string},Yp.defaultProps={"data-e2e":null,className:"",disabled:!1,hasError:!1,helperText:"",inputWrapperClass:"",inputMaskDefinitions:{"*":".","#":"[0-9]",A:"[a-zA-Z]",X:"[a-zA-Z0-9]"},inputRef:null,label:"",onBlur:yl,onChange:yl,onFocus:yl,required:!1,type:"text",value:void 0};var Hp={wrapper:"TextActionButton-module_wrapper__MRKz8",disabled:"TextActionButton-module_disabled__Yz0rr",content:"TextActionButton-module_content__yzrRI",label:"TextActionButton-module_label__EHSZC",horizontalIcon:"TextActionButton-module_horizontalIcon__Rnj99",vertical:"TextActionButton-module_vertical__hkdPU",verticalIcon:"TextActionButton-module_verticalIcon__aQR5J"};function Wp(e){var{"aria-label":t,"data-e2e":n,buttonStyle:r,children:o,className:a,disabled:s,href:u,iconClassName:l,iconDefault:c,iconSelected:d,isSelected:p,nodeRef:f,onBlur:h,onClick:g,onFocus:m,onKeyDown:v,onKeyPress:_,onKeyUp:A,onMouseDown:y,onMouseEnter:b,onMouseLeave:E,onMouseOut:w,onMouseOver:x,rel:I,role:M,tabIndex:S,target:C,type:N}=e,T=Ul(u,C),L="button";T&&(L="a");var D=p?d:c;return i.createElement(L,{"aria-disabled":s?"true":"false","aria-label":t,className:Vl(Hp.wrapper,a,{[Hp.disabled]:s}),"data-e2e":n,href:u,onBlur:h,onClick:g,onFocus:m,onKeyDown:v,onKeyPress:_,onKeyUp:A,onMouseDown:y,onMouseEnter:b,onMouseLeave:E,onMouseOut:w,onMouseOver:x,ref:f,rel:T?I:null,role:M,tabIndex:S,target:C,type:T?null:N},i.createElement("div",{className:Vl(Hp.content,Hp[r])},i.createElement("div",null,i.createElement(D,{className:Vl(Hp["".concat(r,"Icon")],l),"data-e2e":"btn-icon"})),i.createElement("div",{className:Hp.label},o)))}function Vp(){return i.createElement("svg",{width:"82",height:"82",viewBox:"0 0 82 82",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M41 11.7093V0L24.2569 8.864C21.638 10.2505 20 12.971 20 15.9343V40.3773C17.877 38.4772 15.0734 37.3218 12 37.3218C5.37258 37.3218 0 42.6944 0 49.3218C0 55.9492 5.37258 61.3218 12 61.3218C18.6274 61.3218 24 55.9492 24 49.3218C24 49.3218 24 49.3218 24 49.3218V25.526L36.7431 18.7796C39.362 17.3931 41 14.6726 41 11.7093ZM20 49.3218C20 44.9035 16.4183 41.3218 12 41.3218C7.58172 41.3218 4 44.9035 4 49.3218C4 53.7401 7.58172 57.3218 12 57.3218C16.4183 57.3218 20 53.7401 20 49.3218C20 49.3218 20 49.3218 20 49.3218ZM34.8716 15.2445L24 21V15.9343C24 14.4527 24.819 13.0924 26.1284 12.3991L37 6.64362V11.7093C37 13.191 36.181 14.5512 34.8716 15.2445ZM82 11.3218H49V15.3218H78V71.3218C78 74.6355 75.3137 77.3218 72 77.3218H18V68.3218H14V81.3218H72C77.5228 81.3218 82 76.8446 82 71.3218V11.3218ZM34 37.3218H66V33.3218H34V37.3218ZM66 49.3218H34V45.3218H66V49.3218ZM34 61.3218H66V57.3218H34V61.3218Z",fill:"currentColor",role:"img"}))}Wp.propTypes={"aria-label":a().string,"data-e2e":a().string,buttonStyle:a().oneOf(Object.values(A)),children:a().oneOfType([a().array,a().element,a().string]).isRequired,className:a().string,disabled:a().bool,href:a().string,iconClassName:a().string,iconDefault:a().elementType.isRequired,iconSelected:a().elementType.isRequired,isSelected:a().bool,nodeRef:a().oneOfType([a().func,a().shape({current:a().any})]),onBlur:a().func,onClick:a().func.isRequired,onFocus:a().func,onKeyDown:a().func,onKeyPress:a().func,onKeyUp:a().func,onMouseDown:a().func,onMouseEnter:a().func,onMouseLeave:a().func,onMouseOut:a().func,onMouseOver:a().func,rel:a().string,role:a().string,tabIndex:a().string,target:a().string,type:a().oneOf(Object.values(_))},Wp.defaultProps={"data-e2e":null,buttonStyle:A.HORIZONTAL,className:"",disabled:!1,iconClassName:"",rel:null,type:_.BUTTON};var Qp=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=r?e:Qp(e,t,n)},Xp=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var $p=function(e){return Xp.test(e)};var Jp=function(e){return e.split("")},ef="\\ud800-\\udfff",tf="["+ef+"]",nf="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",rf="\\ud83c[\\udffb-\\udfff]",of="[^"+ef+"]",af="(?:\\ud83c[\\udde6-\\uddff]){2}",sf="[\\ud800-\\udbff][\\udc00-\\udfff]",uf="(?:"+nf+"|"+rf+")"+"?",lf="[\\ufe0e\\ufe0f]?",cf=lf+uf+("(?:\\u200d(?:"+[of,af,sf].join("|")+")"+lf+uf+")*"),df="(?:"+[of+nf+"?",nf,af,sf,tf].join("|")+")",pf=RegExp(rf+"(?="+rf+")|"+df+cf,"g");var ff=Jp,hf=$p,gf=function(e){return e.match(pf)||[]};var mf=Kp,vf=$p,_f=function(e){return hf(e)?gf(e):ff(e)},Af=hl;var yf=function(e){return function(t){t=Af(t);var n=vf(t)?_f(t):void 0,r=n?n[0]:t.charAt(0),i=n?mf(n,1).join(""):t.slice(1);return r[e]()+i}}("toUpperCase"),bf=hl,Ef=yf;var wf=function(e){return Ef(bf(e).toLowerCase())};var xf=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++is.Z.t("content_preview.flags.expiring_soon"),[C]:()=>s.Z.t("content_preview.flags.geo_restricted"),[N]:()=>s.Z.t("content_preview.flags.not_available"),[T]:()=>s.Z.t("content_preview.flags.throttled")};function hh(e){var t,{restrictionType:n}=e;return fh[n]&&(t=fh[n]()),t?i.createElement("div",{className:Vl(ph.wrapper),"data-e2e":"thumbnail-flag"},i.createElement("div",{className:Vl(ph.label,ph[dh(n)])},t),i.createElement("div",{className:ph.overlay})):null}hh.propTypes={restrictionType:a().string.isRequired};var gh={wrapper:"Thumbnail-module_wrapper__AXFw8",l:"Thumbnail-module_l__Hr-NO",m:"Thumbnail-module_m__TsenF",s:"Thumbnail-module_s__ZU-6p",xs:"Thumbnail-module_xs__SewOx",audiobook:"Thumbnail-module_audiobook__tYkdB",border:"Thumbnail-module_border__4BHfJ",audiobookBanner:"Thumbnail-module_audiobookBanner__73cx-",podcastBanner:"Thumbnail-module_podcastBanner__5VHw5",audiobookContentCell:"Thumbnail-module_audiobookContentCell__BQWu2",banner:"Thumbnail-module_banner__-KfxZ",book:"Thumbnail-module_book__3zqPC",bookContentCell:"Thumbnail-module_bookContentCell__mRa--",bookBanner:"Thumbnail-module_bookBanner__93Mio",documentContentCell:"Thumbnail-module_documentContentCell__1duEC",image:"Thumbnail-module_image__CtmZD",magazineContentCell:"Thumbnail-module_magazineContentCell__mIIV9",podcast:"Thumbnail-module_podcast__TtSOz",podcastContentCell:"Thumbnail-module_podcastContentCell__TzsPW",podcastEpisodeContentCell:"Thumbnail-module_podcastEpisodeContentCell__KeNTo",shadow:"Thumbnail-module_shadow__GG08O",sheetMusicContentCell:"Thumbnail-module_sheetMusicContentCell__PpcTY",sheetMusicChapterContentCell:"Thumbnail-module_sheetMusicChapterContentCell__crpcZ",snapshotContentCell:"Thumbnail-module_snapshotContentCell__02pNm"};function mh(e){var{alt:t,"aria-label":n,className:r,"data-e2e":o,imageUrl:a,onClickHandler:s,restrictionType:u,retinaImageUrl:c,size:d,thumbnailStyle:p,thumbnailType:f}=e,h=f===O.SHEET_MUSIC_CHAPTER_CONTENT_CELL,g=u?i.createElement(hh,{restrictionType:u}):null;return i.createElement("div",{className:Vl(gh.wrapper,gh[d],gh[p],gh[f],r),onClick:s},g,h?i.createElement(Vp,null):i.createElement(l.wY,{altText:t,"aria-label":n||f,imageStyles:gh.image,"data-e2e":o,src:a,srcSet:c}))}mh.propTypes={alt:a().string,"aria-label":a().string,className:a().string,"data-e2e":a().string,imageUrl:a().string.isRequired,onClickHandler:a().func,restrictionType:a().string,retinaImageUrl:a().string,size:a().oneOf([D.L,D.M,D.S,D.XS]),thumbnailStyle:a().oneOf(Object.values({BANNER:"banner",BORDER:"border",SHADOW:"shadow"})).isRequired,thumbnailType:a().oneOf(Object.values(O)).isRequired},mh.defaultProps={alt:null,"aria-label":null,className:"","data-e2e":null,onClickHandler:yl,restrictionType:"",retinaImageUrl:null,size:D.L};var vh="ToggleSwitch-module_label__xvu9G",_h="ToggleSwitch-module_handle__ecC07",Ah="ToggleSwitch-module_keyboardFocus__Zcatv",yh="ToggleSwitch-module_track__VMCyO",bh="ToggleSwitch-module_checkbox__rr1BU";function Eh(e){var{"aria-describedby":t,"aria-labelledby":n,className:r,"data-e2e":o,disabled:a,id:s,name:l,onChange:c,selected:d}=e,[p,f]=(0,i.useState)(!1),h=(0,u.v9)((e=>e.viewport.isKeyboardUser));return i.createElement("div",{className:r,"data-testid":o},i.createElement("label",{className:Vl(vh,{[Ah]:p}),"data-testid":"switch-label"},i.createElement("input",{"aria-describedby":t,"aria-labelledby":n,className:bh,disabled:a,id:s||Fl(l),name:l,type:"checkbox",role:"switch",checked:d,onFocus:()=>{h&&f(!0)},onBlur:()=>{h&&f(!1)},onChange:c,onKeyPress:e=>{e.which===zl.enter&&c(e)}}),i.createElement("span",{className:yh},i.createElement("span",{className:_h}))))}Eh.propTypes={"aria-describedby":a().string,"aria-labelledby":a().string,className:a().string,disabled:a().bool,"data-e2e":a().string,id:a().string,name:a().string,selected:a().bool.isRequired,onChange:a().func.isRequired},Eh.defaultProps={"aria-describedby":null,"aria-labelledby":null,"data-e2e":null,className:"",disabled:!1,id:"",name:""}},9569:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7294),i=n(7903),o=n(1320);function a(e){(0,i.v9)((e=>e.static.config.hotjar.enabled))&&(0,r.useEffect)((()=>{(0,o.Fp)(e)}),[])}},5903:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7294),i=n(7903),o=n(7129);function a(e){return{type:o.Z.SET_KEYBOARD_USER,isKeyboardUser:e}}function s(){const e=(0,i.I0)(),t=(0,i.v9)((e=>e.viewport.isKeyboardUser)),n=t=>{0===t.clientX&&0===t.clientY||0!==t.detail&&(e(a(!1)),document.removeEventListener("click",n))},o=t=>{"Tab"===t.key&&(e(a(!0)),document.addEventListener("click",n))};return(0,r.useEffect)((()=>(document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o),document.removeEventListener("click",n)})),[]),(0,r.useEffect)((()=>{t?document.body.classList.add("keyboard_focus"):document.body.classList.remove("keyboard_focus")}),[t]),t}},1863:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(7294),i=n(7903),o=n(6002),a=n(9557),s=n(6940);const u=e=>{const t=(0,i.I0)();(0,r.useEffect)((()=>{const n=new URLSearchParams(e).get("language_settings_changed");n&&t((0,a.Z)({content:o.Z.t("shared.common.preferred_language_set_to_language",{language:n}),flashType:s.Se.SUCCESS}))}),[])}},4408:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7294),i=n(7903),o=n(39);const a=e=>{const t=(0,i.I0)();(0,r.useEffect)((()=>{"1"===new URLSearchParams(e).get("show_lock_shock_roadblock_modal")&&t((0,o.Z)())}),[])}},4349:(e,t,n)=>{"use strict";n.d(t,{ao:()=>r,iy:()=>i,vQ:()=>o});const r="scribd.com",i=/[?=&|\+].*/,o="/search"},7162:(e,t,n)=>{"use strict";n.d(t,{WQ:()=>a});var r=n(7294),i=n(7267),o=n(4349);const a=()=>{const{pathname:e,search:t=""}=(0,i.TH)(),n=(0,r.useCallback)((()=>function(e,t){return e===o.vQ&&t.includes(o.ao)}(e,t)?function(e){const[,t]=decodeURIComponent(e).split(o.ao);return t?t.replace(o.iy,""):""}(t):e),[e,t]);return n()}},9335:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7294),i=n(1320);const o=(e,t,n)=>"function"===typeof e[t]?n=>e[t].bind(e)("change",n):"function"===typeof e[n]?e[n].bind(e):i.ZT,a=e=>({addMediaListener:o(e,"addEventListener","addListener"),removeMediaListener:o(e,"removeEventListener","removeListener")}),s=(e=!1)=>{const[t,n]=(0,r.useState)(e),i=e=>n(e.target.matches);return(0,r.useEffect)((()=>{const e=window.matchMedia("(prefers-reduced-motion: reduce)");if(e){const{addMediaListener:t,removeMediaListener:r}=a(e);return n(e.matches),t(i),()=>r(i)}}),[]),t}},7280:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(7294),i=n(7903),o=n(2436),a=n.n(o),s=n(7129);const u=()=>{const e=(0,i.I0)(),t=a()((()=>{return e((t=window.innerWidth,{type:s.Z.SET_WIDTH,width:t}));var t}),50);(0,r.useEffect)((()=>(t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)})),[])}},1783:(e,t,n)=>{"use strict";n.d(t,{AUm:()=>lt,CM7:()=>st,Cr7:()=>pt,DOR:()=>xe,DWW:()=>_t,EEu:()=>Ue,Eb$:()=>At,EjQ:()=>qe,GTk:()=>Ze,GtZ:()=>dt,Gwe:()=>Ce,I4V:()=>ze,JUF:()=>Be,Je$:()=>Se,Jf2:()=>He,JrY:()=>Oe,K7V:()=>yt,L$g:()=>De,LXC:()=>gt,Lm:()=>ot,PcV:()=>Pe,SJG:()=>Ie,SQ0:()=>Ve,TVG:()=>Et,TwY:()=>ct,U2u:()=>nt,US3:()=>et,UZ:()=>Re,VI_:()=>ht,VNp:()=>Te,VqY:()=>wt,VwZ:()=>vt,WKh:()=>tt,Yke:()=>Xe,ZzW:()=>it,_Yc:()=>We,bpM:()=>ke,cwU:()=>ut,d2V:()=>Fe,gqx:()=>bt,kJO:()=>Ne,lSD:()=>Je,mcj:()=>Me,pJo:()=>rt,pO:()=>Le,qPX:()=>mt,rUS:()=>Qe,s1S:()=>Ge,sAK:()=>$e,uiq:()=>Ye,v2r:()=>Ke,x8P:()=>je,xez:()=>ft,zWh:()=>at});var r=n(7294);function i(){return i=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,y);return(0,r.createElement)(i,A({ref:t,style:A({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},a)},s))}));var E="SvgIcon-module_wrapper__1fPqw",w="SvgIcon-module_icon__sUHUn";function x(e){var{"data-e2e":t,alt:n,className:i,icon:o,nodeRef:a}=e;return r.createElement("span",{className:v(E,i),"data-e2e":t,ref:a},r.createElement(o,{role:"img","aria-hidden":"true",className:w}),n?r.createElement(b,null,n):null)}function I(e){return r.createElement("svg",i({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 21a9 9 0 100-18 9 9 0 000 18zm0 2c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11zm1-16.416v7.688h-2V6.583h2zm-1 11.572c.552 0 1-.43 1-.961 0-.531-.448-.962-1-.962s-1 .43-1 .962c0 .53.448.96 1 .96z",fill:"currentColor"}))}function M(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("circle",{cx:8,cy:8,r:7,stroke:"currentColor",strokeWidth:2}),r.createElement("path",{d:"M7 4h2v5H7V4z",fill:"currentColor"}),r.createElement("rect",{x:7,y:10,width:2,height:2,rx:1,fill:"currentColor"}))}function S(e){return r.createElement("svg",i({width:8,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M7.41 1.41L6 0 0 6l6 6 1.41-1.41L2.83 6l4.58-4.59z",fill:"currentColor"}))}function C(e){return r.createElement("svg",i({width:8,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M0 1.41L1.41 0l6 6-6 6L0 10.59 4.58 6 0 1.41z",fill:"currentColor"}))}function N(e){return r.createElement("svg",i({width:22,height:21,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M11 0C4.93 0 0 4.93 0 11v7c0 1.65 1.35 3 3 3h4v-9H2v-1c0-4.96 4.04-9 9-9s9 4.04 9 9v1h-5v9h4c1.65 0 3-1.35 3-3v-7c0-6.07-4.93-11-11-11zM5 14v5H3c-.55 0-1-.45-1-1v-4h3zm15 4c0 .55-.45 1-1 1h-2v-5h3v4z",fill:"currentColor"}))}function T(e){return r.createElement("svg",i({width:22,height:22,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M15 0c-1.64 0-3.09.81-4 2.03C10.09.81 8.64 0 7 0H0v19h7c1.65 0 3 1.35 3 3h2c0-1.65 1.35-3 3-3h7V0h-7zM7 17H2V2h5c1.65 0 3 1.35 3 3v13.03A4.924 4.924 0 007 17zm13 0h-5c-1.13 0-2.16.39-3 1.03V5c0-1.65 1.35-3 3-3h5v15z",fill:"currentColor"}))}function L(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M8.24 11.66L4 7.41 5.41 6l2.83 2.83L11.07 6l1.42 1.41-4.25 4.25z",fill:"currentColor"}))}function D(e){return r.createElement("svg",i({width:8,height:8,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3.586L1.707 1.293.293 2.707 4 6.414l3.707-3.707-1.414-1.414L4 3.586z",fill:"currentColor"}))}function O(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.707 4.707L6 12.414 2.293 8.707l1.414-1.414L6 9.586l6.293-6.293 1.414 1.414z",fill:"currentColor"}))}function k(e){return r.createElement("svg",i({width:12,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.586 6L3.293 1.707 4.707.293 10.414 6l-5.707 5.707-1.414-1.414L7.586 6z",fill:"currentColor"}))}function R(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14A6 6 0 108 2a6 6 0 000 12zm0 2A8 8 0 108 0a8 8 0 000 16zM6.586 8L4.293 5.707l1.414-1.414L8 6.586l2.293-2.293 1.414 1.414L9.414 8l2.293 2.293-1.414 1.414L8 9.414l-2.293 2.293-1.414-1.414L6.586 8z",fill:"currentColor"}))}function j(e){return r.createElement("svg",i({width:18,height:18,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.414 9l7.293-7.293L16.293.293 9 7.586 1.707.293.293 1.707 7.586 9 .293 16.293l1.414 1.414L9 10.414l7.293 7.293 1.414-1.414L10.414 9z",fill:"currentColor"}))}function P(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.414 8l4.293-4.293-1.414-1.414L8 6.586 3.707 2.293 2.293 3.707 6.586 8l-4.293 4.293 1.414 1.414L8 9.414l4.293 4.293 1.414-1.414L9.414 8z",fill:"currentColor"}))}function U(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.414 8l4.293-4.293-1.414-1.414L8 6.586 3.707 2.293 2.293 3.707 6.586 8l-4.293 4.293 1.414 1.414L8 9.414l4.293 4.293 1.414-1.414L9.414 8z",fill:"currentColor"}))}function z(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 8A6 6 0 112 8a6 6 0 0112 0zm2 0A8 8 0 110 8a8 8 0 0116 0zm-9 3.414l4.707-4.707-1.414-1.414L7 8.586 5.707 7.293 4.293 8.707 7 11.414z",fill:"currentColor"}))}function B(e){return r.createElement("svg",i({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0zm2 0c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11zm-12.367 4.412l7.104-7.736-1.473-1.352-5.754 6.265-2.835-2.594-1.35 1.476 4.308 3.94z",fill:"currentColor"}))}function q(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 1H3v2H1v10a2 2 0 002 2h10a2 2 0 002-2V3h-2V1h-2v2H5V1zM3 5h10v2H3V5zm0 4h10v4H3V9z",fill:"currentColor"}))}function F(e){return r.createElement("svg",i({width:19,height:23,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M13 14H5v-2h8v2zM5 18h6v-2H5v2z",fill:"currentColor"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0v20a3 3 0 003 3h16V6.586L12.414 0H0zm2 20V2h8v7h7v12H3a1 1 0 01-1-1zM16.586 7L12 2.414V7h4.586z",fill:"currentColor"}))}function Z(e){return r.createElement("svg",i({width:16,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0h16v12H0V0zm12.297 2H3.703L8 5.683 12.297 2zM2 3.174V10h12V3.174L8 8.317 2 3.174z",fill:"currentColor"}))}function G(e){return r.createElement("svg",i({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M20 10c0-5.5-4.5-10-10-10S0 4.5 0 10c0 5 3.625 9.125 8.375 9.875v-7h-2.5V10h2.5V7.75c0-2.5 1.5-3.875 3.75-3.875 1.125 0 2.25.25 2.25.25v2.5h-1.25c-1.25 0-1.625.75-1.625 1.5V10h2.75l-.5 2.875h-2.375V20c5-.75 8.625-5 8.625-10z",fill:"currentColor"}))}function Y(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 2a6 6 0 01.938 11.927V9.734h1.397L10.602 8H8.937V6.875c0-.474.233-.938.978-.938h.757V4.462s-.08-.014-.21-.032a9.524 9.524 0 00-.887-.08 6.278 6.278 0 00-.246-.005c-1.37 0-2.267.83-2.267 2.334V8H5.54v1.734h1.524v4.193A6.002 6.002 0 018 2z",fill:"currentColor"}))}function H(e){return r.createElement("svg",i({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 4H8a4 4 0 00-4 4v12h12a4 4 0 004-4V8a4 4 0 00-4-4zM8 2a6 6 0 00-6 6v14h14a6 6 0 006-6V8a6 6 0 00-6-6H8zm5 15v-7h-2v7h2zm-1-9a1 1 0 100-2 1 1 0 000 2z",fill:"currentColor"}))}function W(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 3.081c1.602 0 1.792.006 2.425.035.584.027.902.124 1.114.207.26.096.497.249.69.448.2.194.353.43.45.691.082.212.18.53.206 1.114.029.633.035.823.035 2.425 0 1.602-.006 1.792-.035 2.425-.027.585-.124.902-.207 1.114a1.99 1.99 0 01-1.138 1.138c-.212.082-.53.18-1.114.207-.633.029-.823.035-2.425.035-1.602 0-1.792-.006-2.425-.035-.585-.027-.902-.124-1.114-.207a1.858 1.858 0 01-.69-.449c-.2-.193-.353-.43-.45-.69-.082-.212-.18-.53-.206-1.114-.029-.633-.035-.823-.035-2.425 0-1.602.006-1.792.035-2.425.027-.585.124-.902.207-1.114.096-.26.25-.497.449-.69.193-.2.43-.353.69-.45.212-.082.53-.18 1.114-.206.633-.029.823-.035 2.425-.035L8 3.081zm0-1.082c-1.629 0-1.833.007-2.473.036-.64.03-1.076.132-1.457.28-.4.15-.763.387-1.063.692-.305.3-.541.663-.692 1.063-.148.381-.25.818-.279 1.457C2.007 6.165 2 6.37 2 8s.007 1.834.036 2.474c.03.64.13 1.075.279 1.456.15.4.387.763.692 1.063.3.305.663.541 1.063.692.381.148.818.25 1.457.279.638.029.844.036 2.473.036 1.63 0 1.834-.007 2.474-.036.64-.03 1.075-.13 1.456-.28a3.068 3.068 0 001.755-1.754c.148-.381.25-.818.279-1.457C13.993 9.835 14 9.63 14 8c0-1.63-.007-1.833-.036-2.473-.03-.64-.13-1.075-.28-1.456-.15-.4-.386-.763-.691-1.063a2.946 2.946 0 00-1.063-.692c-.381-.148-.818-.25-1.457-.279C9.835 2.007 9.63 2 8 2v-.001zm0 2.92a3.081 3.081 0 100 6.162A3.081 3.081 0 008 4.92zm0 5.082A2 2 0 118 6 2 2 0 018 10zm3.923-5.204a.72.72 0 11-1.44 0 .72.72 0 011.44 0z",fill:"currentColor"}))}function V(e){return r.createElement("svg",i({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M12 0C5.38 0 0 5.38 0 12s5.38 12 12 12 12-5.38 12-12S18.62 0 12 0zm5.78 15.18c.14-1.01.22-2.08.22-3.18s-.08-2.17-.22-3.18C20.45 9.65 22 10.97 22 12c0 1.03-1.55 2.35-4.22 3.18zM12 22c-1.03 0-2.35-1.55-3.18-4.22 1.01.14 2.08.22 3.18.22s2.17-.08 3.18-.22C14.35 20.45 13.03 22 12 22zm0-6c-1.34 0-2.57-.12-3.68-.32C8.12 14.57 8 13.34 8 12c0-1.34.12-2.57.32-3.68C9.43 8.12 10.66 8 12 8c1.34 0 2.57.12 3.68.32.2 1.11.32 2.34.32 3.68 0 1.34-.12 2.57-.32 3.68-1.11.2-2.34.32-3.68.32zM2 12c0-1.03 1.55-2.35 4.22-3.18C6.08 9.83 6 10.9 6 12s.08 2.17.22 3.18C3.55 14.35 2 13.03 2 12zM12 2c1.03 0 2.35 1.55 3.18 4.22C14.17 6.08 13.1 6 12 6s-2.17.08-3.18.22C9.65 3.55 10.97 2 12 2zm9.23 6.17c-1.06-.64-2.38-1.16-3.87-1.53-.37-1.49-.89-2.81-1.53-3.87a9.992 9.992 0 015.4 5.4zM8.17 2.77c-.64 1.05-1.16 2.37-1.53 3.87-1.5.37-2.82.89-3.87 1.53a9.992 9.992 0 015.4-5.4zm-5.4 13.06c1.06.64 2.38 1.16 3.87 1.53.37 1.49.89 2.81 1.53 3.87a9.992 9.992 0 01-5.4-5.4zm13.06 5.4c.64-1.06 1.16-2.38 1.53-3.87 1.49-.37 2.81-.89 3.87-1.53a9.992 9.992 0 01-5.4 5.4z",fill:"currentColor"}))}function Q(e){return r.createElement("svg",i({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 12a5 5 0 015-5h6v2H5a3 3 0 100 6h6v2H5a5 5 0 01-5-5zM24 12a5 5 0 00-5-5h-6v2h6a3 3 0 110 6h-6v2h6a5 5 0 005-5z",fill:"currentColor"}),r.createElement("path",{fill:"currentColor",d:"M7 11h10v2H7z"}))}function K(e){return r.createElement("svg",i({width:20,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0h20v2H0V0zm0 5h20v2H0V5zm20 5H0v2h20v-2z",fill:"currentColor"}))}function X(e){return r.createElement("svg",i({width:48,height:48,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.414 8.414L28 7 12.444 22.556l-1.415 1.415 1.415 1.414L28 40.94l1.414-1.414L13.858 23.97 29.414 8.414z",fill:"currentColor"}))}function $(e){return r.createElement("svg",i({width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.293 3.293l1.414 1.414L10.414 16l11.293 11.293-1.414 1.414L7.586 16 20.293 3.293z",fill:"currentColor"}))}function J(e){return r.createElement("svg",i({width:48,height:48,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.586 8.414L20 7l15.556 15.556 1.415 1.415-1.415 1.414L20 40.94l-1.414-1.414L34.142 23.97 18.586 8.414z",fill:"currentColor"}))}function ee(e){return r.createElement("svg",i({width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.707 3.293l-1.414 1.414L21.586 16 10.293 27.293l1.414 1.414L24.414 16 11.707 3.293z",fill:"currentColor"}))}function te(e){return r.createElement("svg",i({fill:"none",height:19,width:20,xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M10.062 0C4.528 0 0 4.385 0 9.744c0 4.019 2.515 7.43 6.037 8.89 0-.73 0-1.46.126-2.192.251-.852 1.257-5.359 1.257-5.359s-.377-.609-.377-1.583c0-1.462.88-2.558 1.887-2.558.88 0 1.383.61 1.383 1.462s-.629 2.192-.88 3.41c-.252.974.503 1.827 1.635 1.827 1.886 0 3.144-2.314 3.144-5.237 0-2.192-1.51-3.776-4.15-3.776-3.019 0-4.905 2.193-4.905 4.628 0 .853.251 1.462.628 1.95.126.243.252.243.126.486 0 .122-.126.61-.251.731-.126.244-.252.365-.503.244-1.384-.61-2.013-2.07-2.013-3.776 0-2.801 2.39-6.09 7.17-6.09 3.898 0 6.413 2.68 6.413 5.603 0 3.775-2.138 6.699-5.408 6.699-1.132 0-2.138-.61-2.515-1.218 0 0-.629 2.192-.755 2.68-.251.73-.629 1.46-1.006 2.07.88.243 1.887.365 2.893.365 5.534 0 10.061-4.385 10.061-9.744C20.123 4.385 15.595 0 10.062 0z",fill:"currentColor"}))}function ne(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.217 12.268A5.98 5.98 0 018 14c-.62 0-1.218-.094-1.78-.269.246-.4.606-1.045.738-1.563l.375-1.427c.193.375.766.691 1.373.691 1.808 0 3.111-1.664 3.111-3.733 0-1.985-1.62-3.467-3.698-3.467-2.593 0-3.966 1.738-3.966 3.63 0 .884.47 1.975 1.22 2.326.113.054.178.03.202-.08l.058-.233.11-.448a.179.179 0 00-.04-.173c-.246-.3-.444-.854-.444-1.368 0-1.323 1.003-2.602 2.711-2.602 1.477 0 2.509 1.002 2.509 2.44 0 1.62-.82 2.745-1.886 2.745-.588 0-1.033-.489-.89-1.086.062-.255.143-.517.222-.772.142-.46.277-.898.277-1.228 0-.46-.246-.845-.76-.845-.602 0-1.086.622-1.086 1.457 0 .528.177.889.177.889s-.592 2.514-.7 2.983c-.12.518-.075 1.247-.02 1.722A6.003 6.003 0 012 8a6 6 0 016.653-5.965A5.988 5.988 0 0113.99 8.01a5.981 5.981 0 01-1.773 4.258z",fill:"currentColor"}))}function re(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.414 7l3.293-3.293-1.414-1.414-5 5L.586 8l.707.707 5 5 1.414-1.414L4.414 9H15V7H4.414z",fill:"currentColor"}))}function ie(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.172 9l-3.293 3.293 1.414 1.414 5-5L15 8l-.707-.707-5-5-1.414 1.414L11.172 7H.586v2h10.586z",fill:"currentColor"}))}function oe(e){return r.createElement("svg",i({width:14,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M7.707.293L6.293 1.707 9.586 5H0v2h9.586l-3.293 3.293 1.414 1.414L13.414 6 7.707.293z",fill:"currentColor"}))}function ae(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 8A6 6 0 112 8a6 6 0 0112 0zm2 0A8 8 0 110 8a8 8 0 0116 0zm-8 4a4 4 0 100-8 4 4 0 000 8z",fill:"currentColor"}))}function se(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14A6 6 0 108 2a6 6 0 000 12zm0 2A8 8 0 108 0a8 8 0 000 16z",fill:"currentColor"}))}function ue(e){return r.createElement("svg",i({width:14,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M14 19.87L7 15.2l-7 4.67V2C0 .9.9 0 2 0h10c1.1 0 2 .9 2 2v17.87zM7 12.8l5 3.33V2H2v14.13l5-3.33z",fill:"currentColor"}))}function le(e){return r.createElement("svg",i({width:14,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M14 19.87L7 15.2l-7 4.67V2C0 .9.9 0 2 0h10c1.1 0 2 .9 2 2v17.87z",fill:"currentColor"}))}function ce(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 3a2 2 0 012-2h8a2 2 0 012 2v12.766l-6-3.6-6 3.6V3zm2 0v9.234l4-2.4 4 2.4V3H4z",fill:"currentColor"}))}function de(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 1a2 2 0 00-2 2v12.766l6-3.6 6 3.6V3a2 2 0 00-2-2H4z",fill:"currentColor"}))}function pe(e){return r.createElement("svg",i({width:16,height:21,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M16 20.94l-8-5.71-8 5.71V2C0 .9.9 0 2 0h12c1.1 0 2 .9 2 2v18.94zm-8-8.17l6 4.29V2H2v15.06l6-4.29z",fill:"currentColor"}))}function fe(e){return r.createElement("svg",i({width:20,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.393 13.389c-1.33 0-2.4-.491-3.22-1.46-.82-.97-1.257-2.347-1.257-4.076 0-.09 0-.174-.006-.258v-.06C.91 3.118 4.423.036 9.444.036c3.256 0 6.141.994 8.57 2.95l.797.647-2.215 3.322-1.903-1.257 1.012-1.61c-1.82-1.209-3.927-1.825-6.267-1.825-1.215 0-2.298.227-3.208.64-.329.168-.64.36-.933.575C4.26 4.232 3.74 5.123 3.74 6.165c0 .622.257.933.766.933.113 0 .34-.047.688-.131.281-.066.569-.102.862-.114.706 0 1.364.275 1.987.826.622.55.934 1.31.934 2.274a3.385 3.385 0 01-.958 2.424c-.64.677-1.514 1.012-2.627 1.012zm6.176.712a3.368 3.368 0 01.958-2.406c.64-.67 1.514-1.005 2.627-1.011 1.323 0 2.394.484 3.214 1.448.82.963 1.227 2.304 1.227 4.028 0 2.37-.748 4.231-2.25 5.578-1.46 1.317-3.543 2.089-5.626 2.184-.383.036-.778.054-1.18.054-3.62 0-7.074-1.299-9.72-3.657l-.783-.7 2.61-3.16 1.789 1.383-1.239 1.514a12.233 12.233 0 007.338 2.406c3.154 0 5.338-1.191 6.188-3.262.048-.215.072-.431.072-.646 0-.617-.257-.922-.766-.922-.114 0-.341.048-.688.132a4.15 4.15 0 01-.862.113c-.7 0-1.359-.269-1.981-.82-.617-.544-.928-1.298-.928-2.256z",fill:"currentColor"}))}function he(e){return r.createElement("svg",i({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M20.71 20.29l-4.4-4.4A7.874 7.874 0 0018 11c0-4.41-3.59-8-8-8s-8 3.59-8 8 3.59 8 8 8c1.85 0 3.54-.63 4.9-1.69l4.4 4.4 1.41-1.42zM10 17c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z",fill:"currentColor"}))}function ge(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.18 2.257A2 2 0 0012.323 1H4.498a3.11 3.11 0 00-1.39.328A3.812 3.812 0 001 4.738V11h3.382l2.103 3.206a2 2 0 003.203.52l.433-.433A3 3 0 0011 12.172V11h2a3 3 0 003-3v-.037c0-.763-.146-1.52-.43-2.228l-1.39-3.478zM4.498 3h7.148a1 1 0 01.928.629l1.14 2.848A4 4 0 0114 7.963V8a1 1 0 01-1 1H9v3.172a1 1 0 01-.293.707l-.433.433-2.103-3.206A2 2 0 004.382 9H3V4.738c0-.686.388-1.314 1.002-1.62A1.11 1.11 0 014.498 3z",fill:"currentColor"}))}function me(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M2 5v5h1.522a2 2 0 011.579.772l2.296 2.952a1 1 0 001.39.186l.413-.31A2 2 0 0010 12v-2h2.614a2 2 0 001.873-2.702l-1.5-4A2 2 0 0011.114 2H5a3 3 0 00-3 3z",fill:"currentColor"}))}function ve(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.18 13.055a2 2 0 01-1.857 1.257H4.498a3.11 3.11 0 01-1.39-.328A3.812 3.812 0 011 10.574V4.312h3.382l2.103-3.206a2 2 0 013.203-.52l.433.433A3 3 0 0111 3.141v1.171h2a3 3 0 013 3v.037c0 .764-.146 1.52-.43 2.229l-1.39 3.477zm-9.682-.743h7.148a1 1 0 00.928-.628l1.14-2.85A4 4 0 0014 7.35v-.037a1 1 0 00-1-1H9V3.141a1 1 0 00-.293-.708L8.274 2 6.17 5.207a2 2 0 01-1.789 1.105H3v4.262c0 .687.388 1.314 1.002 1.621.154.077.324.117.496.117z",fill:"currentColor"}))}function _e(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M2 10.5v-5h1.522A2 2 0 005.1 4.728l2.296-2.952a1 1 0 011.39-.186l.413.31a2 2 0 01.8 1.6v2h2.614a2 2 0 011.873 2.702l-1.5 4a2 2 0 01-1.873 1.298H5a3 3 0 01-3-3z",fill:"currentColor"}))}function Ae(e){return r.createElement("svg",i({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M22 5.846c-.75.37-1.5.492-2.375.616.875-.493 1.5-1.231 1.75-2.216-.75.492-1.625.739-2.625.985a4.4 4.4 0 00-3-1.231c-2.625 0-4.625 2.462-4 4.923C8.375 8.8 5.375 7.2 3.25 4.738c-1.125 1.847-.5 4.185 1.25 5.416-.625 0-1.25-.246-1.875-.492 0 1.846 1.375 3.569 3.25 4.061-.625.123-1.25.246-1.875.123.5 1.6 2 2.83 3.875 2.83-1.5 1.109-3.75 1.724-5.875 1.478C3.875 19.262 6 20 8.25 20c7.625 0 11.875-6.277 11.625-12.062A5.732 5.732 0 0022 5.846z",fill:"currentColor"}))}function ye(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M5.774 12.79c4.528 0 7.005-4.152 7.005-7.752 0-.118 0-.235-.007-.352A5.338 5.338 0 0014 3.276a4.55 4.55 0 01-1.414.428c.514-.34.899-.876 1.082-1.507a4.657 4.657 0 01-1.563.662 2.401 2.401 0 00-1.397-.823 2.26 2.26 0 00-1.561.287A2.636 2.636 0 008.065 3.6a2.995 2.995 0 00-.156 1.742 6.47 6.47 0 01-2.81-.826 7.175 7.175 0 01-2.264-2.02 2.98 2.98 0 00-.27 1.985c.142.676.511 1.266 1.032 1.652a2.267 2.267 0 01-1.117-.341v.034c0 .63.197 1.239.557 1.725.36.487.861.821 1.418.946-.362.109-.743.125-1.111.046.157.542.463 1.015.876 1.354.412.34.91.528 1.424.538-.872.758-1.95 1.17-3.058 1.169-.196 0-.391-.014-.586-.04a6.49 6.49 0 003.774 1.222",fill:"currentColor"}))}function be(e){return r.createElement("svg",i({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M2 21h20v2H2v-2z",fill:"currentColor"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.414 7.828v10.586h2V7.828l4 4 1.414-1.414L12.414 4 6 10.414l1.414 1.414 4-4z",fill:"currentColor"}))}function Ee(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.707 2.293L8 1.586l-.707.707-4 4 1.414 1.414L7 5.414V12h2V5.414l2.293 2.293 1.414-1.414-4-4z",fill:"currentColor"}),r.createElement("path",{fill:"currentColor",d:"M1 14h14v2H1z"}))}function we(e){return r.createElement("svg",i({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 4a2 2 0 11-4 0 2 2 0 014 0zm2 0a4 4 0 11-8 0 4 4 0 018 0zM5 9a5 5 0 00-5 5v1h2v-1a3 3 0 013-3h6a3 3 0 013 3v1h2v-1a5 5 0 00-5-5H5z",fill:"currentColor"}))}x.propTypes={"data-e2e":o.exports.string,alt:o.exports.string,className:o.exports.string,icon:o.exports.any.isRequired,nodeRef:o.exports.any},x.defaultProps={"data-e2e":null,alt:null,nodeRef:null};var xe=e=>r.createElement(x,i({icon:I},e)),Ie=e=>r.createElement(x,i({icon:M},e)),Me=e=>r.createElement(x,i({icon:C},e)),Se=e=>r.createElement(x,i({icon:S},e)),Ce=e=>r.createElement(x,i({icon:C},e)),Ne=e=>r.createElement(x,i({icon:N},e)),Te=e=>r.createElement(x,i({icon:T},e)),Le=e=>r.createElement(x,i({icon:L},e)),De=e=>r.createElement(x,i({icon:D},e)),Oe=e=>r.createElement(x,i({icon:O},e)),ke=e=>r.createElement(x,i({icon:k},e)),Re=e=>r.createElement(x,i({icon:R},e)),je=e=>r.createElement(x,i({icon:j},e)),Pe=e=>r.createElement(x,i({icon:P},e)),Ue=e=>r.createElement(x,i({icon:U},e)),ze=e=>r.createElement(x,i({icon:z},e)),Be=e=>r.createElement(x,i({icon:B},e)),qe=e=>r.createElement(x,i({icon:q},e)),Fe=e=>r.createElement(x,i({icon:F},e)),Ze=e=>r.createElement(x,i({icon:Z},e)),Ge=e=>r.createElement(x,i({icon:G},e)),Ye=e=>r.createElement(x,i({icon:Y},e)),He=e=>r.createElement(x,i({icon:H},e)),We=e=>r.createElement(x,i({icon:W},e)),Ve=e=>r.createElement(x,i({icon:V},e)),Qe=e=>r.createElement(x,i({icon:Q},e)),Ke=e=>r.createElement(x,i({icon:K},e)),Xe=e=>r.createElement(x,i({icon:X},e)),$e=e=>r.createElement(x,i({icon:$},e)),Je=e=>r.createElement(x,i({icon:J},e)),et=e=>r.createElement(x,i({icon:ee},e)),tt=e=>r.createElement(x,i({icon:te},e)),nt=e=>r.createElement(x,i({icon:ne},e)),rt=e=>r.createElement(x,i({icon:re},e)),it=e=>r.createElement(x,i({icon:ie},e)),ot=e=>r.createElement(x,i({icon:oe},e)),at=e=>r.createElement(x,i({icon:ae},e)),st=e=>r.createElement(x,i({icon:se},e)),ut=e=>r.createElement(x,i({icon:pe},e)),lt=e=>r.createElement(x,i({icon:ue},e)),ct=e=>r.createElement(x,i({icon:le},e)),dt=e=>r.createElement(x,i({icon:ce},e)),pt=e=>r.createElement(x,i({icon:de},e)),ft=e=>r.createElement(x,i({icon:fe},e)),ht=e=>r.createElement(x,i({icon:he},e)),gt=e=>r.createElement(x,i({icon:ge},e)),mt=e=>r.createElement(x,i({icon:me},e)),vt=e=>r.createElement(x,i({icon:ve},e)),_t=e=>r.createElement(x,i({icon:_e},e)),At=e=>r.createElement(x,i({icon:Ae},e)),yt=e=>r.createElement(x,i({icon:ye},e)),bt=e=>r.createElement(x,i({icon:be},e)),Et=e=>r.createElement(x,i({icon:Ee},e)),wt=e=>r.createElement(x,i({icon:we},e))},3845:(e,t,n)=>{"use strict";n.d(t,{$_:()=>Zr,X8:()=>fi,X9:()=>gi,oU:()=>Ci});var r=n(7294),i=n(6002),o=n(1783),a=n(2585),s=n(1320),u=n(7903),l=n(2779),c=n.n(l),d=n(9207),p=n(3980),f=n.n(p),h=n(6635),g=n(9371),m=n(3935),v=n(6940);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t{var{buttonStyle:t,children:n,className:i,disabled:o,menuIsOpen:a,onClick:s,onMouseEnter:u,onMouseLeave:l,nodeRef:p,useTextHandle:f}=e,h={"aria-expanded":a,"aria-haspopup":"true",buttonStyle:t,className:c()("menu_handle",i),disabled:o,href:"#",nodeRef:p,onClick:s,onMouseEnter:u,onMouseLeave:l};return f?r.createElement(d.Av,h,n):r.cloneElement(n,A(A({},h),{},{isSelected:a}))};function I(){return I=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function S(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function C(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}x.propTypes={buttonStyle:f().string,children:f().any,className:f().string,disabled:f().bool,menuIsOpen:f().bool,nodeRef:f().oneOfType([f().func,f().shape({current:f().any})]),onClick:f().func,onMouseEnter:f().func,onMouseLeave:f().func,useTextHandle:f().bool.isRequired},x.defaultProps={buttonStyle:E.DEFAULT,className:null,disabled:!1,menuIsOpen:!1,onClick:s.ZT,onMouseEnter:s.ZT,onMouseLeave:s.ZT};var N=!1,T=r.createContext(null),L="unmounted",D="exited",O="entering",k="entered",R="exiting",j=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=D,r.appearStatus=O):i=k:i=t.unmountOnExit||t.mountOnEnter?L:D,r.state={status:i},r.nextCallback=null,r}S(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===L?{status:D}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==O&&n!==k&&(t=O):n!==O&&n!==k||(t=R)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===O?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===D&&this.setState({status:L})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[m.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||N?this.safeSetState({status:k},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:O},(function(){t.props.onEntering(o,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:k},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:m.findDOMNode(this);t&&!N?(this.props.onExit(r),this.safeSetState({status:R},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:D},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:D},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:m.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===L)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var i=M(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.createElement(T.Provider,{value:null},"function"===typeof n?n(e,i):r.cloneElement(r.Children.only(n),i))},t}(r.Component);function P(){}j.contextType=T,j.propTypes={},j.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:P,onEntering:P,onEntered:P,onExit:P,onExiting:P,onExited:P},j.UNMOUNTED=L,j.EXITED=D,j.ENTERING=O,j.ENTERED=k,j.EXITING=R;var U=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},z=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=C(n.className,r):n.setAttribute("class",C(n.className&&n.className.baseVal||"",r)));var n,r}))},B=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i{var{children:t,className:n,handleClose:i,isOpen:a,nodeRef:s,position:u,transition:l}=e,p=l?300:0;return r.createElement(B,{in:a,timeout:p,classNames:{enter:te.enter,enterActive:te.enterActive,enterDone:te.enterDone,exit:te.exit,exitActive:te.exitActive,exitDone:te.exitDone}},r.createElement("div",{className:c()(te.wrapper,te[u],{[te.isOpen]:a},n),"data-e2e":"menu-items",ref:s},r.createElement(d.d7,{atAndAbove:!0,size:v.zf.S},r.createElement(d.Av,{"data-e2e":"close-button",className:te.closeButton,onClick:i},r.createElement(o.x8P,{alt:"close menu"}))),t))};ne.propTypes={children:f().any,className:f().string,handleClose:f().func,isOpen:f().bool,nodeRef:f().shape({current:"undefined"!==typeof Element?f().instanceOf(Element):f().any}),position:f().oneOf(Object.values(ee)),transition:f().bool.isRequired},ne.defaultProps={className:null,handleClose:s.ZT,isOpen:!1,nodeRef:null,position:ee.BOTTOM};var re="DropdownMenu-module_wrapper__-3wi4";class ie extends r.Component{constructor(e){var t;super(e),t=this,y(this,"handleResize",(()=>{this.closeMenu()})),y(this,"handleKeydown",(e=>{if(e.stopPropagation(),e.keyCode===s.keyMappings.esc)return this.closeMenu(true);(0,s._h)({event:e,children:(0,s.Ng)(this.menuRef.current),exitFunction:this.closeMenu,tabCycle:!1})})),y(this,"addFocusTrap",(()=>{this.state.isOpen&&this.setFocus(this.menuRef.current)})),y(this,"setFocus",(e=>{(0,s.Ng)(e)[0].focus()})),y(this,"toggleVisible",(()=>{this.state.isOpen?this.closeMenu(true):this.openMenu()})),y(this,"openMenu",(()=>{if(!this.state.isOpen){this.setState({isOpen:!0},(()=>{this.addFocusTrap(),this.props.onOpen()}))}})),y(this,"closeMenu",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t.state.isOpen){var{delayClose:n,onClose:r}=t.props;e||n<1?t.setState({isOpen:!1},r):t.closeTimeout=setTimeout((()=>{t.setState({isOpen:!1},r)}),n)}})),y(this,"onHandleClick",(e=>{e.preventDefault(),this.toggleVisible()})),y(this,"onMouseEnter",(()=>{clearTimeout(this.closeTimeout),this.props.openOnHover&&this.openMenu()})),y(this,"onMouseLeave",(()=>{this.closeMenu()})),this.state={isOpen:e.isOpen},this.wrapperRef=r.createRef(),this.menuRef=r.createRef(),this.handleKeydown=(0,h.throttle)(this.handleKeydown,200),this.handleResize=(0,h.throttle)(this.handleResize,200)}componentDidMount(){window.addEventListener("resize",this.handleResize)}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}render(){return r.createElement(g.SV,null,r.createElement("div",{className:c()(re),"data-e2e":this.props["data-e2e"],ref:this.wrapperRef,onKeyDown:this.handleKeydown,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},r.createElement(x,{buttonStyle:this.props.buttonStyle,className:this.props.menuHandleClassName,menuIsOpen:this.state.isOpen,onClick:this.onHandleClick,disabled:this.props.disabled,nodeRef:this.props.handleNodeRef,useTextHandle:this.props.useTextHandle},this.props.handle),r.createElement(ne,{isOpen:this.state.isOpen,nodeRef:this.menuRef,handleClose:this.closeMenu,position:this.props.forcePosition,className:this.props.menuItemsClassName,transition:this.props.menuItemsTransition},this.props.children)))}}ie.propTypes={buttonStyle:f().string,"data-e2e":f().string,children:f().any,delayClose:f().number,disabled:f().bool,forcePosition:f().oneOf(Object.values(ee)),handle:f().any,handleNodeRef:f().oneOfType([f().func,f().shape({current:f().any})]),isOpen:f().bool,menuHandleClassName:f().string,menuItemsClassName:f().string,menuItemsTransition:f().bool,onClose:f().func,onOpen:f().func,openOnHover:f().bool,useTextHandle:f().bool},ie.defaultProps={buttonStyle:E.DEFAULT,"data-e2e":null,delayClose:250,disabled:!1,isOpen:!1,menuHandleClassName:null,menuItemsClassName:null,menuItemsTransition:!1,onClose:s.ZT,onOpen:s.ZT,openOnHover:!1,useTextHandle:!0};var oe="PillSelectDropdown-module_menuItems__wA2Ti",ae="PillSelectDropdown-module_list__UnuBG",se="PillSelectDropdown-module_option__p4OGe",ue="PillSelectDropdown-module_optionSelected__PXQEf";function le(e){var{inputType:t,initialOption:n,itemPosition:i,onChange:o,options:a}=e,[u,l]=(0,r.useState)(n),p=e=>{o(e),l(e)},f=a.map((e=>{var n=u.value===e.value,i=()=>p(e),o={className:c()(se,{[ue]:n}),key:e.value};return t?r.createElement("li",o,r.createElement(t,{onChange:i,labelText:e.label,selected:n},e.label)):r.createElement("li",b({},o,{onClick:i,onKeyDown:t=>((e,t)=>{e.which===s.keyMappings.enter&&p(t)})(t,e),tabIndex:0}),e.label)}));return r.createElement(ie,{forcePosition:i,menuItemsClassName:oe,menuItemsTransition:!0,handle:r.createElement(d.vZ,{label:u.label})},r.createElement("ul",{className:ae},f))}var ce=f().shape({label:f().string,value:f().string});function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}le.propTypes={initialOption:ce.isRequired,inputType:f().elementType,itemPosition:f().oneOf(Object.values(ee)),onChange:f().func,options:f().arrayOf(ce).isRequired},le.defaultProps={inputType:null,onChange:s.ZT};var he={exports:{}};var ge,me,ve,_e,Ae,ye;function be(){if(me)return ge;me=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return ge=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(r,i){for(var o,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),u=1;uS.length&&S.push(e)}function T(e,t,i,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var s=!1;if(null===e)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return i(o,e,""===t?"."+D(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var u=0;u=0||(i[n]=e[n]);return i}(e,ke);return xe.exports.createElement(r,Oe({ref:t,style:Oe({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},o)},a))}));function je(e){return e.replace(/<\/?em>/g,"")}var Pe="search_web_suggest_recall";function Ue(e,t){var n="/query_suggestions/web?query=".concat(e);return n+="&nway_test_recall_variant=".concat(s.rm.getValue(Pe)),s.Be.get({url:n},((n,r,i)=>{if(!n){var o=JSON.parse(i),a=!!o.query_suggestions;t(e,o.query_suggestions||[],a)}}))}function ze(e){if((()=>{var e="test";try{var t=window.localStorage;return t.setItem(e,"1"),t.removeItem(e),!0}catch(n){return!1}})())return e(window.localStorage)}class Be{constructor(){pe(this,"SEARCH_DATA_KEY","search_data"),pe(this,"MAX_SEARCH_TERMS",10)}read(){var e=Be.DEFAULT_DATA;return"undefined"===typeof window?e:ze((t=>{var n=t.getItem(this.SEARCH_DATA_KEY),r=JSON.parse(n);return Object.assign({},e,r)}))}currentUniqueTerms(){return[...new Set(this.read().terms)].filter((e=>!!e))}clone(e){return e.slice(0)}moveExistingTermToMostRecent(e,t){var n=this.clone(t),r=n.indexOf(e),[i]=n.splice(r,1);return n.unshift(i),n}saveTerms(e){return ze((t=>{var n=Object.assign({},this.read(),{terms:e});return t.setItem(this.SEARCH_DATA_KEY,JSON.stringify(n))}))}insertNewTerm(e,t){var n=this.clone(t);return n.length>=this.MAX_SEARCH_TERMS&&(n=n.slice(0,this.MAX_SEARCH_TERMS-1)),n.unshift(e),n}saveHistory(e){if("undefined"!==typeof window){var t=this.currentUniqueTerms();return t[0]&&0===t[0].indexOf(e)?t[0]=e:t=t.includes(e)?this.moveExistingTermToMostRecent(e,t):this.insertNewTerm(e,t),this.saveTerms(t)}}}pe(Be,"DEFAULT_DATA",{terms:[],queryPreferences:{}});var qe="Suggestions-module_wrapper__eQtei",Fe="Suggestions-module_suggestionLabel__5VdWj",Ze="Suggestions-module_ulStyle__gwIbS",Ge="Suggestions-module_suggestion__jG35z",Ye="Suggestions-module_suggestions__HrK3q";class He extends Le.Component{constructor(e){super(e),pe(this,"handleClick",(e=>{var{handleClick:t}=this.props,n=je(e);this.trackClick(n),t(n)})),pe(this,"handleMouseUp",(e=>{this.suggestionsRef.current&&!this.suggestionsRef.current.contains(e.target)&&this.trackCancel()})),pe(this,"trackClick",(e=>{var{source:t,query:n}=this.props,r=this.getPrunedItems();(0,s.L9)("search:drop_down_suggest:click",{page:window.location.pathname,search_session_id:(0,s.LT)(),source:t,query:e,query_typed:n,suggestions:r})})),pe(this,"trackCancel",(()=>{var{source:e,query:t}=this.props,n=this.getPrunedItems();n.length&&(0,s.L9)("search:drop_down_suggest:cancel",{page:window.location.pathname,search_session_id:(0,s.LT)(),source:e,query_typed:t,suggestions:n})})),this.suggestionsRef=Le.createRef()}componentDidMount(){document.addEventListener("mouseup",this.handleMouseUp)}componentWillUnmount(){document.removeEventListener("mouseup",this.handleMouseUp)}getPrunedItems(){var{items:e}=this.props;return e.map(je)}rawHtml(e){return{__html:e}}renderSuggestionLabel(){var{labelText:e}=this.props;if(e)return Le.createElement("div",{className:Fe},e)}renderLink(e){var{trust:t}=this.props;return t?Le.createElement("a",{href:"#",onClick:e=>e.preventDefault(),dangerouslySetInnerHTML:this.rawHtml(e)}):Le.createElement("a",{href:"#",onClick:e=>e.preventDefault()},e)}renderItems(){var{items:e,selectedIndex:t}=this.props;return e.map(((e,n)=>{var r=c()(Ge,{selected:t===n}),i=c()({selected_suggestion:t===n});return Le.createElement("li",{className:r,id:i,key:n.toString(),onClick:()=>this.handleClick(e)},this.renderLink(e))}))}render(){var{listId:e}=this.props;return Le.createElement("div",{className:qe},Le.createElement("div",{className:Ye,id:e,ref:this.suggestionsRef,"data-e2e":"megamenu-top-bar-suggestions-list"},this.renderSuggestionLabel(),Le.createElement("ul",{className:Ze},this.renderItems())))}}He.propTypes={handleClick:he.exports.func.isRequired,items:he.exports.arrayOf(he.exports.string).isRequired,labelText:he.exports.string,listId:he.exports.string.isRequired,page:he.exports.string.isRequired,query:he.exports.string.isRequired,selectedIndex:he.exports.number.isRequired,source:he.exports.string.isRequired,trust:he.exports.bool.isRequired},He.defaultProps={labelText:null};var We="SearchForm-module_wrapper__lGGvF",Ve="SearchForm-module_clearButton__ggRgX",Qe="SearchForm-module_searchInput__l73oF",Ke="SearchForm-module_searchButton__4f-rn",Xe="SearchForm-module_closeRelatedSearchButton__c9LSI",$e="SearchForm-module_focused__frjzW",Je="SearchForm-module_inputWrapper__6iIKb";class et extends Le.Component{constructor(e){var t;super(e),t=this,pe(this,"handleLegacyHeaderInputFocus",(()=>{this.state.focused||this.searchInputRef.current.focus()})),pe(this,"trackSuggestionsCancel",(()=>{var e=this.state.suggestionItems.map(je);e.length&&(0,s.L9)("search:drop_down_suggest:cancel",{source:this.source,search_session_id:(0,s.LT)(),page:window.location.pathname,query_typed:this.inputValue,suggestions:e})})),pe(this,"setHistory",(e=>{e&&(this.storage.saveHistory(e),this.setState({queryHistory:this.getHistory()}))})),pe(this,"handleGotQuerySuggestions",(function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=[];n&&(i=t.memoizedQueries[e]=n.map((e=>e.suggestion))),t.setState({suggestionItems:i,trustSuggestionItems:r,suggestionsXhr:null})})),pe(this,"submitSearch",(e=>{this.searchSubmitted=!0,this.setHistory(e);var t=this.getSearchParams(e);this.setState({query:e},(()=>{this.closeSuggestions(),this.navigateToApp(t)}))})),pe(this,"closeSuggestions",(()=>{var{handleSearchFocus:e}=this.props;this.searchSubmitted||this.trackSuggestionsCancel(),this.setState({focused:!1,suggestedQuery:"",suggestionIndex:-1,suggestionItems:[]},(()=>e(!1)))})),pe(this,"handleCloseSuggestionsClick",(e=>{e.preventDefault(),this.closeSuggestions()})),pe(this,"handleClick",(()=>{(0,s.L9)("search:box:click",{page:this.page,search_session_id:(0,s.LT)()})})),pe(this,"handleSearchButtonClick",(e=>{this.handleSubmit(e),this.closeSuggestions()})),pe(this,"handleClearButtonClick",(()=>{this.getSuggestions("")})),pe(this,"handleSubmit",(e=>{e.preventDefault(),(this.state.suggestedQuery||this.state.query)&&(-1!==this.state.suggestionIndex&&(0,s.L9)("search:drop_down_suggest:submit",{page:this.page,search_session_id:(0,s.LT)(),source:this.source,query:this.state.suggestedQuery}),this.submitSearch(this.inputValue))})),pe(this,"handleBlur",(()=>{setTimeout(this.closeSuggestions,300)})),pe(this,"handleChange",(e=>{e.persist(),this.setState({query:e.target.value,suggestionIndex:-1},(()=>{this.getSuggestions(e.target.value)}))})),pe(this,"handleKeydown",(e=>{var{enter:t,up_arrow:n,down_arrow:r,esc:i,tab:o}=s.keyMappings;switch(e.keyCode){case t:this.handleSubmit(e),e.target.blur(),this.closeSuggestions();break;case n:e.preventDefault(),this.navigateSuggestions(-1);break;case r:e.preventDefault(),this.navigateSuggestions(1);break;case i:e.preventDefault(),e.target.blur(),this.closeSuggestions();break;case o:this.state.suggestionItems.length>0&&(this.closeSuggestions(),e.currentTarget.focus());break;default:return void(this.state.focused||this.setState({focused:!0}))}})),pe(this,"handleHideSuggestions",(e=>{this.searchFormRef&&!this.searchFormRef.current.contains(e.target)&&this.hideSuggestions()})),pe(this,"handleFocus",(()=>{var{handleSearchFocus:e,onSearchFocus:t}=this.props;this.setState({focused:!0},(()=>{this.getSuggestions(this.state.query)})),e(!0),this.trackRenderedSearchItems(),t()})),this.searchFormRef=Le.createRef(),this.searchInputRef=Le.createRef(),this.state={focused:!1,query:e.query,queryHistory:[],suggestedQuery:"",suggestionIndex:-1,suggestionsXhr:null,suggestionItems:[],trustSuggestionItems:!0},this.memoizedQueries={}}componentDidMount(){document.addEventListener("click",this.handleHideSuggestions),window.addEventListener("header:search_page:focus_input",this.handleLegacyHeaderInputFocus),this.setState({queryHistory:this.getHistory()})}componentWillUnmount(){window.removeEventListener("header:search_page:focus_input",this.handleLegacyHeaderInputFocus),document.removeEventListener("click",this.handleHideSuggestions)}getHistory(){var e=this.storage.read();if(e)return e.terms}trackRenderedSearchItems(){var e=this.inputValue,t=(0,s.LT)(),n="search:drop_down_suggest:show",r=this.page;if(e)return(0,s.L9)(n,{layout:"query_suggestions",query:e,search_session_id:t,page:r});(0,s.L9)(n,{layout:"search_history",query:e,search_session_id:t,page:r})}get storage(){return this._storage||(this._storage=new Be)}get source(){return this.state.query?"query_suggester":"recent_search"}get page(){return window.location.pathname.split("/")[1]||"home"}get inputValue(){return this.state.suggestionIndex>-1?this.state.suggestedQuery:this.state.query}get placeholderText(){return this.props.placeholderText||i.Z.t("megamenu.search_bar.search")}get labelText(){return 0===this.state.query.length?i.Z.t("megamenu.search_bar.recent_searches"):""}getSuggestedQuery(e){return e<0?"":je(this.state.suggestionItems[e])}getSuggestions(e){if(this.state.suggestionsXhr&&this.state.suggestionsXhr.abort(),e)if(this.memoizedQueries[e])this.setState({query:e,suggestionItems:this.memoizedQueries[e],trustSuggestionItems:!0});else{var t=Ue(e,this.handleGotQuerySuggestions);this.setState({query:e,suggestionsXhr:t})}else this.useQueryHistory()}useQueryHistory(){this.setState({query:"",suggestionItems:Array.from(this.state.queryHistory),trustSuggestionItems:!1})}navigateToApp(e){var{searchPath:t,searchFunction:n}=this.props;"undefined"!==typeof window&&n("".concat(t,"?").concat(this.getParams(e)))}getParams(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object.keys(e).map((n=>"".concat(n,"=").concat(t?encodeURIComponent(e[n]):e[n]))).join("&")}navigateSuggestions(e){var t=Math.min(this.state.suggestionItems.length-1,Math.max(this.state.suggestionIndex+e,-1));this.setState({suggestedQuery:this.getSuggestedQuery(t),suggestionIndex:t})}getSearchParams(e){var t=this.storage.read(),n=function(e){for(var t=1;t0;return(e||t)&&n}renderVisuallyHiddenResultsCount(){var e;if(this.state.focused)return e=this.shouldShowSuggestions()?i.Z.t("megamenu.search_bar.num_results_are_available",{props_items_length:this.state.suggestionItems.length}):i.Z.t("megamenu.search_bar.no_results_found"),Le.createElement(Re,{"aria-atomic":"true",role:"status","aria-live":"polite",id:"aria_live_status_container"},e)}renderSuggestions(){if(this.shouldShowSuggestions())return Le.createElement(He,{handleClick:this.submitSearch,items:this.state.suggestionItems,labelText:this.labelText,listId:"suggestions_list",page:this.page,query:this.state.query,selectedIndex:this.state.suggestionIndex,source:this.source,trust:this.state.trustSuggestionItems})}render(){var{extraClasses:e}=this.props,{focused:t}=this.state;return Le.createElement("div",{className:c()(We,"search_input_container",e,{[$e]:t}),role:"search"},Le.createElement("form",{className:"search_form",onSubmit:this.handleSubmit,ref:this.searchFormRef},Le.createElement("div",{className:c()(Je)},Le.createElement("button",{type:"button",onClick:this.handleCloseSuggestionsClick,className:Xe},Le.createElement(o.pJo,{alt:i.Z.t("megamenu.search_bar.close_suggestions"),className:"icon"})),Le.createElement("label",null,Le.createElement(Re,null,i.Z.t("megamenu.search_bar.search")),Le.createElement("input",{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",className:Qe,"data-e2e":"megamenu-top-bar-search-input",id:"header_search_input",name:"query",onBlur:this.handleBlur,onChange:this.handleChange,onClick:this.handleClick,onFocus:this.handleFocus,onKeyDown:this.handleKeydown,placeholder:this.state.focused?"":this.placeholderText,ref:this.searchInputRef,type:"search",value:this.inputValue})),""!==this.inputValue&&Le.createElement(d.Av,{className:Ve,"data-e2e":"megamenu-top-bar-clear_button",onClick:this.handleClearButtonClick,type:"submit"},Le.createElement(o.PcV,{className:"icon"}),Le.createElement(Re,null," ",i.Z.t("megamenu.search_bar.clear_search"))),Le.createElement(d.Av,{className:c()(Ke,"no_spinner"),"data-e2e":"megamenu-top-bar-search-button",onClick:this.handleSearchButtonClick,type:"submit"},Le.createElement(o.VI_,{className:"icon"}),Le.createElement(Re,null,i.Z.t("megamenu.search_bar.search")))),this.renderVisuallyHiddenResultsCount(),this.renderSuggestions()))}}et.propTypes={extraClasses:he.exports.string,focused:he.exports.bool,handleSearchFocus:he.exports.func,keepSuggestionsOnBlur:he.exports.bool,onSearchFocus:he.exports.func,placeholderText:he.exports.string,query:he.exports.string,searchPage:he.exports.bool,searchPath:he.exports.string.isRequired,searchFunction:he.exports.func},et.defaultProps={extraClasses:"",focused:!1,handleSearchFocus:s.ZT,keepSuggestionsOnBlur:!1,onSearchFocus:s.ZT,placeholderText:null,query:"",searchFunction:s.uX,searchPage:!1};var tt=n(6341);function nt(e){return{type:tt.Z.SET_IS_HAMBURGER_MENU_OPEN,isOpen:e}}var rt="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},it={exports:{}};var ot,at,st,ut;function lt(){if(at)return ot;at=1;return ot="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}it.exports=function(){if(ut)return st;ut=1;var e=lt();function t(){}function n(){}return n.resetWarningCache=t,st=function(){function r(t,n,r,i,o,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var ct="data:image/svg+xml,%3csvg role='img' viewBox='0 0 224.64 49.93' xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eScribd%3c/title%3e%3cpath d='m185.74 18.66c0-2.61-2.05-4.29-5.78-4.29h-7.96v9h7.72c3.56-.01 6.02-1.62 6.02-4.71z' fill='none'/%3e%3cpath d='m140.33 19.63c0-3.24-2.46-5.18-6.68-5.18h-8.05v10.55h8c3.93 0 6.73-2 6.73-5.37z' fill='none'/%3e%3cpath d='m180.26 26h-8.26v9.21h8.76c4 0 6.41-1.75 6.41-4.7s-2.36-4.51-6.91-4.51z' fill='none'/%3e%3cpath d='m210.77 14.44h-6.12v20.66h6.12c6.6 0 10.81-4.48 10.81-10.29s-4.21-10.37-10.81-10.37z' fill='none'/%3e%3cpath d='m4.47 24.61a8.3 8.3 0 0 0 6.68 3 7.15 7.15 0 0 0 5.45-2.1 7 7 0 0 0 2-5 6 6 0 0 0 -1.93-4.71 6.11 6.11 0 0 0 -4.11-1.71 9.26 9.26 0 0 0 -1.79.23 7.51 7.51 0 0 1 -1.43.27q-1.59 0-1.59-1.92 0-3.23 3.22-5.55a15.19 15.19 0 0 1 1.93-1.18 16.08 16.08 0 0 1 6.65-1.32 23 23 0 0 1 13 3.78l-2.84 4.08 3.94 2.6 5.34-7.62-1.72-1.35a27.57 27.57 0 0 0 -17.75-6.11c-10.4 0-17.67 6.38-17.67 15.52v.12.53c.01 3.59.92 6.43 2.62 8.44z' fill='%231e7b85'/%3e%3cpath d='m31.35 22.22a7.15 7.15 0 0 0 -5.45 2.1 7 7 0 0 0 -2 5 6 6 0 0 0 1.94 4.68 6.11 6.11 0 0 0 4.16 1.75 9.22 9.22 0 0 0 1.79-.23 7.5 7.5 0 0 1 1.43-.27q1.59 0 1.59 1.92a6 6 0 0 1 -.15 1.34c-1.76 4.32-6.29 6.8-12.83 6.8a25.37 25.37 0 0 1 -15.22-5l3.56-4.16-3.76-2.9-6.41 7.59 1.63 1.46a30.13 30.13 0 0 0 20.15 7.63c.84 0 1.65 0 2.44-.11a19 19 0 0 0 11.68-4.55q4.67-4.21 4.67-11.63 0-5.38-2.54-8.4a8.3 8.3 0 0 0 -6.68-3.02z' fill='%231e7b85'/%3e%3cg fill='%2300293f'%3e%3cpath d='m155.2 11.72h2.95v26.1h-2.95z'/%3e%3cpath d='m184.58 24.33a6.32 6.32 0 0 0 4.14-6.08c0-4-3.36-6.53-8.5-6.53h-11.12v26.1h11.6c5.71 0 9.47-2.65 9.47-7.16 0-3.66-2.5-5.4-5.59-6.33zm-12.58-9.96h8c3.73 0 5.78 1.68 5.78 4.29 0 3.1-2.46 4.7-6 4.7h-7.78v-9zm8.76 20.81h-8.76v-9.18h8.24c4.55 0 6.94 1.64 6.94 4.51s-2.45 4.67-6.4 4.67z'/%3e%3cpath d='m103.58 35.55c-5.74 0-10.11-4.74-10.11-10.81s4.33-10.74 10.11-10.74a11.35 11.35 0 0 1 8.2 3.58l2-2.16a13.59 13.59 0 0 0 -10.18-4.14c-7.68 0-13.2 6.08-13.2 13.54s5.6 13.45 13.11 13.45a13.59 13.59 0 0 0 10.49-4.58l-2-1.9c-2.49 2.38-4.84 3.76-8.42 3.76z'/%3e%3cpath d='m74.08 23.36c-5.75-1.23-7.08-2.61-7.08-5.11s2.15-4.25 5.55-4.25a11.47 11.47 0 0 1 7.53 2.83l1.72-2.27a13.62 13.62 0 0 0 -9.17-3.21c-5 0-8.58 3-8.58 7.16s2.76 6.27 8.76 7.57c5.48 1.16 6.79 2.54 6.79 5 0 2.65-2.31 4.48-5.82 4.48a12.43 12.43 0 0 1 -9-3.69l-1.78 2.13a15.27 15.27 0 0 0 10.67 4.2c5.18 0 8.91-2.91 8.91-7.42 0-4.03-2.69-6.15-8.5-7.42z'/%3e%3cpath d='m143.31 19.52c0-4.7-3.69-7.79-9.44-7.79h-11.22v26.1h2.95v-10.15h7.46l7.57 10.14h3.62l-8-10.67c4.08-.73 7.06-3.27 7.06-7.63zm-17.71 5.48v-10.56h8.06c4.21 0 6.68 1.94 6.68 5.18s-2.81 5.38-6.73 5.38h-8z'/%3e%3cpath d='m210.77 11.72h-9.06v26.1h9.06c8.2 0 13.87-5.71 13.87-13.09s-5.64-13.01-13.87-13.01zm0 23.38h-6.12v-20.66h6.12c6.6 0 10.81 4.55 10.81 10.37s-4.21 10.29-10.81 10.29z'/%3e%3c/g%3e%3c/svg%3e",dt="BareHeader-module_wrapper__phIKZ",pt="BareHeader-module_logoContainer__2dOcb",ft="BareHeader-module_uploadButton__p1eXA",ht="BareHeader-module_uploadText__n8r5Z",gt="BareHeader-module_helpLink__hM-sH",mt="BareHeader-module_logo__1dppm",vt=()=>{(0,s.L9)("navigation_bare_header:logo:click",(0,s.cd)())},_t=e=>{var{rootPath:t}=e;return r.createElement("a",{className:mt,href:t,target:"_blank","data-e2e":"bare-header-logo-button","data-button":"bare-header-logo",onClick:vt},r.createElement("img",{src:ct,alt:"Scribd Logo"}))};_t.propTypes={rootPath:it.exports.string.isRequired};var At=e=>{var{uploadPath:t}=e;return r.createElement(a.Av,{href:t,className:ft,"data-e2e":"megamenu-top-bar-upload-button"},r.createElement(o.TVG,null),r.createElement("span",{className:ht},i.Z.t("shared.navigation.upload")))};At.propTypes={uploadPath:it.exports.string},At.defaultProps={uploadPath:"/upload-document"};var yt=e=>{var{helpUrl:t}=e;return r.createElement(a.Av,{className:gt,"data-e2e":"helpLink",href:t},i.Z.t("shared.footer.help_faq"))};function bt(e){var{brand:t,errorStatus:n,rootPath:i,uploadPath:o,helpUrl:a}=e,s=n>=500||200===n||400===n||"pmp"===t;return r.createElement("section",{className:dt},r.createElement("div",{className:pt},r.createElement(_t,{rootPath:i})),s?r.createElement(yt,{helpUrl:a}):null!==o?r.createElement(At,{uploadPath:o}):null)}yt.propTypes={helpUrl:it.exports.string},yt.defaultProps={helpUrl:"https://support.scribd.com/hc/en-us"},bt.propTypes={brand:it.exports.string,errorStatus:it.exports.number,helpUrl:it.exports.string,rootPath:it.exports.string,uploadPath:it.exports.string},bt.defaultProps={brand:null,errorStatus:0,helpUrl:null,rootPath:"/",uploadPath:null};var Et="audiobook",wt="book",xt="document",It={MEGAMENU_CONTAINER:"global_header",MODAL_FLASHES:"modal_flashes"},Mt="megamenu_read_free",St={BACK:"BACK",DOWN:"down",FORWARD:"FORWARD",UP:"up"},Ct={XL:"xl",L:"l",M:"m",S:"s",XS:"xs",XXS:"xxs"};Object.values(Ct);var Nt={DS1:{breakpoint_320:320,breakpoint_360:360,breakpoint_450:450,breakpoint_550:550,breakpoint_700:700,breakpoint_950:950,breakpoint_1024:1024,breakpoint_1141:1141,breakpoint_1190:1190,breakpoint_1376:1376},DS2:{[Ct.XXS]:320,[Ct.XS]:360,[Ct.S]:512,[Ct.M]:808,[Ct.L]:1008,[Ct.XL]:1248}};function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lt(e){for(var t=1;t{var t={};return Object.keys(e).forEach((n=>{t[n]=Lt(Lt(Lt({},e[n]),qt[n]),{},{dataName:n})})),t},Zt=e=>"sheetmusic"===e.dataName||!!(e.categoryLinks&&e.totalCategoryCount>6),Gt=11;var Yt=e=>{var t=(0,s.Ng)(e);t&&t.length&&t[0].focus()};function Ht(e){return!e.isSubscriber&&e.isEligibleForFreeTrial}var Wt=.25;function Vt(e){var{isKeyboardUser:t,scrollDirection:n,showTopBar:r=!0}=e;return"undefined"===typeof window||!!r&&(!!t||(window.scrollY{var{currentLanguage:t,languageClickEventName:n,onChangeLanguage:r}=this.props;r&&r(e.name),(0,s.gb)(n,{locale:e.lang,current_locale:t.lang}),this.setState({selectedLanguage:e})})),Dt(this,"handleLearnMoreClick",(e=>{var{currentLanguage:t,onLearnMoreClick:n}=this.props;(0,s.gb)("language_picker:learn_more:click",{current_locale:t.lang}),n(e)})),this.state={selectedLanguage:e.currentLanguage}}render(){var{languageLinkClassName:e,languages:t}=this.props;return r.createElement("div",null,r.createElement("ul",{className:on,role:"menu"},t.map((t=>r.createElement(nn,{className:e,key:t.lcid,language:t,onClick:()=>this.handleLanguageClick(t),selected:t.lang===this.state.selectedLanguage.lang})))),r.createElement("a",{href:"#",onClick:this.handleLearnMoreClick,className:rn,"data-e2e":"learn_more_link"},i.Z.t("megamenu.language_links.learn_more")))}}an.propTypes={currentLanguage:it.exports.shape({prefix:it.exports.string,href:it.exports.string,lcid:it.exports.string,name:it.exports.string,lang:it.exports.string}).isRequired,languages:it.exports.arrayOf(it.exports.shape({prefix:it.exports.string,href:it.exports.string,lcid:it.exports.string,name:it.exports.string,lang:it.exports.string})).isRequired,languageClickEventName:it.exports.string,languageLinkClassName:it.exports.string,onChangeLanguage:it.exports.func,onLearnMoreClick:it.exports.func},an.defaultProps={languageClickEventName:"language_picker:header:language:click",languageLinkClassName:null,onLearnMoreClick:s.ZT};var sn="LanguageDropdown-module_wrapper__-37-F",un="LanguageDropdown-module_caretDownIcon__QhgpY",ln="LanguageDropdown-module_languageHeader__nJOkC",cn="LanguageDropdown-module_languageIcon__koqn3",dn="LanguageDropdown-module_languageLink__dnQuP",pn="LanguageDropdown-module_menuHandle__HRYV2",fn="LanguageDropdown-module_menuItems__ZblWj";class hn extends r.Component{constructor(e){super(e),Dt(this,"sendLanguageClickTracking",(e=>{(0,s.gb)("megamenu:topbar:language_menu:language:click",{clicked:e})})),Dt(this,"handleLearnMoreClick",(e=>{e.preventDefault(),(0,s.gb)("megamenu:topbar:learn_more:click"),this.props.openLanguageModal({focusTarget:this.menuHandleRef,propsPath:this.props.languageModalPropsPath})})),Dt(this,"handleMenuClose",(()=>{this.menuHandleRef.current.focus()})),Dt(this,"handleMenuOpen",(()=>{(0,s.gb)("language_picker:header:clicked",{current_locale:this.props.currentLanguage.lang})})),this.menuHandleRef=r.createRef()}renderEnglishLabel(e){return"en"===e?null:r.createElement("span",{className:"visually_hidden",lang:"en"},"Change Language")}renderHandle(e){return r.createElement(r.Fragment,null,e,r.createElement(o.pO,{className:un}),this.renderEnglishLabel(e),r.createElement("span",{className:"visually_hidden",lang:e},i.Z.t("megamenu.language.change_language")))}render(){var{currentLanguage:e,languages:t,onMouseEnter:n}=this.props;return r.createElement("div",{className:sn,"data-e2e":"megamenu-top-bar-language-dropdown",onMouseEnter:n},r.createElement(ie,{buttonStyle:a.oB.NONE,"data-e2e":"megamenu-top-bar-language-picker-button",handle:this.renderHandle(e.prefix),handleNodeRef:this.menuHandleRef,onClose:this.handleMenuClose,onOpen:this.handleMenuOpen,openOnHover:!0,menuHandleClassName:pn,menuItemsClassName:fn},r.createElement("h3",{className:ln},r.createElement(o.SQ0,{className:cn}),i.Z.t("megamenu.language_picker_dropdown.language")),r.createElement(an,{currentLanguage:e,languageLinkClassName:dn,languages:t,onLearnMoreClick:this.handleLearnMoreClick,onChangeLanguage:e=>this.sendLanguageClickTracking(e)})))}}hn.propTypes={currentLanguage:it.exports.shape({prefix:it.exports.string,href:it.exports.string,lcid:it.exports.string,name:it.exports.string,lang:it.exports.string}).isRequired,languages:it.exports.arrayOf(it.exports.shape({prefix:it.exports.string,href:it.exports.string,lcid:it.exports.string,name:it.exports.string,lang:it.exports.string})).isRequired,languageModalPropsPath:it.exports.string.isRequired,onMouseEnter:it.exports.func,openLanguageModal:it.exports.func.isRequired},hn.defaultProps={onMouseEnter:s.ZT};var gn=(0,u.$j)((e=>{var{currentLanguage:t,languages:n}=e.i18n,{languageModalPropsPath:r}=e.static.routes;return{currentLanguage:t,languages:n,languageModalPropsPath:r}}))(hn),mn="ReadFreeButton-module_wrapper__1-jez";function vn(e){var{className:t,documentType:n,href:o,isLoggedIn:a,isSubscriber:u,loc:l,onClick:p,openSignUpModal:f,trialDuration:h}=e,m=a?"logged_in":"logged_out";return r.createElement(d.KM,{className:c()(mn,t),"data-e2e":e["data-e2e"],onClick:()=>{u||(0,s.Ug)(Mt,{documentType:n}),(0,s.L9)("improved_join_button:click",Lt({type:m},(0,s.cd)())),p(),a?(0,s.uX)(o):f({loc:l,nextUrl:o})},size:Ct.S},h?i.Z.t("shared.trial_duration.read_free_days",{trialDuration:h}):r.createElement(r.Fragment,null,r.createElement(g.TX,null,i.Z.t("shared.loading_button.tooltip_content.loading")),r.createElement(g.Fx,null)))}vn.propTypes={"data-e2e":it.exports.string,className:it.exports.string,documentType:it.exports.string,href:it.exports.string.isRequired,isLoggedIn:it.exports.bool.isRequired,isSubscriber:it.exports.bool,loc:it.exports.string.isRequired,onClick:it.exports.func,openSignUpModal:it.exports.func.isRequired,trialDuration:it.exports.number},vn.defaultProps={"data-e2e":null,className:null,onClick:s.ZT};var _n=(0,u.$j)((e=>{var t;return{documentType:null===(t=e.page)||void 0===t?void 0:t.word_document.type,isSubscriber:e.user.isSubscriber,trialDuration:e.personalization.trialDuration}}))(vn),An={exports:{}};!function(e,t){(function(){var n,r="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",a=16,s=32,u=64,l=128,c=256,d=1/0,p=9007199254740991,f=NaN,h=4294967295,g=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",s],["partialRight",u],["rearg",c]],m="[object Arguments]",v="[object Array]",_="[object Boolean]",A="[object Date]",y="[object Error]",b="[object Function]",E="[object GeneratorFunction]",w="[object Map]",x="[object Number]",I="[object Object]",M="[object Promise]",S="[object RegExp]",C="[object Set]",N="[object String]",T="[object Symbol]",L="[object WeakMap]",D="[object ArrayBuffer]",O="[object DataView]",k="[object Float32Array]",R="[object Float64Array]",j="[object Int8Array]",P="[object Int16Array]",U="[object Int32Array]",z="[object Uint8Array]",B="[object Uint8ClampedArray]",q="[object Uint16Array]",F="[object Uint32Array]",Z=/\b__p \+= '';/g,G=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,V=RegExp(H.source),Q=RegExp(W.source),K=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ne.source),ie=/^\s+/,oe=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,_e=/^(?:0|[1-9]\d*)$/,Ae=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ye=/($^)/,be=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="\\u2700-\\u27bf",Ie="a-z\\xdf-\\xf6\\xf8-\\xff",Me="A-Z\\xc0-\\xd6\\xd8-\\xde",Se="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ne="['\u2019]",Te="["+Ee+"]",Le="["+Ce+"]",De="["+we+"]",Oe="\\d+",ke="["+xe+"]",Re="["+Ie+"]",je="[^"+Ee+Ce+Oe+xe+Ie+Me+"]",Pe="\\ud83c[\\udffb-\\udfff]",Ue="[^"+Ee+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",qe="["+Me+"]",Fe="\\u200d",Ze="(?:"+Re+"|"+je+")",Ge="(?:"+qe+"|"+je+")",Ye="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",He="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",We="(?:"+De+"|"+Pe+")"+"?",Ve="["+Se+"]?",Qe=Ve+We+("(?:"+Fe+"(?:"+[Ue,ze,Be].join("|")+")"+Ve+We+")*"),Ke="(?:"+[ke,ze,Be].join("|")+")"+Qe,Xe="(?:"+[Ue+De+"?",De,ze,Be,Te].join("|")+")",$e=RegExp(Ne,"g"),Je=RegExp(De,"g"),et=RegExp(Pe+"(?="+Pe+")|"+Xe+Qe,"g"),tt=RegExp([qe+"?"+Re+"+"+Ye+"(?="+[Le,qe,"$"].join("|")+")",Ge+"+"+He+"(?="+[Le,qe+Ze,"$"].join("|")+")",qe+"?"+Ze+"+"+Ye,qe+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,Ke].join("|"),"g"),nt=RegExp("["+Fe+Ee+we+Se+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,st={};st[k]=st[R]=st[j]=st[P]=st[U]=st[z]=st[B]=st[q]=st[F]=!0,st[m]=st[v]=st[D]=st[_]=st[O]=st[A]=st[y]=st[b]=st[w]=st[x]=st[I]=st[S]=st[C]=st[N]=st[L]=!1;var ut={};ut[m]=ut[v]=ut[D]=ut[O]=ut[_]=ut[A]=ut[k]=ut[R]=ut[j]=ut[P]=ut[U]=ut[w]=ut[x]=ut[I]=ut[S]=ut[C]=ut[N]=ut[T]=ut[z]=ut[B]=ut[q]=ut[F]=!0,ut[y]=ut[b]=ut[L]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,dt=parseInt,pt="object"==typeof rt&&rt&&rt.Object===Object&&rt,ft="object"==typeof self&&self&&self.Object===Object&&self,ht=pt||ft||Function("return this")(),gt=t&&!t.nodeType&&t,mt=gt&&e&&!e.nodeType&&e,vt=mt&&mt.exports===gt,_t=vt&&pt.process,At=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||_t&&_t.binding&&_t.binding("util")}catch(t){}}(),yt=At&&At.isArrayBuffer,bt=At&&At.isDate,Et=At&&At.isMap,wt=At&&At.isRegExp,xt=At&&At.isSet,It=At&&At.isTypedArray;function Mt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function St(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function Ot(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function nn(e,t){for(var n=e.length;n--&&Ft(t,e[n],0)>-1;);return n}var rn=Wt({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"}),on=Wt({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+lt[e]}function sn(e){return nt.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,r=e.length,i=0,a=[];++n",""":'"',"'":"'"});var vn=function e(t){var oe=(t=null==t?ht:vn.defaults(ht.Object(),t,vn.pick(ht,ot))).Array,Ee=t.Date,we=t.Error,xe=t.Function,Ie=t.Math,Me=t.Object,Se=t.RegExp,Ce=t.String,Ne=t.TypeError,Te=oe.prototype,Le=xe.prototype,De=Me.prototype,Oe=t["__core-js_shared__"],ke=Le.toString,Re=De.hasOwnProperty,je=0,Pe=function(){var e=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ue=De.toString,ze=ke.call(Me),Be=ht._,qe=Se("^"+ke.call(Re).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=vt?t.Buffer:n,Ze=t.Symbol,Ge=t.Uint8Array,Ye=Fe?Fe.allocUnsafe:n,He=ln(Me.getPrototypeOf,Me),We=Me.create,Ve=De.propertyIsEnumerable,Qe=Te.splice,Ke=Ze?Ze.isConcatSpreadable:n,Xe=Ze?Ze.iterator:n,et=Ze?Ze.toStringTag:n,nt=function(){try{var e=po(Me,"defineProperty");return e({},"",{}),e}catch(t){}}(),rt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,lt=Ee&&Ee.now!==ht.Date.now&&Ee.now,pt=t.setTimeout!==ht.setTimeout&&t.setTimeout,ft=Ie.ceil,gt=Ie.floor,mt=Me.getOwnPropertySymbols,_t=Fe?Fe.isBuffer:n,At=t.isFinite,zt=Te.join,Wt=ln(Me.keys,Me),_n=Ie.max,An=Ie.min,yn=Ee.now,bn=t.parseInt,En=Ie.random,wn=Te.reverse,xn=po(t,"DataView"),In=po(t,"Map"),Mn=po(t,"Promise"),Sn=po(t,"Set"),Cn=po(t,"WeakMap"),Nn=po(Me,"create"),Tn=Cn&&new Cn,Ln={},Dn=Uo(xn),On=Uo(In),kn=Uo(Mn),Rn=Uo(Sn),jn=Uo(Cn),Pn=Ze?Ze.prototype:n,Un=Pn?Pn.valueOf:n,zn=Pn?Pn.toString:n;function Bn(e){if(ts(e)&&!Ga(e)&&!(e instanceof Gn)){if(e instanceof Zn)return e;if(Re.call(e,"__wrapped__"))return zo(e)}return new Zn(e)}var qn=function(){function e(){}return function(t){if(!es(t))return{};if(We)return We(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Fn(){}function Zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Gn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function ur(e,t,r,i,o,a){var s,u=1&t,l=2&t,c=4&t;if(r&&(s=o?r(e,i,o,a):r(e)),s!==n)return s;if(!es(e))return e;var d=Ga(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return Ni(e,s)}else{var p=go(e),f=p==b||p==E;if(Va(e))return wi(e,u);if(p==I||p==m||f&&!o){if(s=l||f?{}:vo(e),!u)return l?function(e,t){return Ti(e,ho(e),t)}(e,function(e,t){return e&&Ti(t,Ds(t),e)}(s,e)):function(e,t){return Ti(e,fo(e),t)}(e,ir(s,e))}else{if(!ut[p])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case D:return xi(e);case _:case A:return new r(+e);case O:return function(e,t){var n=t?xi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case k:case R:case j:case P:case U:case z:case B:case q:case F:return Ii(e,n);case w:return new r;case x:case N:return new r(e);case S:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new r;case T:return i=e,Un?Me(Un.call(i)):{}}var i}(e,p,u)}}a||(a=new Qn);var h=a.get(e);if(h)return h;a.set(e,s),as(e)?e.forEach((function(n){s.add(ur(n,t,r,n,e,a))})):ns(e)&&e.forEach((function(n,i){s.set(i,ur(n,t,r,i,e,a))}));var g=d?n:(c?l?io:ro:l?Ds:Ls)(e);return Ct(g||e,(function(n,i){g&&(n=e[i=n]),tr(s,i,ur(n,t,r,i,e,a))})),s}function lr(e,t,r){var i=r.length;if(null==e)return!i;for(e=Me(e);i--;){var o=r[i],a=t[o],s=e[o];if(s===n&&!(o in e)||!a(s))return!1}return!0}function cr(e,t,i){if("function"!=typeof e)throw new Ne(r);return Lo((function(){e.apply(n,i)}),t)}function dr(e,t,n,r){var i=-1,o=Dt,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=kt(t,$t(n))),r?(o=Ot,a=!1):t.length>=200&&(o=en,a=!1,t=new Vn(t));e:for(;++i-1},Hn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Wn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(In||Hn),string:new Yn}},Wn.prototype.delete=function(e){var t=lo(this,e).delete(e);return this.size-=t?1:0,t},Wn.prototype.get=function(e){return lo(this,e).get(e)},Wn.prototype.has=function(e){return lo(this,e).has(e)},Wn.prototype.set=function(e,t){var n=lo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Vn.prototype.add=Vn.prototype.push=function(e){return this.__data__.set(e,i),this},Vn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.clear=function(){this.__data__=new Hn,this.size=0},Qn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Qn.prototype.get=function(e){return this.__data__.get(e)},Qn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Hn){var r=n.__data__;if(!In||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wn(r)}return n.set(e,t),this.size=n.size,this};var pr=Oi(yr),fr=Oi(br,!0);function hr(e,t){var n=!0;return pr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,r){for(var i=-1,o=e.length;++i0&&n(s)?t>1?vr(s,t-1,n,r,i):Rt(i,s):r||(i[i.length]=s)}return i}var _r=ki(),Ar=ki(!0);function yr(e,t){return e&&_r(e,t,Ls)}function br(e,t){return e&&Ar(e,t,Ls)}function Er(e,t){return Lt(t,(function(t){return Xa(e[t])}))}function wr(e,t){for(var r=0,i=(t=Ai(t,e)).length;null!=e&&rt}function Sr(e,t){return null!=e&&Re.call(e,t)}function Cr(e,t){return null!=e&&t in Me(e)}function Nr(e,t,r){for(var i=r?Ot:Dt,o=e[0].length,a=e.length,s=a,u=oe(a),l=1/0,c=[];s--;){var d=e[s];s&&t&&(d=kt(d,$t(t))),l=An(d.length,l),u[s]=!r&&(t||o>=120&&d.length>=120)?new Vn(s&&d):n}d=e[0];var p=-1,f=u[0];e:for(;++p=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Yr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&Qe.call(s,u,1),Qe.call(e,u,1);return e}function Wr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Ao(i)?Qe.call(e,i,1):di(e,i)}}return e}function Vr(e,t){return e+gt(En()*(t-e+1))}function Qr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return Do(So(e,t,ru),e+"")}function Xr(e){return Xn(Bs(e))}function $r(e,t){var n=Bs(e);return Ro(n,sr(t,0,n.length))}function Jr(e,t,r,i){if(!es(e))return e;for(var o=-1,a=(t=Ai(t,e)).length,s=a-1,u=e;null!=u&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=oe(i);++r>>1,a=e[o];null!==a&&!us(a)&&(n?a<=t:a=200){var l=t?null:Qi(e);if(l)return dn(l);a=!1,i=en,u=new Vn}else u=t?[]:s;e:for(;++r=i?e:ri(e,t,r)}var Ei=rt||function(e){return ht.clearTimeout(e)};function wi(e,t){if(t)return e.slice();var n=e.length,r=Ye?Ye(n):new e.constructor(n);return e.copy(r),r}function xi(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function Ii(e,t){var n=t?xi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Mi(e,t){if(e!==t){var r=e!==n,i=null===e,o=e===e,a=us(e),s=t!==n,u=null===t,l=t===t,c=us(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||i&&s&&l||!r&&l||!o)return 1;if(!i&&!a&&!c&&e1?r[o-1]:n,s=o>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(o--,a):n,s&&yo(r[0],r[1],s)&&(a=o<3?n:a,o=1),t=Me(t);++i-1?o[a?t[s]:s]:n}}function zi(e){return no((function(t){var i=t.length,o=i,a=Zn.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if("function"!=typeof s)throw new Ne(r);if(a&&!u&&"wrapper"==ao(s))var u=new Zn([],!0)}for(o=u?o:i;++o1&&A.reverse(),p&&c<_&&(A.length=c),this&&this!==ht&&this instanceof l&&(I=v||Pi(I)),I.apply(x,A)}}function qi(e,t){return function(n,r){return function(e,t,n,r){return yr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Fi(e,t){return function(r,i){var o;if(r===n&&i===n)return t;if(r!==n&&(o=r),i!==n){if(o===n)return i;"string"==typeof r||"string"==typeof i?(r=li(r),i=li(i)):(r=ui(r),i=ui(i)),o=e(r,i)}return o}}function Zi(e){return no((function(t){return t=kt(t,$t(uo())),Kr((function(n){var r=this;return e(t,(function(e){return Mt(e,r,n)}))}))}))}function Gi(e,t){var r=(t=t===n?" ":li(t)).length;if(r<2)return r?Qr(t,e):t;var i=Qr(t,ft(e/fn(t)));return sn(t)?bi(hn(i),0,e).join(""):i.slice(0,e)}function Yi(e){return function(t,r,i){return i&&"number"!=typeof i&&yo(t,r,i)&&(r=i=n),t=fs(t),r===n?(r=t,t=0):r=fs(r),function(e,t,n,r){for(var i=-1,o=_n(ft((t-e)/(n||1)),0),a=oe(o);o--;)a[r?o:++i]=e,e+=n;return a}(t,r,i=i===n?tu))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var p=-1,f=!0,h=2&r?new Vn:n;for(a.set(e,t),a.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ae,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(g,(function(n){var r="_."+n[0];t&n[1]&&!Dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ue):[]}(r),n)))}function ko(e){var t=0,r=0;return function(){var i=yn(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ro(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,oa(e,r)}));function pa(e){var t=Bn(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var ha=no((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Gn&&Ao(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:fa,args:[o],thisArg:n}),new Zn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var ga=Li((function(e,t,n){Re.call(e,n)?++e[n]:or(e,n,1)}));var ma=Ui(Zo),va=Ui(Go);function _a(e,t){return(Ga(e)?Ct:pr)(e,uo(t,3))}function Aa(e,t){return(Ga(e)?Nt:fr)(e,uo(t,3))}var ya=Li((function(e,t,n){Re.call(e,n)?e[n].push(t):or(e,n,[t])}));var ba=Kr((function(e,t,n){var r=-1,i="function"==typeof t,o=Ha(e)?oe(e.length):[];return pr(e,(function(e){o[++r]=i?Mt(t,e,n):Tr(e,t,n)})),o})),Ea=Li((function(e,t,n){or(e,n,t)}));function wa(e,t){return(Ga(e)?kt:zr)(e,uo(t,3))}var xa=Li((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ia=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yo(e,t[0],t[1])?t=[]:n>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),Gr(e,vr(t,1),[])})),Ma=lt||function(){return ht.Date.now()};function Sa(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Xi(e,l,n,n,n,n,t)}function Ca(e,t){var i;if("function"!=typeof t)throw new Ne(r);return e=hs(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Na=Kr((function(e,t,n){var r=1;if(n.length){var i=cn(n,so(Na));r|=s}return Xi(e,r,t,n,i)})),Ta=Kr((function(e,t,n){var r=3;if(n.length){var i=cn(n,so(Ta));r|=s}return Xi(t,r,e,n,i)}));function La(e,t,i){var o,a,s,u,l,c,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Ne(r);function g(t){var r=o,i=a;return o=a=n,d=t,u=e.apply(i,r)}function m(e){var r=e-c;return c===n||r>=t||r<0||f&&e-d>=s}function v(){var e=Ma();if(m(e))return _(e);l=Lo(v,function(e){var n=t-(e-c);return f?An(n,s-(e-d)):n}(e))}function _(e){return l=n,h&&o?g(e):(o=a=n,u)}function A(){var e=Ma(),r=m(e);if(o=arguments,a=this,c=e,r){if(l===n)return function(e){return d=e,l=Lo(v,t),p?g(e):u}(c);if(f)return Ei(l),l=Lo(v,t),g(c)}return l===n&&(l=Lo(v,t)),u}return t=ms(t)||0,es(i)&&(p=!!i.leading,s=(f="maxWait"in i)?_n(ms(i.maxWait)||0,t):s,h="trailing"in i?!!i.trailing:h),A.cancel=function(){l!==n&&Ei(l),d=0,o=c=a=l=n},A.flush=function(){return l===n?u:_(Ma())},A}var Da=Kr((function(e,t){return cr(e,1,t)})),Oa=Kr((function(e,t,n){return cr(e,ms(t)||0,n)}));function ka(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ne(r);var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(ka.Cache||Wn),n}function Ra(e){if("function"!=typeof e)throw new Ne(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ka.Cache=Wn;var ja=yi((function(e,t){var n=(t=1==t.length&&Ga(t[0])?kt(t[0],$t(uo())):kt(vr(t,1),$t(uo()))).length;return Kr((function(r){for(var i=-1,o=An(r.length,n);++i=t})),Za=Lr(function(){return arguments}())?Lr:function(e){return ts(e)&&Re.call(e,"callee")&&!Ve.call(e,"callee")},Ga=oe.isArray,Ya=yt?$t(yt):function(e){return ts(e)&&Ir(e)==D};function Ha(e){return null!=e&&Ja(e.length)&&!Xa(e)}function Wa(e){return ts(e)&&Ha(e)}var Va=_t||mu,Qa=bt?$t(bt):function(e){return ts(e)&&Ir(e)==A};function Ka(e){if(!ts(e))return!1;var t=Ir(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Xa(e){if(!es(e))return!1;var t=Ir(e);return t==b||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $a(e){return"number"==typeof e&&e==hs(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var ns=Et?$t(Et):function(e){return ts(e)&&go(e)==w};function rs(e){return"number"==typeof e||ts(e)&&Ir(e)==x}function is(e){if(!ts(e)||Ir(e)!=I)return!1;var t=He(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==ze}var os=wt?$t(wt):function(e){return ts(e)&&Ir(e)==S};var as=xt?$t(xt):function(e){return ts(e)&&go(e)==C};function ss(e){return"string"==typeof e||!Ga(e)&&ts(e)&&Ir(e)==N}function us(e){return"symbol"==typeof e||ts(e)&&Ir(e)==T}var ls=It?$t(It):function(e){return ts(e)&&Ja(e.length)&&!!st[Ir(e)]};var cs=Hi(Ur),ds=Hi((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Ha(e))return ss(e)?hn(e):Ni(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=go(e);return(t==w?un:t==C?dn:Bs)(e)}function fs(e){return e?(e=ms(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function hs(e){var t=fs(e),n=t%1;return t===t?n?t-n:t:0}function gs(e){return e?sr(hs(e),0,h):0}function ms(e){if("number"==typeof e)return e;if(us(e))return f;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=ge.test(e);return n||ve.test(e)?dt(e.slice(2),n?2:8):he.test(e)?f:+e}function vs(e){return Ti(e,Ds(e))}function _s(e){return null==e?"":li(e)}var As=Di((function(e,t){if(xo(t)||Ha(t))Ti(t,Ls(t),e);else for(var n in t)Re.call(t,n)&&tr(e,n,t[n])})),ys=Di((function(e,t){Ti(t,Ds(t),e)})),bs=Di((function(e,t,n,r){Ti(t,Ds(t),e,r)})),Es=Di((function(e,t,n,r){Ti(t,Ls(t),e,r)})),ws=no(ar);var xs=Kr((function(e,t){e=Me(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&yo(t[0],t[1],o)&&(i=1);++r1),t})),Ti(e,io(e),n),r&&(n=ur(n,7,eo));for(var i=t.length;i--;)di(n,t[i]);return n}));var js=no((function(e,t){return null==e?{}:function(e,t){return Yr(e,t,(function(t,n){return Ss(e,n)}))}(e,t)}));function Ps(e,t){if(null==e)return{};var n=kt(io(e),(function(e){return[e]}));return t=uo(t),Yr(e,n,(function(e,n){return t(e,n[0])}))}var Us=Ki(Ls),zs=Ki(Ds);function Bs(e){return null==e?[]:Jt(e,Ls(e))}var qs=ji((function(e,t,n){return t=t.toLowerCase(),e+(n?Fs(t):t)}));function Fs(e){return Ks(_s(e).toLowerCase())}function Zs(e){return(e=_s(e))&&e.replace(Ae,rn).replace(Je,"")}var Gs=ji((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ys=ji((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Hs=Ri("toLowerCase");var Ws=ji((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Vs=ji((function(e,t,n){return e+(n?" ":"")+Ks(t)}));var Qs=ji((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ks=Ri("toUpperCase");function Xs(e,t,r){return e=_s(e),(t=r?n:t)===n?function(e){return it.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var $s=Kr((function(e,t){try{return Mt(e,n,t)}catch(r){return Ka(r)?r:new we(r)}})),Js=no((function(e,t){return Ct(t,(function(t){t=Po(t),or(e,t,Na(e[t],e))})),e}));function eu(e){return function(){return e}}var tu=zi(),nu=zi(!0);function ru(e){return e}function iu(e){return Rr("function"==typeof e?e:ur(e,1))}var ou=Kr((function(e,t){return function(n){return Tr(n,e,t)}})),au=Kr((function(e,t){return function(n){return Tr(e,n,t)}}));function su(e,t,n){var r=Ls(t),i=Er(t,r);null!=n||es(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Er(t,Ls(t)));var o=!(es(n)&&"chain"in n)||!!n.chain,a=Xa(e);return Ct(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Ni(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})})),e}function uu(){}var lu=Zi(kt),cu=Zi(Tt),du=Zi(Ut);function pu(e){return bo(e)?Ht(Po(e)):function(e){return function(t){return wr(t,e)}}(e)}var fu=Yi(),hu=Yi(!0);function gu(){return[]}function mu(){return!1}var vu=Fi((function(e,t){return e+t}),0),_u=Vi("ceil"),Au=Fi((function(e,t){return e/t}),1),yu=Vi("floor");var bu=Fi((function(e,t){return e*t}),1),Eu=Vi("round"),wu=Fi((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new Ne(r);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Sa,Bn.assign=As,Bn.assignIn=ys,Bn.assignInWith=bs,Bn.assignWith=Es,Bn.at=ws,Bn.before=Ca,Bn.bind=Na,Bn.bindAll=Js,Bn.bindKey=Ta,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ga(e)?e:[e]},Bn.chain=pa,Bn.chunk=function(e,t,r){t=(r?yo(e,t,r):t===n)?1:_n(hs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=oe(ft(i/t));oo?0:o+r),(i=i===n||i>o?o:hs(i))<0&&(i+=o),i=r>i?0:gs(i);r>>0)?(e=_s(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=li(t))&&sn(e)?bi(hn(e),0,r):e.split(t,r):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new Ne(r);return t=null==t?0:_n(hs(t),0),Kr((function(n){var r=n[t],i=bi(n,0,t);return r&&Rt(i,r),Mt(e,this,i)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?ri(e,1,t):[]},Bn.take=function(e,t,r){return e&&e.length?ri(e,0,(t=r||t===n?1:hs(t))<0?0:t):[]},Bn.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?ri(e,(t=i-(t=r||t===n?1:hs(t)))<0?0:t,i):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?fi(e,uo(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?fi(e,uo(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new Ne(r);return es(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),La(e,t,{leading:i,maxWait:t,trailing:o})},Bn.thru=fa,Bn.toArray=ps,Bn.toPairs=Us,Bn.toPairsIn=zs,Bn.toPath=function(e){return Ga(e)?kt(e,Po):us(e)?[e]:Ni(jo(_s(e)))},Bn.toPlainObject=vs,Bn.transform=function(e,t,n){var r=Ga(e),i=r||Va(e)||ls(e);if(t=uo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:es(e)&&Xa(o)?qn(He(e)):{}}return(i?Ct:yr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Bn.unary=function(e){return Sa(e,1)},Bn.union=ta,Bn.unionBy=na,Bn.unionWith=ra,Bn.uniq=function(e){return e&&e.length?ci(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?ci(e,uo(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?ci(e,n,t):[]},Bn.unset=function(e,t){return null==e||di(e,t)},Bn.unzip=ia,Bn.unzipWith=oa,Bn.update=function(e,t,n){return null==e?e:pi(e,t,_i(n))},Bn.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:pi(e,t,_i(r),i)},Bn.values=Bs,Bn.valuesIn=function(e){return null==e?[]:Jt(e,Ds(e))},Bn.without=aa,Bn.words=Xs,Bn.wrap=function(e,t){return Pa(_i(t),e)},Bn.xor=sa,Bn.xorBy=ua,Bn.xorWith=la,Bn.zip=ca,Bn.zipObject=function(e,t){return mi(e||[],t||[],tr)},Bn.zipObjectDeep=function(e,t){return mi(e||[],t||[],Jr)},Bn.zipWith=da,Bn.entries=Us,Bn.entriesIn=zs,Bn.extend=ys,Bn.extendWith=bs,su(Bn,Bn),Bn.add=vu,Bn.attempt=$s,Bn.camelCase=qs,Bn.capitalize=Fs,Bn.ceil=_u,Bn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ms(r))===r?r:0),t!==n&&(t=(t=ms(t))===t?t:0),sr(ms(e),t,r)},Bn.clone=function(e){return ur(e,4)},Bn.cloneDeep=function(e){return ur(e,5)},Bn.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:n)},Bn.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:n)},Bn.conformsTo=function(e,t){return null==t||lr(e,t,Ls(t))},Bn.deburr=Zs,Bn.defaultTo=function(e,t){return null==e||e!==e?t:e},Bn.divide=Au,Bn.endsWith=function(e,t,r){e=_s(e),t=li(t);var i=e.length,o=r=r===n?i:sr(hs(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},Bn.eq=Ba,Bn.escape=function(e){return(e=_s(e))&&Q.test(e)?e.replace(W,on):e},Bn.escapeRegExp=function(e){return(e=_s(e))&&re.test(e)?e.replace(ne,"\\$&"):e},Bn.every=function(e,t,r){var i=Ga(e)?Tt:hr;return r&&yo(e,t,r)&&(t=n),i(e,uo(t,3))},Bn.find=ma,Bn.findIndex=Zo,Bn.findKey=function(e,t){return Bt(e,uo(t,3),yr)},Bn.findLast=va,Bn.findLastIndex=Go,Bn.findLastKey=function(e,t){return Bt(e,uo(t,3),br)},Bn.floor=yu,Bn.forEach=_a,Bn.forEachRight=Aa,Bn.forIn=function(e,t){return null==e?e:_r(e,uo(t,3),Ds)},Bn.forInRight=function(e,t){return null==e?e:Ar(e,uo(t,3),Ds)},Bn.forOwn=function(e,t){return e&&yr(e,uo(t,3))},Bn.forOwnRight=function(e,t){return e&&br(e,uo(t,3))},Bn.get=Ms,Bn.gt=qa,Bn.gte=Fa,Bn.has=function(e,t){return null!=e&&mo(e,t,Sr)},Bn.hasIn=Ss,Bn.head=Ho,Bn.identity=ru,Bn.includes=function(e,t,n,r){e=Ha(e)?e:Bs(e),n=n&&!r?hs(n):0;var i=e.length;return n<0&&(n=_n(i+n,0)),ss(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ft(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:hs(n);return i<0&&(i=_n(r+i,0)),Ft(e,t,i)},Bn.inRange=function(e,t,r){return t=fs(t),r===n?(r=t,t=0):r=fs(r),function(e,t,n){return e>=An(t,n)&&e<_n(t,n)}(e=ms(e),t,r)},Bn.invoke=Ts,Bn.isArguments=Za,Bn.isArray=Ga,Bn.isArrayBuffer=Ya,Bn.isArrayLike=Ha,Bn.isArrayLikeObject=Wa,Bn.isBoolean=function(e){return!0===e||!1===e||ts(e)&&Ir(e)==_},Bn.isBuffer=Va,Bn.isDate=Qa,Bn.isElement=function(e){return ts(e)&&1===e.nodeType&&!is(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Ha(e)&&(Ga(e)||"string"==typeof e||"function"==typeof e.splice||Va(e)||ls(e)||Za(e)))return!e.length;var t=go(e);if(t==w||t==C)return!e.size;if(xo(e))return!jr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Dr(e,t)},Bn.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return i===n?Dr(e,t,n,r):!!i},Bn.isError=Ka,Bn.isFinite=function(e){return"number"==typeof e&&At(e)},Bn.isFunction=Xa,Bn.isInteger=$a,Bn.isLength=Ja,Bn.isMap=ns,Bn.isMatch=function(e,t){return e===t||Or(e,t,co(t))},Bn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Or(e,t,co(t),r)},Bn.isNaN=function(e){return rs(e)&&e!=+e},Bn.isNative=function(e){if(wo(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return kr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=rs,Bn.isObject=es,Bn.isObjectLike=ts,Bn.isPlainObject=is,Bn.isRegExp=os,Bn.isSafeInteger=function(e){return $a(e)&&e>=-9007199254740991&&e<=p},Bn.isSet=as,Bn.isString=ss,Bn.isSymbol=us,Bn.isTypedArray=ls,Bn.isUndefined=function(e){return e===n},Bn.isWeakMap=function(e){return ts(e)&&go(e)==L},Bn.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==Ir(e)},Bn.join=function(e,t){return null==e?"":zt.call(e,t)},Bn.kebabCase=Gs,Bn.last=Ko,Bn.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=hs(r))<0?_n(i+o,0):An(o,i-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):qt(e,Gt,o,!0)},Bn.lowerCase=Ys,Bn.lowerFirst=Hs,Bn.lt=cs,Bn.lte=ds,Bn.max=function(e){return e&&e.length?gr(e,ru,Mr):n},Bn.maxBy=function(e,t){return e&&e.length?gr(e,uo(t,2),Mr):n},Bn.mean=function(e){return Yt(e,ru)},Bn.meanBy=function(e,t){return Yt(e,uo(t,2))},Bn.min=function(e){return e&&e.length?gr(e,ru,Ur):n},Bn.minBy=function(e,t){return e&&e.length?gr(e,uo(t,2),Ur):n},Bn.stubArray=gu,Bn.stubFalse=mu,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=bu,Bn.nth=function(e,t){return e&&e.length?Zr(e,hs(t)):n},Bn.noConflict=function(){return ht._===this&&(ht._=Be),this},Bn.noop=uu,Bn.now=Ma,Bn.pad=function(e,t,n){e=_s(e);var r=(t=hs(t))?fn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Gi(gt(i),n)+e+Gi(ft(i),n)},Bn.padEnd=function(e,t,n){e=_s(e);var r=(t=hs(t))?fn(e):0;return t&&rt){var i=e;e=t,t=i}if(r||e%1||t%1){var o=En();return An(e+o*(t-e+ct("1e-"+((o+"").length-1))),t)}return Vr(e,t)},Bn.reduce=function(e,t,n){var r=Ga(e)?jt:Vt,i=arguments.length<3;return r(e,uo(t,4),n,i,pr)},Bn.reduceRight=function(e,t,n){var r=Ga(e)?Pt:Vt,i=arguments.length<3;return r(e,uo(t,4),n,i,fr)},Bn.repeat=function(e,t,r){return t=(r?yo(e,t,r):t===n)?1:hs(t),Qr(_s(e),t)},Bn.replace=function(){var e=arguments,t=_s(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,r){var i=-1,o=(t=Ai(t,e)).length;for(o||(o=1,e=n);++ip)return[];var n=h,r=An(e,h);t=uo(t),e-=h;for(var i=Kt(r,t);++n=a)return e;var u=r-fn(i);if(u<1)return i;var l=s?bi(s,0,u).join(""):e.slice(0,u);if(o===n)return l+i;if(s&&(u+=l.length-u),os(o)){if(e.slice(u).search(o)){var c,d=l;for(o.global||(o=Se(o.source,_s(fe.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var p=c.index;l=l.slice(0,p===n?u:p)}}else if(e.indexOf(li(o),u)!=u){var f=l.lastIndexOf(o);f>-1&&(l=l.slice(0,f))}return l+i},Bn.unescape=function(e){return(e=_s(e))&&V.test(e)?e.replace(H,mn):e},Bn.uniqueId=function(e){var t=++je;return _s(e)+t},Bn.upperCase=Qs,Bn.upperFirst=Ks,Bn.each=_a,Bn.eachRight=Aa,Bn.first=Ho,su(Bn,function(){var e={};return yr(Bn,(function(t,n){Re.call(Bn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Bn.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),Ct(["drop","take"],(function(e,t){Gn.prototype[e]=function(r){r=r===n?1:_n(hs(r),0);var i=this.__filtered__&&!t?new Gn(this):this.clone();return i.__filtered__?i.__takeCount__=An(r,i.__takeCount__):i.__views__.push({size:An(r,h),type:e+(i.__dir__<0?"Right":"")}),i},Gn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Gn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:uo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Gn.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Gn.prototype[e]=function(){return this.__filtered__?new Gn(this):this[n](1)}})),Gn.prototype.compact=function(){return this.filter(ru)},Gn.prototype.find=function(e){return this.filter(e).head()},Gn.prototype.findLast=function(e){return this.reverse().find(e)},Gn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Gn(this):this.map((function(n){return Tr(n,e,t)}))})),Gn.prototype.reject=function(e){return this.filter(Ra(uo(e)))},Gn.prototype.slice=function(e,t){e=hs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Gn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},Gn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Gn.prototype.toArray=function(){return this.take(h)},yr(Gn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=Bn[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(Bn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,u=t instanceof Gn,l=s[0],c=u||Ga(t),d=function(e){var t=o.apply(Bn,Rt([e],s));return i&&p?t[0]:t};c&&r&&"function"==typeof l&&1!=l.length&&(u=c=!1);var p=this.__chain__,f=!!this.__actions__.length,h=a&&!p,g=u&&!f;if(!a&&c){t=g?t:new Gn(this);var m=e.apply(t,s);return m.__actions__.push({func:fa,args:[d],thisArg:n}),new Zn(m,p)}return h&&g?e.apply(this,s):(m=this.thru(d),h?i?m.value()[0]:m.value():m)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ga(i)?i:[],e)}return this[n]((function(n){return t.apply(Ga(n)?n:[],e)}))}})),yr(Gn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";Re.call(Ln,r)||(Ln[r]=[]),Ln[r].push({name:t,func:n})}})),Ln[Bi(n,2).name]=[{name:"wrapper",func:n}],Gn.prototype.clone=function(){var e=new Gn(this.__wrapped__);return e.__actions__=Ni(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ni(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ni(this.__views__),e},Gn.prototype.reverse=function(){if(this.__filtered__){var e=new Gn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Gn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ga(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,r=this;r instanceof Fn;){var i=zo(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Gn){var t=e;return this.__actions__.length&&(t=new Gn(this)),(t=t.reverse()).__actions__.push({func:fa,args:[ea],thisArg:n}),new Zn(t,this.__chain__)}return this.thru(ea)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Xe&&(Bn.prototype[Xe]=function(){return this}),Bn}();mt?((mt.exports=vn)._=vn,gt._=vn):ht._=vn}).call(rt)}(An,An.exports);var yn={wrapper:"PersonaIcon-module_wrapper__2tCjv",hasInitials:"PersonaIcon-module_hasInitials__OavQm",icon:"PersonaIcon-module_icon__0Y4bf",initials:"PersonaIcon-module_initials__VNxDW",userProfilePicture:"PersonaIcon-module_userProfilePicture__paNzD"},bn=e=>r.createElement("span",{className:yn.initials,"aria-hidden":"true"},e),En=e=>{var{personaIconUrl:t,personaIconRetinaUrl:n}=e;if(t)return r.createElement("img",{className:yn.userProfilePicture,src:t,srcSet:"".concat(n," 2x"),alt:""})},wn=e=>{var{hasPublishedDocuments:t,personaIconUrl:n}=e;if(!t&&!n)return r.createElement(o.VqY,{className:yn.icon})};function xn(e){var{hasPublishedDocuments:t,extraCssClasses:n,personaIconUrl:i,initials:o,personaIconRetinaUrl:a,"data-e2e":s}=e,u=t&&!i;return r.createElement("div",{className:c()(yn.wrapper,n,{[yn.hasInitials]:u}),"aria-hidden":"true","data-e2e":s},wn({hasPublishedDocuments:t,personaIconUrl:i}),En({personaIconUrl:i,personaIconRetinaUrl:a}),u&&bn(o))}xn.propTypes={"data-e2e":it.exports.string,hasPublishedDocuments:it.exports.bool.isRequired,extraCssClasses:it.exports.string,personaIconUrl:it.exports.string,initials:it.exports.string,personaIconRetinaUrl:it.exports.string},xn.defaultProps={"data-e2e":"persona_icon",extraCssClasses:"",personaIconUrl:"",initials:"",personaIconRetinaUrl:""};var In=new s.nJ,Mn=Nt.DS2;function Sn(e){var{openDayZeroModal:t,hasPublishedDocuments:n,initials:o,isLoggedIn:a,personaIconUrl:u,personaIconRetinaUrl:l,width:c}=e,d=An.exports.throttle((()=>{var e=In.getCookieValue();a&&(c<=Mn.s||e&&"null"!==e&&t())}),300);return r.createElement("span",{className:"wrapper__megamenu_user_icon",onMouseOver:()=>d(),onFocus:s.ZT},r.createElement(g.TX,null,i.Z.t("megamenu.user_menu.visually_hidden_user_settings")),r.createElement(xn,{hasPublishedDocuments:n,initials:o,personaIconUrl:u,personaIconRetinaUrl:l}))}Sn.propTypes={openDayZeroModal:it.exports.func,hasPublishedDocuments:it.exports.bool.isRequired,initials:it.exports.string,isLoggedIn:it.exports.bool,personaIconUrl:it.exports.string,personaIconRetinaUrl:it.exports.string,width:it.exports.number.isRequired},Sn.defaultProps={openDayZeroModal:s.ZT,initials:"",isLoggedIn:!1,personaIconUrl:"",personaIconRetinaUrl:""};var Cn=(0,u.$j)((e=>{var{user:t,viewport:n}=e;return{hasPublishedDocuments:t.hasPublishedDocuments,initials:t.initials,isLoggedIn:t.isLoggedIn,personaIconRetinaUrl:t.personaIconRetinaUrl,personaIconUrl:t.personaIconUrl,width:n.width}}))(Sn);function Nn(e){var{brand:t,currentLanguagePrefix:n,handleLanguageClick:a,nodeRef:u,openDayZeroModal:l,openSignUpModal:p,openSignInModal:f,routes:{accountSettingsPath:h,logoutPath:g,myUploadsPath:m,profilePath:v,referralsUrl:_,savedPath:A,statsPath:y,subscribeUrl:b,supportPath:E,uploadPath:w},showUserIcon:x,trackingLocation:I,user:{hasPublishedDocuments:M,isLoggedIn:S,isSubscriber:C,isTrialing:N,name:T}}=e,L=(e,t)=>{(0,s.L9)("megamenu:".concat(I,":user_menu:dropdown_item:click"),{clicked:e}),t&&t()},D=()=>r.createElement("li",{className:"divider"});return r.createElement("div",{className:"wrapper__navigation_hamburger_menu_user_menu",ref:u,"data-e2e":"megamenu-user-menu"},S?r.createElement("div",{className:c()("user_row",{with_user_icon:x})},x&&r.createElement(Cn,{openDayZeroModal:l}),r.createElement("p",{className:"user_menu_greeting"},i.Z.t("megamenu.user_menu.hi_name",{name:T}))):r.createElement("div",{className:"welcome_row"},r.createElement("p",{className:"user_menu_greeting"},i.Z.t("megamenu.logged_out.user_menu.welcome_to_scribd"))),r.createElement("ul",{className:"list_of_links"},S&&r.createElement("li",null,r.createElement(d.Av,{className:"text_button save_button",href:A,onClick:()=>L("save"),"data-e2e":"megamenu-user-menu-save-button","aria-label":i.Z.t("shared.save_button.saved")},r.createElement(d.d7,{below:!0,size:Ct.S},r.createElement(o.GtZ,{className:"icon"})),r.createElement(d.d7,{atAndAbove:!0,size:Ct.S,classes:"icon_breakpoint_mobile"},r.createElement(o.cwU,{className:"icon"})),r.createElement("span",{className:"icon_button_text"},i.Z.t("shared.save_button.saved")))),"pmp"===t?null:r.createElement("li",{key:"upload"},r.createElement(d.Av,{href:w,onClick:()=>L("upload"),className:"text_button upload_button"},r.createElement(d.d7,{below:!0,size:Ct.S},r.createElement(o.TVG,{className:"icon"})),r.createElement(d.d7,{atAndAbove:!0,size:Ct.S,classes:"icon_breakpoint_mobile"},r.createElement(o.gqx,{className:"icon"})),i.Z.t("megamenu.upload.upload_header"))),r.createElement("li",null,r.createElement(d.Av,{href:"#",className:"text_button language_button",onClick:e=>L("language",a(e))},i.Z.t("megamenu.user_menu.language",{current_language:n.toUpperCase()}))),D(),r.createElement("li",null,r.createElement(d.Av,{className:"text_button",href:_,onClick:e=>{S?L("referral_link"):(e=>{e.preventDefault(),L("referral_link"),p({loc:"megamenu:user_menu",nextUrl:_})})(e)}},C||N?i.Z.t("megamenu.user_menu.invite_friends"):i.Z.t("megamenu.user_menu.read_for_free"))),D(),S?r.createElement(r.Fragment,null,r.createElement("li",{key:"account"},r.createElement(d.Av,{href:h,className:"text_button account_settings_button",onClick:()=>L("account_settings")},i.Z.t("megamenu.user_menu.your_account"))),r.createElement("li",{key:"profile"},r.createElement(d.Av,{href:v,className:"text_button public_profile_button",onClick:()=>L("public_profile")},i.Z.t("megamenu.user_menu.public_profile"))),"pmp"===t?null:r.createElement(r.Fragment,null,r.createElement("li",{key:"uploads"},r.createElement(d.Av,{href:m,className:"text_button my_uploads_button",onClick:()=>L("my_uploads")},i.Z.t("megamenu.user_menu.document_uploads"))),(()=>{if(M)return r.createElement("li",{key:"stats"},r.createElement(d.Av,{href:y,className:"text_button document_stats_button",onClick:()=>L("document_stats")},i.Z.t("megamenu.user_menu.document_stats")))})()),r.createElement("li",{key:"support"},r.createElement(d.Av,{href:E,className:"text_button support_button",onClick:()=>L("support")},i.Z.t("megamenu.user_menu.faq_and_support"))),r.createElement("li",{key:"signout"},r.createElement(d.Av,{href:g,className:"text_button sign_out_button",onClick:()=>L("sign_out")},i.Z.t("shared.common.sign_out")))):r.createElement(r.Fragment,null,r.createElement("li",{key:"support"},r.createElement(d.Av,{href:E,className:"text_button support_button",onClick:()=>L("support")},i.Z.t("megamenu.user_menu.faq_and_support"))),r.createElement("li",{key:"signin",className:"sign_in_button",onClick:()=>L("sign_in")},r.createElement(d.Av,{className:"text_button",onClick:()=>{f({loc:"megamenu:user_menu",nextUrl:b})}},i.Z.t("shared.common.sign_in"))))))}Nn.propTypes={brand:it.exports.string,currentLanguagePrefix:it.exports.string.isRequired,handleLanguageClick:it.exports.func,nodeRef:it.exports.shape({current:"undefined"!==typeof Element?it.exports.instanceOf(Element):it.exports.any}),openDayZeroModal:it.exports.func,openSignInModal:it.exports.func.isRequired,openSignUpModal:it.exports.func.isRequired,routes:it.exports.shape({accountSettingsPath:it.exports.string.isRequired,logoutPath:it.exports.string.isRequired,myUploadsPath:it.exports.string.isRequired,profilePath:it.exports.string.isRequired,referralsUrl:it.exports.string.isRequired,savedPath:it.exports.string.isRequired,statsPath:it.exports.string,subscribeUrl:it.exports.string.isRequired,supportPath:it.exports.string.isRequired,uploadPath:it.exports.string.isRequired}).isRequired,showUserIcon:it.exports.bool,trackingLocation:it.exports.string,user:it.exports.shape({hasPublishedDocuments:it.exports.bool.isRequired,isLoggedIn:it.exports.bool.isRequired,isSubscriber:it.exports.bool.isRequired,isTrialing:it.exports.bool.isRequired,name:it.exports.string})},Nn.defaultProps={brand:null,handleLanguageClick:s.ZT,openDayZeroModal:s.ZT,showUserIcon:!1};var Tn=(0,u.$j)((e=>{var{i18n:t,static:{routes:n},user:r}=e;return{currentLanguagePrefix:t.currentLanguage.prefix,routes:{accountSettingsPath:n.accountSettingsPath,logoutPath:n.logoutPath,myUploadsPath:n.myUploadsPath,profilePath:n.profilePath,referralsUrl:n.referralsUrl,savedPath:n.savedPath,statsPath:n.statsPath,subscribeUrl:n.subscribeUrl,supportPath:n.supportPath,uploadPath:n.uploadPath},user:{hasPublishedDocuments:r.hasPublishedDocuments,isLoggedIn:r.isLoggedIn,isSubscriber:r.isSubscriber,isTrialing:r.isTrialing,name:r.name}}}))(Nn),Ln="UserDropdown-module_wrapper__OXbCB",Dn="UserDropdown-module_menuItems__mQ22u";class On extends r.Component{constructor(e){super(e),Dt(this,"handleLanguageClick",(e=>{e.preventDefault(),this.props.openLanguageModal({focusTarget:this.menuHandleRef,propsPath:this.props.languageModalPropsPath})})),Dt(this,"handleClose",(()=>{this.menuHandleRef.current.focus()})),this.menuHandleRef=r.createRef()}render(){var{brand:e,openDayZeroModal:t,onOpenMenu:n,openSignUpModal:i,openSignInModal:o,trackingLocation:a}=this.props;return r.createElement("div",{className:Ln},r.createElement(ie,{"data-e2e":"megamenu-top-bar-user-menu-button",handle:r.createElement(Cn,{openDayZeroModal:t}),handleNodeRef:this.menuHandleRef,onOpen:n,onClose:this.handleClose,menuItemsClassName:Dn},r.createElement(Tn,{brand:e,handleLanguageClick:this.handleLanguageClick,openDayZeroModal:t,openSignInModal:o,openSignUpModal:i,trackingLocation:a})))}}On.propTypes={accountSettingsPath:it.exports.string.isRequired,brand:it.exports.string,languageModalPropsPath:it.exports.string.isRequired,openDayZeroModal:it.exports.func,onOpenMenu:it.exports.func,openLanguageModal:it.exports.func.isRequired,openSignInModal:it.exports.func.isRequired,openSignUpModal:it.exports.func.isRequired,trackingLocation:it.exports.string},On.defaultProps={brand:null,openDayZeroModal:s.ZT};var kn=(0,u.$j)((e=>{var{static:{routes:t}}=e;return{accountSettingsPath:t.accountSettingsPath,languageModalPropsPath:t.languageModalPropsPath}}),null)(On),Rn={wrapper:"GridRow-module_wrapper__Uub42",extendedGrid:"GridRow-module_extendedGrid__Hm9MG"},jn={exports:{}};var Pn,Un,zn,Bn;function qn(){if(Un)return Pn;Un=1;return Pn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}jn.exports=function(){if(Bn)return zn;Bn=1;var e=qn();function t(){}function n(){}return n.resetWarningCache=t,zn=function(){function r(t,n,r,i,o,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var Fn={exports:{}};!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r{var{children:n,className:i,"data-e2e":o}=e;return r.createElement("div",{ref:t,className:Zn(Gn,i),"data-e2e":o},n)}));function Hn(e){var{children:t,className:n,"data-e2e":i}=e;return r.createElement("div",{className:Zn(Rn.wrapper,n),"data-e2e":i},t)}Yn.displayName="GridContainer",Yn.propTypes={"data-e2e":jn.exports.string,children:jn.exports.oneOfType([jn.exports.arrayOf(jn.exports.node),jn.exports.node]).isRequired,className:jn.exports.string},Hn.propTypes={"data-e2e":jn.exports.string,children:jn.exports.any.isRequired,className:jn.exports.string};var Wn={XL:"xl",L:"l",M:"m",S:"s",XS:"xs",XXS:"xxs"},Vn={[Wn.XL]:12,[Wn.L]:12,[Wn.M]:8,[Wn.S]:4,[Wn.XS]:4,[Wn.XXS]:4},Qn=Object.values(Wn),Kn=[0,1,2,3,4,5,6,7,8,9,10,11,12];var Xn={wrapper:"GridColumn-module_wrapper__soqyu",xl_1:"GridColumn-module_xl_1__JReNg",xl_2:"GridColumn-module_xl_2__ry9yU",xl_3:"GridColumn-module_xl_3__OHlvX",xl_4:"GridColumn-module_xl_4__brxcj",xl_5:"GridColumn-module_xl_5__tH7mr",xl_6:"GridColumn-module_xl_6__Z53p6",xl_7:"GridColumn-module_xl_7__oZhoo",xl_8:"GridColumn-module_xl_8__pFyML",xl_9:"GridColumn-module_xl_9__cFKGC",xl_10:"GridColumn-module_xl_10__vZk48",xl_11:"GridColumn-module_xl_11__FexeR",xl_12:"GridColumn-module_xl_12__YZ-Rh",hide_above_xl:"GridColumn-module_hide_above_xl__erar5",hide_below_xl:"GridColumn-module_hide_below_xl__bqFPJ",l_1:"GridColumn-module_l_1__WzmV4",l_2:"GridColumn-module_l_2__Pw-g3",l_3:"GridColumn-module_l_3__K7iWt",l_4:"GridColumn-module_l_4__RAT6-",l_5:"GridColumn-module_l_5__8aWIR",l_6:"GridColumn-module_l_6__MgTYy",l_7:"GridColumn-module_l_7__-W6T1",l_8:"GridColumn-module_l_8__thtI5",l_9:"GridColumn-module_l_9__5JHTC",l_10:"GridColumn-module_l_10__I0f3o",l_11:"GridColumn-module_l_11__RUenR",l_12:"GridColumn-module_l_12__FvEF8",hide_above_l:"GridColumn-module_hide_above_l__UT1-z",hide_below_l:"GridColumn-module_hide_below_l__7M0-X",m_1:"GridColumn-module_m_1__YQJCo",m_2:"GridColumn-module_m_2__c8w6C",m_3:"GridColumn-module_m_3__RA-At",m_4:"GridColumn-module_m_4__6iIKY",m_5:"GridColumn-module_m_5__gTusg",m_6:"GridColumn-module_m_6__iVJpe",m_7:"GridColumn-module_m_7__pou8a",m_8:"GridColumn-module_m_8__3ZSLb",hide_above_m:"GridColumn-module_hide_above_m__zwIrv",hide_below_m:"GridColumn-module_hide_below_m__-PoVO",s_1:"GridColumn-module_s_1__XLGHz",s_2:"GridColumn-module_s_2__1-ptI",s_3:"GridColumn-module_s_3__gGW-l",s_4:"GridColumn-module_s_4__21RHi",hide_above_s:"GridColumn-module_hide_above_s__NbVNC",hide_below_s:"GridColumn-module_hide_below_s__Lbw11",xs_1:"GridColumn-module_xs_1__yycpU",xs_2:"GridColumn-module_xs_2__lfNOB",xs_3:"GridColumn-module_xs_3__2UqhV",xs_4:"GridColumn-module_xs_4__HIdGd",hide_above_xs:"GridColumn-module_hide_above_xs__k1r-Z",hide_below_xs:"GridColumn-module_hide_below_xs__lGMfM",xxs_1:"GridColumn-module_xxs_1__lPpo1",xxs_2:"GridColumn-module_xxs_2__L2HPM",xxs_3:"GridColumn-module_xxs_3__lRrol",xxs_4:"GridColumn-module_xxs_4__qVTq6",hide_above_xxs:"GridColumn-module_hide_above_xxs__h8jYZ",hide_below_xxs:"GridColumn-module_hide_below_xxs__PtxIg"};function $n(e){var{"data-e2e":t,children:n,className:i,xxs:o,xs:a,s,m:u,l,xl:c,hideAbove:d,hideBelow:p}=e,f={xxs:o,xs:a,s,m:u,l,xl:c},h={},g=0;Qn.forEach((e=>{h[e]=f[e]||g,g=h[e]}));var m=function(e){if(!e)return[];var t=Qn.indexOf(e);return Qn.reduce(((e,n,r)=>r<=t?e.concat("hide_above_".concat(n)):e),[])}(d).concat(function(e){if(!e)return[];var t=Qn.indexOf(e);return Qn.reduce(((e,n,r)=>r>t?e.concat("hide_below_".concat(n)):e),[])}(p)).concat(function(e){var t=[];for(var n in e){var r=Vn[n]||0,i=Math.min(e[n],r);i>0&&t.push("".concat(n,"_").concat(i))}return t}(h)).map((e=>Xn[e]));return r.createElement("div",{className:Zn(Xn.wrapper,m,i),"data-e2e":t},n)}$n.propTypes={"data-e2e":jn.exports.string,children:jn.exports.oneOfType([jn.exports.arrayOf(jn.exports.node),jn.exports.node]),xxs:jn.exports.oneOf(Kn),xs:jn.exports.oneOf(Kn),s:jn.exports.oneOf(Kn),m:jn.exports.oneOf(Kn),l:jn.exports.oneOf(Kn),xl:jn.exports.oneOf(Kn),hideBelow:jn.exports.oneOf(Qn),hideAbove:jn.exports.oneOf(Qn),className:jn.exports.string},$n.defaultProps={children:null,xxs:0,xs:0,s:0,m:0,l:0,xl:Vn[Wn.XL],hideBelow:null,hideAbove:null};var Jn=e=>{(0,s.gb)("megamenu:topbar:click",{clicked:e})},er=e=>{var{openSignUpModal:t,savedPath:n,subscribeUrl:a,user:s}=e;return Ht(s)?(e=>{var{isLoggedIn:t,openSignUpModal:n,subscribeUrl:i}=e;return r.createElement(d.d7,{below:!0,size:Ct.S},r.createElement(_n,{className:"read_free_button","data-e2e":"megamenu-top-bar-read-free-button",href:i,isLoggedIn:t,loc:"megamenu:topbar",onClick:()=>Jn("read_free"),openSignUpModal:n}))})({isLoggedIn:s.isLoggedIn,openSignUpModal:t,subscribeUrl:a}):r.createElement(d.d7,{below:!0,size:Ct.S},r.createElement(d.Av,{"aria-label":i.Z.t("shared.save_button.saved"),className:"icon_button saved_button","data-e2e":"megamenu-top-bar-save-button",href:n,onClick:()=>Jn("saved")},r.createElement(d.d7,{below:!0,size:Ct.M},r.createElement(o.GtZ,null)),r.createElement(d.d7,{atAndAbove:!0,size:Ct.M},r.createElement(o.cwU,{className:"saved_icon_solo"})),r.createElement(d.d7,{below:!0,inline:!0,size:Ct.M},r.createElement("span",null,i.Z.t("shared.save_button.saved")))))};function tr(e){var{brand:t,openDayZeroModal:n,openLanguageModal:a,openSignUpModal:u,openSignInModal:l,openHamburgerMenu:p,rootPath:f,savedPath:h,searchFunction:m,searchPath:v,searchQuery:_,subscribeUrl:A,uploadPath:y,user:b}=e;return r.createElement("div",{className:"wrapper__megamenu_top_bar","data-e2e":"megamenu-top-bar"},r.createElement(Yn,null,r.createElement(Hn,null,r.createElement($n,null,r.createElement("div",{className:"top_bar_container"},(e=>{var{openHamburgerMenu:t,rootPath:n}=e;return r.createElement("div",{className:"logo_container","data-e2e":"megamenu-top-bar-logo"},r.createElement(d.d7,{atAndAbove:!0,size:Ct.L},r.createElement("a",{"aria-expanded":!1,className:"hamburger_menu_button flex_col",href:"#sidebar",onClick:e=>{e.preventDefault(),t()},"data-e2e":"hamburger-menu-button"},r.createElement(Xt,null),r.createElement(g.TX,null,i.Z.t("megamenu.navigation.opens_navigation_menu")))),r.createElement("a",{className:"logo_button",href:n,onClick:()=>Jn("logo")},r.createElement("img",{src:(0,s.up)(ct),alt:"Scribd Logo"})))})({openHamburgerMenu:p,rootPath:f}),r.createElement(et,{extraClasses:c()({logged_in:b.isLoggedIn}),searchPath:v,query:_,searchFunction:m,onSearchFocus:()=>Jn("search")}),r.createElement(d.d7,{below:!0,size:Ct.S},r.createElement("div",{className:"action_container","data-e2e":"megamenu-top-bar-actions-container"},r.createElement(d.d7,{below:!0,size:Ct.L},r.createElement(gn,{openLanguageModal:a,onMouseEnter:()=>{return e="language_menu",void(0,s.gb)("megamenu:topbar:".concat(e,":hover"));var e}})),"pmp"===t?null:(e=>r.createElement(d.d7,{below:!0,size:Ct.L},r.createElement(d.Av,{"aria-label":i.Z.t("megamenu.top_bar.upload"),className:"icon_button","data-e2e":"megamenu-top-bar-upload-button",href:e,onClick:()=>Jn("upload")},r.createElement(o.TVG,null),r.createElement("span",null,i.Z.t("megamenu.top_bar.upload")))))(y),er({openSignUpModal:u,subscribeUrl:A,savedPath:h,user:b}),r.createElement(kn,{brand:t,onOpenMenu:()=>{return e="user_menu",void(0,s.gb)("megamenu:topbar:".concat(e,":click"));var e},openDayZeroModal:n,openLanguageModal:a,openSignInModal:l,openSignUpModal:u,trackingLocation:"topbar",user:b}),r.createElement(g.a,null))))))))}tr.propTypes={brand:it.exports.string,openDayZeroModal:it.exports.func,openHamburgerMenu:it.exports.func.isRequired,openLanguageModal:it.exports.func.isRequired,openSignInModal:it.exports.func.isRequired,openSignUpModal:it.exports.func.isRequired,rootPath:it.exports.string.isRequired,searchFunction:it.exports.func,savedPath:it.exports.string.isRequired,searchPath:it.exports.string.isRequired,searchQuery:it.exports.string,subscribeUrl:it.exports.string.isRequired,uploadPath:it.exports.string.isRequired,user:it.exports.shape({id:it.exports.number,isEligibleForFreeTrial:it.exports.bool.isRequired,isLoggedIn:it.exports.bool.isRequired}).isRequired},tr.defaultProps={brand:null,openDayZeroModal:s.ZT,searchQuery:"",searchFunction:s.uX};var nr=(0,u.$j)(null,(e=>({openHamburgerMenu:()=>e(nt(!0))})))(tr),rr="wrapper__navigation_category";function ir(e){var{navItem:t,isChild:n,onClick:i}=e,o=(t.children||[]).map(((e,t)=>r.createElement(ir,{key:t,navItem:e,isChild:!0,onClick:()=>i(e.dataName)})));return r.createElement("li",{className:c()(rr,"nav_category",{is_child:n})},r.createElement(d.Av,{className:"nav_text_button",dataName:"primary-navigation-".concat(t.dataName),href:t.url,onClick:()=>i(t.dataName)},t.name),o&&o.length>0&&r.createElement("ul",{role:"menu",className:"subcategory_list"},o))}ir.propTypes={navItem:it.exports.object,onClick:it.exports.func,isChild:it.exports.bool},ir.defaultProps={onClick:s.ZT,isChild:!1};var or="wrapper__navigation_megamenu_navigation_categories",ar=(e,t)=>{(0,s.gb)("megamenu:topbar:".concat(e,":category:click"),{clicked:t})};function sr(e){var{categories:t,contentType:n}=e;return r.createElement("ul",{className:or,role:"menu"},t.map(((e,t)=>r.createElement(ir,{key:t,navItem:e,onClick:e=>ar(n,e),isChild:e.isChild}))))}sr.propTypes={categories:it.exports.array,contentType:it.exports.string};var ur="sheetmusic",lr=(e,t)=>{(0,s.gb)("megamenu:topbar:".concat(e,":category:click"),{clicked:t})};function cr(e){var{audiobooksAllCategoriesPath:t,booksAllCategoriesPath:n,documentsAllCategoriesPath:a,handleKeyDown:s,handleMenuOpen:u,handleMenuClose:l,magazinesAllCategoriesPath:p,podcastsAllCategories:f,navItem:h,nodeRef:g}=e,m=()=>{if(h.exploreLinks)return r.createElement("p",{className:"grid_column_header"},i.Z.t("megamenu.navigation.explore_content_type",{content_type:h.name}))},v=()=>{if(h.exploreLinks)return r.createElement("ul",{className:"explore-list",role:"menu"},h.exploreLinks.map(((e,t)=>r.createElement(ir,{key:t,onClick:e=>lr(h.dataName,e),navItem:e}))))},_=()=>r.createElement("p",{className:"grid_column_header"},i.Z.t("megamenu.navigation.categories")),A=()=>{var e;switch(h.dataName){case Rt:e=t;break;case zt:e=a;break;case jt:e=p;break;case Pt:e=f;break;default:e=n}return r.createElement(d.Av,{className:"all_categories_button",href:e,onClick:()=>lr(h.dataName,Ot)},i.Z.t("shared.text_links.all_categories"),r.createElement(o.ZzW,{className:"icon"}))},y=()=>r.createElement("div",{className:c()("vertical_divider",{hidden:!h.exploreLinks})});return r.createElement("div",{className:"wrapper__navigation_megamenu_navigation_category_container",onKeyDown:e=>s(e,h),onMouseOver:()=>u(h),onMouseLeave:()=>l(),ref:g},(()=>{if(h.dataName===ur)return r.createElement(Yn,null,r.createElement(Hn,null,h.categoryLinks.map(((e,t)=>{return r.createElement($n,{xl:2,key:t},(n=e,r.createElement("p",{className:"grid_column_header sheetmusic_header"},n.name)),r.createElement(sr,{categories:e.children,contentType:h.dataName}));var n})),r.createElement($n,{xl:6,m:1})))})(),(()=>{if(!(h.dataName===ur||h.totalCategoryCount<=8)){var e=function(e,t){if(t<=Gt)return[e];var n=0;return e.reduce(((e,t)=>{var r=t.children&&t.children.length||0;n+=1+r;var i=Math.floor(n/(Gt+1));return e[i]||(e[i]=[]),e[i]=[...e[i],t],[...e]}),[[]])}(h.categoryLinks,h.totalCategoryCount);return r.createElement(Yn,null,r.createElement(Hn,null,r.createElement($n,{xl:2},m()),r.createElement($n,{xl:1},y()),r.createElement($n,{xl:4},_()),r.createElement($n,{xl:5,m:1})),r.createElement(Hn,null,r.createElement($n,{xl:2},v()),r.createElement($n,{xl:1},y()),r.createElement($n,{xl:2},r.createElement(sr,{categories:e[0],contentType:h.dataName})),r.createElement($n,{xl:2},r.createElement(sr,{categories:e[1],contentType:h.dataName}),A()),r.createElement($n,{xl:5,m:1})))}})(),(()=>{if(!(h.dataName===ur||h.totalCategoryCount>8))return r.createElement(Yn,null,r.createElement(Hn,null,r.createElement($n,{xl:2},m(),v()),r.createElement($n,{xl:1},r.createElement("div",{className:c()("vertical_divider",{hidden:!h.exploreLinks})})),r.createElement($n,{xl:2},_(),r.createElement(sr,{categories:h.categoryLinks,contentType:h.dataName}),A()),r.createElement($n,{xl:2}),r.createElement($n,{xl:5,m:1})))})())}cr.propTypes={audiobooksAllCategoriesPath:it.exports.string.isRequired,booksAllCategoriesPath:it.exports.string.isRequired,documentsAllCategoriesPath:it.exports.string.isRequired,handleMenuOpen:it.exports.func.isRequired,handleMenuClose:it.exports.func.isRequired,handleKeyDown:it.exports.func.isRequired,magazinesAllCategoriesPath:it.exports.string.isRequired,podcastsAllCategories:it.exports.string.isRequired,navItem:it.exports.object,nodeRef:it.exports.oneOfType([it.exports.func,it.exports.shape({current:it.exports.any})])};var dr="WhatIsScribdButton-module_wrapper__qEsyu";function pr(e){var{className:t,onClick:n,onMouseOver:o,whatIsScribdLandingPath:a}=e;return r.createElement(d.Av,{className:c()(dr,t),href:a,"data-e2e":"what-is-scribd-button",onClick:()=>n("whatIsScribd"),onMouseOver:o},i.Z.t("megamenu.what_is_scribd_btn.what_is_scribd"))}pr.propTypes={className:it.exports.string,onClick:it.exports.func,onMouseOver:it.exports.func,whatIsScribdLandingPath:it.exports.string.isRequired},pr.defaultProps={onClick:s.ZT,onMouseOver:s.ZT};var fr={[kt]:"book",[Rt]:"audiobook",[jt]:"magazine",[Pt]:"podcast",[Ut]:"sheet_music",[zt]:"document",[Bt]:"summary"};class hr extends r.Component{constructor(e){var t;super(e),t=this,Dt(this,"componentDidUpdate",(e=>{this.props.selectedMobileBottomTab!==e.selectedMobileBottomTab&&this.setState({currentPage:this.props.selectedMobileBottomTab})})),Dt(this,"handleMenuClose",(()=>{clearTimeout(this.timer),this.timer=setTimeout((()=>{this.setState({openNavItem:null,currentPage:this.props.selectedMobileBottomTab})}),500)})),Dt(this,"handleMenuOpen",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,r=arguments.length>2?arguments[2]:void 0;clearTimeout(t.timer),t.timer=setTimeout((()=>{t.setState({openNavItem:Zt(e)?e:null,currentPage:null},r)}),n)})),Dt(this,"handleExitOpenNavItem",(()=>{this.openNavItemRef.current.focus(),this.setState({openNavItem:null,currentPage:this.props.selectedMobileBottomTab})})),Dt(this,"handleWhatIsScribdButtonMouseOver",(()=>{this.handleMenuOpen()})),Dt(this,"sendClickTracking",(e=>{(0,s.gb)("megamenu:topbar:click",{clicked:e})})),Dt(this,"sendHoverTracking",(e=>{(0,s.gb)("megamenu:topbar:hover",{hovered:e})})),Dt(this,"handleKeyDown",((e,t)=>{e.stopPropagation(),this.navigationCategoryContainerRef.current?this.trapFocusInNagivationContainer(e):e.which!==s.keyMappings.down_arrow&&e.which!==s.keyMappings.space||(e.preventDefault(),this.handleMenuOpen(t,0,(()=>this.trapFocusInNagivationContainer(e))))})),this.state={currentPage:e.selectedMobileBottomTab,openNavItem:null},this.containerRef=r.createRef(),this.primaryNavigationContainerRef=r.createRef(),this.navigationCategoryContainerRef=r.createRef(),this.openNavItemRef=r.createRef(),this.timer=null}renderWhatIsScribdButton(){return r.createElement("li",{className:"nav_item what_is_scribd_section",role:"none"},r.createElement(pr,{className:"what_is_scribd_button nav_item_button",onMouseOver:this.handleWhatIsScribdButtonMouseOver,whatIsScribdLandingPath:this.props.whatIsScribdLandingPath}))}trapFocusInNagivationContainer(e){var t=(0,s.Ng)(this.navigationCategoryContainerRef.current);(0,s._h)({event:e,children:t,exitFunction:this.handleExitOpenNavItem,tabCycle:!1})}render(){var{audiobooksAllCategoriesPath:e,booksAllCategoriesPath:t,documentsAllCategoriesPath:n,magazinesAllCategoriesPath:a,podcastsAllCategories:s,navigationCategories:u,user:l}=this.props,{openNavItem:p,currentPage:f}=this.state,h=l.isSubscriber;return r.createElement("div",{className:c()("wrapper__primary_navigation",{subscribed_view:h,open:p}),onMouseLeave:this.handleMenuClose,ref:this.containerRef},r.createElement(Yn,null,r.createElement(Hn,null,r.createElement($n,null,r.createElement(g.lr,{className:"primaryNavigationCarousel"},r.createElement("ul",{className:"nav_items_list","data-e2e":"primary-navigation",ref:this.primaryNavigationContainerRef,role:"menubar"},this.renderWhatIsScribdButton(),Object.values(u).map(((e,t)=>{var n=fr[e.dataName]===f;return r.createElement("li",{key:t,className:c()("nav_item",e.dataName,{open:p&&p.dataName===e.dataName,is_current_nav_item:n}),role:"none"},r.createElement(d.Av,{"aria-expanded":p&&p.dataName===e.dataName,"aria-haspopup":Zt(e),buttonStyle:d.oB.NONE,className:c()("nav_item_button",e.dataName),"data-e2e":"primary-navigation-".concat(e.dataName,"-button"),href:e.link,nodeRef:p&&p.dataName===e.dataName?this.openNavItemRef:null,onClick:()=>this.sendClickTracking(e.dataName),onKeyDown:t=>this.handleKeyDown(t,e),onMouseEnter:()=>this.sendHoverTracking(e.dataName),onMouseOver:()=>this.handleMenuOpen(e),role:"menuitem"},e.name,n?r.createElement(g.TX,null,i.Z.t("shared.common.selected")):null,Zt(e)&&r.createElement(o.L$g,{className:"icon"})))}))))))),r.createElement("ul",{className:"category_list"},Object.values(u).map((i=>Zt(i)?r.createElement("li",{key:i.dataName,className:c()("category_item",i.dataName,{selected:(null===p||void 0===p?void 0:p.dataName)===i.dataName})},r.createElement(cr,{audiobooksAllCategoriesPath:e,booksAllCategoriesPath:t,documentsAllCategoriesPath:n,magazinesAllCategoriesPath:a,nodeRef:(null===p||void 0===p?void 0:p.dataName)===i.dataName?this.navigationCategoryContainerRef:null,handleMenuClose:this.handleMenuClose,handleMenuOpen:this.handleMenuOpen,handleKeyDown:this.handleKeyDown,navItem:i,podcastsAllCategories:s})):null))))}}hr.propTypes={audiobooksAllCategoriesPath:it.exports.string.isRequired,booksAllCategoriesPath:it.exports.string.isRequired,documentsAllCategoriesPath:it.exports.string.isRequired,magazinesAllCategoriesPath:it.exports.string.isRequired,podcastsAllCategories:it.exports.string.isRequired,navigationCategories:it.exports.object.isRequired,selectedMobileBottomTab:it.exports.string,user:it.exports.shape({id:it.exports.number,isSubscriber:it.exports.bool,isEligibleForFreeTrial:it.exports.bool.isRequired,isDunning:it.exports.bool.isRequired,isPaused:it.exports.bool.isRequired}).isRequired,whatIsScribdLandingPath:it.exports.string.isRequired};function gr(e){var{isFullscreen:t,isKeyboardUser:n,isMegamenuPrimaryNavVisible:i,isMegamenuTopBarVisible:o,isScrolledToDocument:a,openDayZeroModal:s,openLanguageModal:u,openSignUpModal:l,openSignInModal:p,navigationCategories:f,routes:{audiobooksAllCategoriesPath:h,booksAllCategoriesPath:g,documentsAllCategoriesPath:m,magazinesAllCategoriesPath:v,podcastsAllCategories:_,rootPath:A,savedPath:y,searchPath:b,subscribeUrl:E,uploadPath:w,whatIsScribdLandingPath:x},searchFunction:I,searchQuery:M,scrollDirection:S,selectedMobileBottomTab:C,setMegamenuPrimaryNavVisible:N,setMegamenuTopBarVisible:T,user:L}=e;return(0,r.useEffect)((()=>{var e=function(e){var{alwaysShowAboveWidth:t,isKeyboardUser:n,isScrolledToDocument:r,scrollDirection:i}=e;return"undefined"===typeof window||!!n||window.innerWidth>t||!r||i!==St.DOWN}({alwaysShowAboveWidth:Nt.DS1.breakpoint_1024,isKeyboardUser:n,isScrolledToDocument:a,scrollDirection:S}),t=Vt({isKeyboardUser:n,scrollDirection:S,showTopBar:e});t!==i&&N(t),e!==o&&T(e)}),[S,a]),t?null:r.createElement("div",{className:c()("wrapper__megamenu_container",{shadow:o&&!i}),"data-e2e":"megamenu-container",id:It.MEGAMENU_CONTAINER},o?r.createElement(nr,{openDayZeroModal:s,openLanguageModal:u,openSignInModal:p,openSignUpModal:l,rootPath:A,savedPath:y,searchFunction:I,searchPath:b,searchQuery:M,subscribeUrl:E,uploadPath:w,user:L}):null,i?r.createElement(d.d7,{below:!0,size:Ct.L},r.createElement(hr,{audiobooksAllCategoriesPath:h,booksAllCategoriesPath:g,documentsAllCategoriesPath:m,magazinesAllCategoriesPath:v,navigationCategories:Ft(f),podcastsAllCategories:_,selectedMobileBottomTab:C,user:L,whatIsScribdLandingPath:x})):null)}gr.propTypes={isFullscreen:it.exports.bool.isRequired,isKeyboardUser:it.exports.bool.isRequired,isMegamenuPrimaryNavVisible:it.exports.bool.isRequired,isMegamenuTopBarVisible:it.exports.bool.isRequired,isScrolledToDocument:it.exports.bool.isRequired,navigationCategories:it.exports.object.isRequired,openDayZeroModal:it.exports.func,openLanguageModal:it.exports.func.isRequired,openSignInModal:it.exports.func.isRequired,openSignUpModal:it.exports.func.isRequired,routes:it.exports.shape({audiobooksAllCategoriesPath:it.exports.string.isRequired,booksAllCategoriesPath:it.exports.string.isRequired,documentsAllCategoriesPath:it.exports.string.isRequired,magazinesAllCategoriesPath:it.exports.string.isRequired,podcastsAllCategories:it.exports.string.isRequired,rootPath:it.exports.string,savedPath:it.exports.string,searchPath:it.exports.string.isRequired,subscribeUrl:it.exports.string.isRequired,uploadPath:it.exports.string,whatIsScribdLandingPath:it.exports.string.isRequired}).isRequired,scrollDirection:it.exports.oneOf([St.DOWN,St.UP,null]),searchFunction:it.exports.func,searchQuery:it.exports.string,selectedMobileBottomTab:it.exports.string,setMegamenuPrimaryNavVisible:it.exports.func.isRequired,setMegamenuTopBarVisible:it.exports.func.isRequired,trackingLocation:it.exports.string,user:it.exports.shape({id:it.exports.number,isEligibleForFreeTrial:it.exports.bool.isRequired,isSubscriber:it.exports.bool.isRequired,isLoggedIn:it.exports.bool.isRequired,isDunning:it.exports.bool.isRequired,isPaused:it.exports.bool.isRequired}).isRequired},gr.defaultProps={openDayZeroModal:s.ZT,scrollDirection:null,searchFunction:s.uX,searchQuery:""};var mr={setMegamenuPrimaryNavVisible:function(e){return{type:tt.Z.SET_MEGAMENU_PRIMARY_NAV_VISIBLE,isMegamenuPrimaryNavVisible:e}},setMegamenuTopBarVisible:function(e){return{type:tt.Z.SET_MEGAMENU_TOP_BAR_VISIBLE,isMegamenuTopBarVisible:e}}};(0,u.$j)(((e,t)=>{var{searchQuery:n}=t,{currentPage:r,documentViewer:i,static:{routes:o},user:a,viewport:s}=e;return{getMobileAppProps:{androidStoreUrl:o.androidStoreUrl,iosStoreUrl:o.iosStoreUrl},isFullscreen:s.isFullscreen,isKeyboardUser:s.isKeyboardUser,isMegamenuTopBarVisible:r.isMegamenuTopBarVisible,isMegamenuPrimaryNavVisible:r.isMegamenuPrimaryNavVisible,isScrolledToDocument:Boolean(i.fixed_actions||i.fixed_toolbar),navigationCategories:r.navigationCategories,routes:{audiobooksAllCategoriesPath:o.audiobooksAllCategoriesPath,booksAllCategoriesPath:o.booksAllCategoriesPath,documentsAllCategoriesPath:o.documentsAllCategoriesPath,magazinesAllCategoriesPath:o.magazinesAllCategoriesPath,podcastsAllCategories:o.podcastsAllCategories,rootPath:o.rootPath,savedPath:o.savedPath,searchPath:o.searchPath,subscribeUrl:o.subscribeUrl,uploadPath:o.uploadPath,whatIsScribdLandingPath:o.whatIsScribdLandingPath},scrollDirection:r.scrollDirection,searchQuery:n||r.searchQuery,selectedMobileBottomTab:r.selectedMobileBottomTab,user:{id:a.id,isDunning:a.isDunning,isEligibleForFreeTrial:a.isEligibleForFreeTrial,isLoggedIn:a.isLoggedIn,isPaused:a.isPaused,isSubscriber:a.isSubscriber,name:a.name}}}),mr)(gr);function vr(e){return r.createElement(d.Av,{"aria-label":e.label,buttonStyle:d.oB.NONE,className:e.className,"data-e2e":e["data-e2e"],href:e.href,onClick:e.onClick},e.label)}vr.propTypes={className:it.exports.string,"data-e2e":it.exports.string.isRequired,href:it.exports.string,label:it.exports.string.isRequired,onClick:it.exports.func},vr.defaultProps={className:"FooterLink-module_wrapper__V1y4b",onClick:null};var _r={ABOUT_SCRIBD:()=>i.Z.t("shared.footer.about_scribd"),CONTACT_US:()=>i.Z.t("shared.footer.contact_us"),GIFTS:()=>i.Z.t("shared.footer.gifts"),INVITE_FRIENDS:()=>i.Z.t("shared.footer.invite_friends"),JOIN_OUR_TEAM:()=>i.Z.t("shared.footer.join_our_team_exclamation"),OUR_BLOG:()=>i.Z.t("shared.footer.our_blog"),PRESS:()=>i.Z.t("shared.footer.press"),SCRIBD_FOR_ENTERPRISE:()=>i.Z.t("shared.footer.scribd_for_enterprise")},Ar={ABOUT:()=>i.Z.t("shared.footer.about"),GET_OUR_FREE_APPS:()=>i.Z.t("megamenu.hambur_menu.get_our_free_apps"),LEGAL:()=>i.Z.t("shared.footer.legal"),SOCIAL:()=>i.Z.t("shared.footer.social"),SUPPORT:()=>i.Z.t("shared.footer.support")},yr={audiobooks:()=>i.Z.t("content_types.audiobooks"),books:()=>i.Z.t("content_types.books"),documents:()=>i.Z.t("content_types.documents"),magazines:()=>i.Z.t("content_types.magazines"),podcasts:()=>i.Z.t("content_types.podcasts"),sheetmusic:()=>i.Z.t("content_types.sheet_music"),snapshots:()=>i.Z.t("content_types.snapshots")},br={COOKIE_PREFERENCES:()=>i.Z.t("shared.footer.cookie_preferences"),COPYRIGHT:()=>i.Z.t("shared.footer.copyright"),PRIVACY:()=>i.Z.t("shared.footer.privacy"),PRIVACY_REQUEST_FORM:()=>i.Z.t("shared.footer.do_not_sell_share_info"),TERMS:()=>i.Z.t("shared.footer.terms")},Er={FACEBOOK:()=>i.Z.t("shared.social_buttons.scribd_on_facebook_aria_label"),INSTAGRAM:()=>i.Z.t("shared.social_buttons.scribd_on_instagram_aria_label"),PINTEREST:()=>i.Z.t("shared.social_buttons.scribd_on_pinterest_aria_label"),TWITTER:()=>i.Z.t("shared.social_buttons.scribd_on_twitter_aria_label")},wr={FACEBOOK:()=>"Facebook",INSTAGRAM:()=>"Instagram",PINTEREST:()=>"Pinterest",TWITTER:()=>"Twitter"},xr={ACCESSIBILITY:()=>i.Z.t("shared.footer.accessibility"),ADCHOICES:()=>"AdChoices",HELP_FAQ:()=>i.Z.t("shared.footer.help_faq"),PUBLISHERS:()=>i.Z.t("shared.footer.publishers"),PURCHASE_HELP:()=>i.Z.t("shared.footer.purchase_help"),SIMPLIFIED_CANCEL:()=>i.Z.t("shared.footer.cancel_contract")},Ir={wrapper:"Footer-module_wrapper__7jj0T",bottomCopyright:"Footer-module_bottomCopyright__WjBga",bottomLanguage:"Footer-module_bottomLanguage__ZSHe1",bottomLanguageMargin:"Footer-module_bottomLanguageMargin__e40ar",bottomLanguageText:"Footer-module_bottomLanguageText__S7opW",bottomRightContainer:"Footer-module_bottomRightContainer__5MVkq",columnHeader:"Footer-module_columnHeader__gcdjp",columnList:"Footer-module_columnList__fqabA",horizontalColumn:"Footer-module_horizontalColumn__vuSBJ",horizontalDivider:"Footer-module_horizontalDivider__Z6XJu",languageDropdownContent:"Footer-module_languageDropdownContent__Ps0E4",languageLink:"Footer-module_languageLink__IOHdz",menuHandle:"Footer-module_menuHandle__A-Ub8",menuItems:"Footer-module_menuItems__6usGF",topLanguageMargin:"Footer-module_topLanguageMargin__psISJ",verticalColumn:"Footer-module_verticalColumn__-CR6f"};function Mr(e){var{routes:t}=e;return r.createElement(r.Fragment,null,r.createElement("h3",{className:Ir.columnHeader},Ar.ABOUT()),r.createElement("ul",{className:Ir.columnList},r.createElement("li",null,r.createElement(vr,{"data-e2e":"footer_about_column_about_scribd_link",href:t.aboutUrl,label:_r.ABOUT_SCRIBD()})),r.createElement("li",null,r.createElement(vr,{"data-e2e":"footer_about_column_press_link",href:t.pressUrl,label:_r.PRESS()})),r.createElement("li",null,r.createElement(vr,{"data-e2e":"footer_about_column_our_blog_link",href:t.blogUrl,label:_r.OUR_BLOG()})),r.createElement("li",null,r.createElement(vr,{"data-e2e":"footer_about_column_join_our_team_link",href:t.careersUrl,label:_r.JOIN_OUR_TEAM()})),r.createElement("li",null,r.createElement(vr,{"data-e2e":"footer_about_column_contact_us_link",href:t.contactUrl,label:_r.CONTACT_US()})),r.createElement("li",null,r.createElement(vr,{"data-e2e":"footer_about_column_invite_friends_link",href:t.referralsUrl,label:_r.INVITE_FRIENDS()})),r.createElement("li",null,r.createElement(vr,{"data-e2e":"footer_about_column_gifts_link",href:t.giftUrl,label:_r.GIFTS()})),r.createElement("li",null,r.createElement(vr,{"data-e2e":"footer_about_column_scribd_for_enterprise_link",href:t.scribdForEnterpriseUrl,label:_r.SCRIBD_FOR_ENTERPRISE()}))))}var Sr=it.exports.shape({aboutUrl:it.exports.string.isRequired,blogUrl:it.exports.string.isRequired,careersUrl:it.exports.string.isRequired,contactUrl:it.exports.string.isRequired,giftUrl:it.exports.string.isRequired,pressUrl:it.exports.string.isRequired,referralsUrl:it.exports.string.isRequired,scribdForEnterpriseUrl:it.exports.string.isRequired});Mr.propTypes={routes:Sr};var Cr={wrapper:"BackToTopLink-module_wrapper__HTQnD",link:"BackToTopLink-module_link__EOy-v"};function Nr(){var[e,t]=(0,r.useState)(!1),n="#".concat(It.MEGAMENU_CONTAINER),o=()=>{(0,s.k3)(window),window.location.assign(n)};return r.createElement("div",{className:c()(Cr.wrapper,{visually_hidden:!e}),onFocus:()=>t(!0),onBlur:()=>t(!1)},r.createElement("a",{"data-e2e":"back-to-top-link",href:n,className:Cr.link,onClick:e=>{e.preventDefault(),o()},onKeyPress:e=>{e.preventDefault(),e.which===s.keyMappings.enter&&o()}},i.Z.t("shared.common.back_to_top")))}var Tr={contentTypeLink:"ContentTypeColumn-module_contentTypeLink__K3M9d",contentTypesList:"ContentTypeColumn-module_contentTypesList__WIKOq"};function Lr(e){var{routes:t}=e;return r.createElement("ul",{className:Tr.contentTypesList},Object.keys(t).map((e=>r.createElement("li",{key:e},r.createElement(vr,{className:Tr.contentTypeLink,"data-e2e":"footer_content_type_column_".concat(e,"_link"),href:t[e],label:yr[e]()})))))}var Dr=it.exports.shape({audiobooks:it.exports.string,books:it.exports.string,documents:it.exports.string,magazines:it.exports.string,podcasts:it.exports.string,sheetmusic:it.exports.string,snapshots:it.exports.string});function Or(e){var{routes:t}=e,[n,i]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{i((0,s.r6)())}),[]),r.createElement(r.Fragment,null,r.createElement("h3",{className:Ir.columnHeader},Ar.LEGAL()),r.createElement("ul",{className:Ir.columnList},r.createElement("li",null,r.createElement(vr,{"data-e2e":"footer_legal_column_terms_link",href:t.termsUrl,label:br.TERMS()})),r.createElement("li",null,r.createElement(vr,{"data-e2e":"footer_legal_column_privacy_link",href:t.privacyUrl,label:br.PRIVACY()})),r.createElement("li",null,r.createElement(vr,{"data-e2e":"footer_legal_column_copyright_link",href:t.copyrightUrl,label:br.COPYRIGHT()})),!1===n?null:r.createElement("li",null,r.createElement(vr,{"data-e2e":"footer_legal_column_cookie_preferences_link",label:br.COOKIE_PREFERENCES(),onClick:e=>(0,s.MH)(e)})),r.createElement("li",null,r.createElement(vr,{"data-e2e":"footer_legal_privacy_request_form_link",href:t.privacyRequestFormUrl,label:br.PRIVACY_REQUEST_FORM(),onClick:()=>(0,s.L9)("footer:privacy_request_form:click")}))))}Lr.propTypes={routes:Dr};var kr=it.exports.shape({copyrightUrl:it.exports.string.isRequired,privacyUrl:it.exports.string.isRequired,privacyRequestFormUrl:it.exports.string.isRequired,termsUrl:it.exports.string.isRequired});Or.propTypes={routes:kr};var Rr={wrapper:"SocialLink-module_wrapper__7Rvvt",iconImage:"SocialLink-module_iconImage__JSzvR"};function jr(e){var t=e.icon;return r.createElement(d.Av,{buttonStyle:d.oB.NONE,className:e.className,href:e.href,"aria-label":e["aria-label"],"data-e2e":e["data-e2e"]},r.createElement(t,{alt:e.label,className:Rr.iconImage})," ",e.label)}function Pr(e){var{routes:t}=e;return r.createElement(r.Fragment,null,r.createElement("h3",{className:Ir.columnHeader},Ar.SOCIAL()),r.createElement("ul",{className:Ir.columnList},r.createElement("li",null,r.createElement(jr,{"aria-label":Er.INSTAGRAM(),"data-e2e":"footer_social_column_instagram_link",href:t.instagramUrl,icon:o._Yc,label:wr.INSTAGRAM()})),r.createElement("li",null,r.createElement(jr,{"aria-label":Er.TWITTER(),"data-e2e":"footer_social_column_twitter_link",href:t.twitterUrl,icon:o.K7V,label:wr.TWITTER()})),r.createElement("li",null,r.createElement(jr,{"aria-label":Er.FACEBOOK(),"data-e2e":"footer_social_column_facebook_link",href:t.facebookUrl,icon:o.uiq,label:wr.FACEBOOK()})),r.createElement("li",null,r.createElement(jr,{"aria-label":Er.PINTEREST(),"data-e2e":"footer_social_column_pinterest_link",href:t.pinterestUrl,icon:o.U2u,label:wr.PINTEREST()}))))}jr.propTypes={"aria-label":it.exports.string.isRequired,className:it.exports.string,"data-e2e":it.exports.string.isRequired,href:it.exports.string.isRequired,icon:it.exports.any.isRequired,label:it.exports.string.isRequired},jr.defaultProps={className:Rr.wrapper};var Ur=it.exports.shape({facebookUrl:it.exports.string.isRequired,instagramUrl:it.exports.string.isRequired,pinterestUrl:it.exports.string.isRequired,twitterUrl:it.exports.string.isRequired});function zr(e){var{routes:t,showSimpleCancelOption:n}=e;return r.createElement(r.Fragment,null,r.createElement("h3",{className:Ir.columnHeader},Ar.SUPPORT()),r.createElement("ul",{className:Ir.columnList},!1===n?null:r.createElement("li",null,r.createElement(vr,{"data-e2e":"footer_support_simplified_cancel_link",href:t.simpleCancelUrl,label:xr.SIMPLIFIED_CANCEL(),onClick:()=>(0,s.L9)("footer:simplified_cancel_link:click")})),r.createElement("li",null,r.createElement(vr,{"data-e2e":"footer_support_column_help_faq_link",href:t.faqUrl,label:xr.HELP_FAQ()})),r.createElement("li",null,r.createElement(vr,{"data-e2e":"footer_support_column_accessibility_link",href:t.accessibilityUrl,label:xr.ACCESSIBILITY()})),r.createElement("li",null,r.createElement(vr,{"data-e2e":"footer_support_column_purchase_help_link",href:t.purchaseHelpUrl,label:xr.PURCHASE_HELP()})),r.createElement("li",null,r.createElement(vr,{"data-e2e":"footer_support_column_adchoices_link",href:t.adChoicesUrl,label:xr.ADCHOICES()})),r.createElement("li",null,r.createElement(vr,{"data-e2e":"footer_support_column_publishers_link",href:t.publishersUrl,label:xr.PUBLISHERS()}))))}Pr.propTypes={routes:Ur};var Br=it.exports.shape({accessibilityUrl:it.exports.string.isRequired,adChoicesUrl:it.exports.string.isRequired,faqUrl:it.exports.string.isRequired,publishersUrl:it.exports.string.isRequired,purchaseHelpUrl:it.exports.string.isRequired,simpleCancelUrl:it.exports.string.isRequired});zr.propTypes={routes:Br,showSimpleCancelOption:it.exports.bool},zr.defaultProps={showSimpleCancelOption:!1};var qr=it.exports.shape({androidStoreUrl:it.exports.string.isRequired,iosStoreUrl:it.exports.string.isRequired});function Fr(e){var{currentLanguage:t,languages:n,openGetAppModal:s,openLanguageModal:u,routes:l,showSimpleCancelOption:d,className:p}=e,f=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.createElement("div",{className:c()(Ir.bottomLanguage,{[Ir.bottomLanguageMargin]:e,[Ir.topLanguageMargin]:s})},r.createElement("div",{className:Ir.bottomLanguageText},i.Z.t("megamenu.language_picker_dropdown.language"),":"),r.createElement(ie,{buttonStyle:a.oB.NONE,"data-e2e":"footer_language_picker_link",forcePosition:ee.TOP,handle:r.createElement("div",{className:Ir.languageDropdownContent},t.name," ",r.createElement(o.pO,null)),menuHandleClassName:Ir.menuHandle,menuItemsClassName:Ir.menuItems},r.createElement(an,{currentLanguage:t,languageLinkClassName:Ir.languageLink,languages:n,onLearnMoreClick:e=>{e.preventDefault();var{languageModalPropsPath:t}=l;u({propsPath:t})}})))},h=i.Z.t("shared.footer.copyright_copy_current_year_scribd",{currentYear:(new Date).getFullYear()});return r.createElement("footer",{className:c()(Ir.wrapper,p),"data-e2e":e["data-e2e"],id:"global_footer"},r.createElement("h2",{className:"visually_hidden"},i.Z.t("shared.footer.footer_menu")),r.createElement(Yn,null,r.createElement(Hn,null,r.createElement($n,null,r.createElement(Nr,null))),r.createElement(Hn,null,r.createElement($n,{xl:2,hideBelow:"m"},r.createElement("div",{className:Ir.horizontalColumn},r.createElement(Mr,{routes:l.about}))),r.createElement($n,{xl:2,hideBelow:"m"},r.createElement(zr,{routes:l.support,showSimpleCancelOption:d})),r.createElement($n,{xl:2,hideBelow:"m"},r.createElement(Or,{routes:l.legal})),r.createElement($n,{xl:2,hideBelow:"m"},r.createElement(Pr,{routes:l.social})),r.createElement($n,{xl:2,hideBelow:"l"}),r.createElement($n,{xl:2,hideBelow:"l"},r.createElement("h3",{className:Ir.columnHeader},Ar.GET_OUR_FREE_APPS()),r.createElement(g.WK,{androidStoreUrl:l.app.androidStoreUrl,handleOpenLightbox:s,iosStoreUrl:l.app.iosStoreUrl,language:t.lang}))),r.createElement(Hn,null,r.createElement($n,{s:2,hideAbove:"s"},r.createElement("div",{className:Ir.verticalColumn},r.createElement(Mr,{routes:l.about})),r.createElement("div",{className:Ir.verticalColumn},r.createElement(Or,{routes:l.legal}))),r.createElement($n,{s:2,hideAbove:"s"},r.createElement("div",{className:Ir.verticalColumn},r.createElement(zr,{routes:l.support,showSimpleCancelOption:d})),r.createElement("div",null,r.createElement(Pr,{routes:l.social})))),r.createElement(Hn,null,r.createElement($n,{xl:12,hideAbove:"m"},r.createElement("h3",{className:Ir.columnHeader},Ar.GET_OUR_FREE_APPS()),r.createElement(g.WK,{androidStoreUrl:l.app.androidStoreUrl,handleOpenLightbox:s,iosStoreUrl:l.app.iosStoreUrl,language:t.lang}))),r.createElement(Hn,null,r.createElement($n,{xl:12},r.createElement("div",{className:Ir.horizontalDivider}))),r.createElement(Hn,null,r.createElement($n,{xl:7,l:12},r.createElement(Lr,{routes:l.contentType})),r.createElement($n,{xl:5,hideBelow:"xl"},r.createElement("div",{className:Ir.bottomRightContainer},f(),r.createElement("div",{className:Ir.bottomCopyright,"data-e2e":"footer_copyright_text"},r.createElement("span",{dangerouslySetInnerHTML:{__html:h}}))))),r.createElement(Hn,null,r.createElement($n,{xl:12,hideAbove:"l"},f(!0,!0))),r.createElement(Hn,null,r.createElement($n,{xl:12,hideAbove:"l"},r.createElement("div",{className:Ir.bottomCopyright,"data-e2e":"footer_copyright_text"},r.createElement("span",{dangerouslySetInnerHTML:{__html:h}}))))))}Fr.propTypes={"data-e2e":it.exports.string,currentLanguage:it.exports.shape({href:it.exports.string,lang:it.exports.string,lcid:it.exports.string,name:it.exports.string,prefix:it.exports.string}).isRequired,languages:it.exports.arrayOf(it.exports.shape({href:it.exports.string,lang:it.exports.string,lcid:it.exports.string,name:it.exports.string,prefix:it.exports.string})).isRequired,openGetAppModal:it.exports.func.isRequired,openLanguageModal:it.exports.func.isRequired,routes:it.exports.shape({about:Sr,app:qr,contentType:Dr,languageModalPropsPath:it.exports.string.isRequired,legal:kr,social:Ur,support:Br}).isRequired,showSimpleCancelOption:it.exports.bool.isRequired,className:it.exports.string},Fr.defaultProps={"data-e2e":null};var Zr=(0,u.$j)((e=>{var{currentLanguage:t,languages:n}=e.i18n,{routes:r}=e.static,i=e.user;return{currentLanguage:t,languages:n,routes:{about:{aboutUrl:r.aboutUrl,contactUrl:r.contactUrl,giftUrl:r.giftUrl,referralsUrl:r.referralsUrl,careersUrl:r.careersUrl,blogUrl:r.blogUrl,pressUrl:r.pressUrl,scribdForEnterpriseUrl:r.scribdForEnterpriseUrl},app:{androidStoreUrl:r.androidStoreUrl,iosStoreUrl:r.iosStoreUrl},contentType:r.footerContentTypeRoutes,languageModalPropsPath:r.languageModalPropsPath,legal:{copyrightUrl:r.copyrightUrl,privacyUrl:r.privacyUrl,privacyRequestFormUrl:r.privacyRequestFormUrl,termsUrl:r.termsUrl},social:{facebookUrl:r.facebookUrl,instagramUrl:r.instagramUrl,pinterestUrl:r.pinterestUrl,twitterUrl:r.twitterUrl},support:{accessibilityUrl:r.accessibilityUrl,adChoicesUrl:r.adChoicesUrl,faqUrl:r.faqUrl,publishersUrl:r.publishersUrl,purchaseHelpUrl:r.purchaseHelpUrl,simpleCancelUrl:r.simpleCancelUrl}},showSimpleCancelOption:!!i.showSimpleCancelOption}}))(Fr),Gr="sheetmusic",Yr=(e,t)=>{(0,s.gb)("megamenu:hamburger:".concat(e,":category:click"),{clicked:t})},Hr=(e,t)=>e.map(((e,n)=>r.createElement(ir,{key:n,navItem:e,onClick:e=>Yr(t,e)}))),Wr=e=>{var t=e.dataName;return r.createElement("ul",{className:"explore_links"},Hr(e.exploreLinks,t),r.createElement("hr",{className:"underline"}))},Vr=(e,t,n,a,s,u)=>{var l=u.dataName;if(l!==Gr)return r.createElement("div",{className:"category_container"},Wr(u),r.createElement("ul",{className:"sub_category"},Hr(u.categoryLinks,l)),((e,t,n,a,s,u)=>{var l,c=u.dataName;switch(c){case Rt:l=e;break;case zt:l=n;break;case jt:l=a;break;case Pt:l=s;break;default:l=t}return r.createElement(d.Av,{className:"all_categories_button",href:l,onClick:()=>Yr(c,Ot)},i.Z.t("shared.text_links.all_categories"),r.createElement(o.ZzW,{className:"all_categories_icon"}))})(e,t,n,a,s,u))};function Qr(e){var{audiobooksAllCategoriesPath:t,booksAllCategoriesPath:n,documentsAllCategoriesPath:i,magazinesAllCategoriesPath:o,podcastsAllCategories:a,navItem:s}=e;return r.createElement("div",{className:"wrapper__hamburger_categories_menu",ref:e=>Yt(e)},r.createElement("h3",{className:"nav_item_title"},s.name),Vr(t,n,i,o,a,s),(e=>{var t=e.dataName;if(t===Gr)return r.createElement("div",{className:"sheet_music_container"},Wr(e),e.categoryLinks.map(((e,n)=>r.createElement("div",{key:n},r.createElement("p",{className:"grid_column_header sheetmusic_header"},e.name),r.createElement("ul",{className:"sub_category"},Hr(e.children,t)),r.createElement("hr",{className:"underline"})))))})(s))}Qr.propTypes={audiobooksAllCategoriesPath:it.exports.string.isRequired,booksAllCategoriesPath:it.exports.string.isRequired,documentsAllCategoriesPath:it.exports.string.isRequired,magazinesAllCategoriesPath:it.exports.string.isRequired,podcastsAllCategories:it.exports.string.isRequired,navItem:it.exports.shape({categoryLinks:it.exports.arrayOf(it.exports.shape({name:it.exports.string,href:it.exports.string,children:it.exports.arrayOf(it.exports.shape({name:it.exports.string,href:it.exports.string}))})),exploreLinks:it.exports.array,name:it.exports.string.isRequired})};function Kr(e){var{closeHamburgerMenu:t,currentLanguage:n,languageModalPropsPath:o,languages:a,openLanguageModal:u}=e;return r.createElement("div",{className:"wrapper__hamburger_language_menu",ref:e=>Yt(e)},r.createElement("h3",{className:"language_header"},i.Z.t("megamenu.language_picker_dropdown.language")),r.createElement(an,{currentLanguage:n,languageClickEvent:"language_picker:sidebar:language:click",languages:a,onLearnMoreClick:e=>{e.preventDefault(),(0,s.gb)("megamenu:hamburger:learn_more:click"),t(),u({propsPath:o})},onChangeLanguage:e=>{return t=e,void(0,s.gb)("megamenu:hamburger:language_menu:language:click",{clicked:t});var t}}))}Kr.propTypes={closeHamburgerMenu:it.exports.func.isRequired,currentLanguage:it.exports.shape({prefix:it.exports.string,href:it.exports.string,lcid:it.exports.string,name:it.exports.string,lang:it.exports.string}).isRequired,languages:it.exports.arrayOf(it.exports.shape({prefix:it.exports.string,href:it.exports.string,lcid:it.exports.string,name:it.exports.string,lang:it.exports.string})).isRequired,languageModalPropsPath:it.exports.string.isRequired,openLanguageModal:it.exports.func.isRequired};var Xr=(0,u.$j)((e=>{var{currentLanguage:t,languages:n}=e.i18n,{languageModalPropsPath:r}=e.static.routes;return{currentLanguage:t,languages:n,languageModalPropsPath:r}}),(e=>({closeHamburgerMenu:()=>e(nt(!1))})))(Kr),$r="TopBar-module_wrapper__9FCAW",Jr="TopBar-module_backButton__l9LWZ",ei="TopBar-module_backButtonIcon__B61AI",ti="TopBar-module_closeButton__o-W4a",ni="TopBar-module_closeIcon__3zMt4",ri="TopBar-module_logo__hr4hy";function ii(e){var{nodeRef:t,onBackClick:n,onCloseClick:a,rootPath:s,showBackButton:u}=e,l=e=>{e.preventDefault(),n()},c=()=>r.createElement("a",{href:s,"data-e2e":"hamburger-menu-scribd-logo"},r.createElement("img",{src:ct,alt:"Scribd Logo",className:ri})),p=()=>r.createElement(d.Av,{href:"#back",className:Jr,onClick:l,"data-e2e":"hamburger-menu-back-button"},r.createElement(o.pJo,{className:ei}),i.Z.t("shared.common.back"));return r.createElement("div",{className:$r,ref:t},u?r.createElement(p,null):r.createElement(c,null),r.createElement(d.Av,{className:ti,onClick:a,"data-e2e":"hamburger-menu-close-button"},r.createElement(d.d7,{atAndAbove:!0,size:Ct.S},r.createElement(o.x8P,{alt:i.Z.t("megamenu.hamburger_menu.close_menu"),className:ni})),r.createElement(d.d7,{below:!0,size:Ct.S},r.createElement(o.EEu,{alt:i.Z.t("megamenu.hamburger_menu.close_menu"),className:ni}))))}ii.propTypes={nodeRef:it.exports.shape({current:"undefined"!==typeof Element?it.exports.instanceOf(Element):it.exports.any}),onBackClick:it.exports.func,onCloseClick:it.exports.func,rootPath:it.exports.string.isRequired,showBackButton:it.exports.bool},ii.defaultProps={onBackClick:s.ZT,onCloseClick:s.ZT,showBackButton:!1};function oi(e){var{nodeRef:t,onClick:n,openSignUpModal:a,openUserMenu:s,subscribeUrl:u,user:l}=e;return r.createElement("div",{className:"wrapper__user_section",onClick:n},(e=>{var{openSignUpModal:t,subscribeUrl:n,user:i}=e;if(Ht(i))return r.createElement(_n,{className:"sign_up_btn","data-e2e":"hamburger-menu-subscribe-button",href:n,isLoggedIn:i.isLoggedIn,loc:"megamenu:hamburger",openSignUpModal:t})})({openSignUpModal:a,subscribeUrl:u,user:l}),r.createElement("a",{className:"nav_row nav_link","data-e2e":"hamburger-menu-user-section",href:"#",onClick:s,ref:t},r.createElement("div",{className:"greeting_wrapper"},r.createElement("div",{className:"greeting"},r.createElement(Cn,null),r.createElement("span",{className:"greeting_text","data-e2e":"hamburger-menu-greeting"},(e=>e.isLoggedIn?i.Z.t("megamenu.user_menu.hi_name",{name:e.name}):i.Z.t("megamenu.hamburger_menu.welcome"))(l))),r.createElement(o.mcj,{className:"arrow_icon"})),(e=>{if(!e.isLoggedIn)return r.createElement("div",{className:"label","data-e2e":"hamburger-menu-sign-in-greeting"},i.Z.t("megamenu.hamburger_menu.sign_in_to_your_scribd_account"))})(l)))}oi.propTypes={nodeRef:it.exports.shape({current:"undefined"!==typeof Element?it.exports.instanceOf(Element):it.exports.any}),onClick:it.exports.func,openSignUpModal:it.exports.func.isRequired,openUserMenu:it.exports.func.isRequired,subscribeUrl:it.exports.string.isRequired,user:it.exports.shape({isEligibleForFreeTrial:it.exports.bool.isRequired,isLoggedIn:it.exports.bool.isRequired,isSubscriber:it.exports.bool.isRequired,name:it.exports.string}).isRequired};var ai=1,si=2,ui=3,li=4;class ci extends r.Component{constructor(e){var t;super(e),t=this,Dt(this,"changeView",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.ZT;t.setState({currentView:e},n)})),Dt(this,"gotoMain",(()=>{this.changeView(ai,(()=>{this.selectedTabRef.current&&this.selectedTabRef.current.focus()}))})),Dt(this,"trackTopLevelClick",(e=>{(0,s.L9)("megamenu:hamburger:".concat(e,":click"))})),Dt(this,"sendClickTracking",(e=>{(0,s.L9)("megamenu:hamburger:click",{clicked:e})})),Dt(this,"gotoCategories",(()=>this.changeView(si))),Dt(this,"gotoUser",(()=>this.changeView(ui,(()=>{this.userMenuRef.current&&Yt(this.userMenuRef.current)})))),Dt(this,"gotoLanguage",(()=>this.changeView(li))),Dt(this,"getClickHandler",((e,t,n)=>{this.sendClickTracking(t.dataName,t),n&&(e.preventDefault(),this.setState({selectedNavItem:t},this.gotoCategories()))})),Dt(this,"openUserMenu",(e=>{e.preventDefault(),this.gotoUser()})),Dt(this,"closeUserMenu",(()=>{this.changeView(ai,(()=>{this.userSectionRef.current&&this.userSectionRef.current.focus()}))})),Dt(this,"handleBackClick",(()=>{switch(this.setState({selectedNavItem:null}),this.state.currentView){case li:return this.gotoUser();case ui:return this.closeUserMenu();default:return this.gotoMain()}})),Dt(this,"handleWrapperClick",(e=>{this.navRef.current.contains(e.target)||(e.preventDefault(),this.props.closeHamburgerMenu())})),Dt(this,"returnFocusToTopBar",(()=>{this.topBarRef.current&&this.topBarRef.current.children?Yt(this.topBarRef.current):this.props.closeHamburgerMenu()})),Dt(this,"trapFocusInMenu",((e,t)=>{e.stopPropagation();var n=(0,s.Ng)(t);(0,s._h)({event:e,children:n,exitFunction:this.returnFocusToTopBar,tabCycle:!0})})),this.navRef=r.createRef(),this.selectedTabRef=r.createRef(),this.topBarRef=r.createRef(),this.userMenuRef=r.createRef(),this.userSectionRef=r.createRef(),this.state={selectedNavItem:null,currentView:ai}}componentDidMount(){Yt(this.navRef.current),(0,s.L9)("megamenu:hamburger:open")}componentDidUpdate(){this.props.pageWidth>=Nt.DS2.l&&this.props.closeHamburgerMenu()}renderVisuallyHiddenText(e){if(e===this.state.selectedNavItem)return r.createElement(g.TX,null,i.Z.t("shared.navigation.sidebar.selected"))}renderUnderline(){return r.createElement("hr",{className:"underline"})}renderWhatIsScribdButton(){return r.createElement("li",{className:"what_is_scribd_section nav_row"},r.createElement(pr,{className:"what_is_scribd_button",onClick:this.sendClickTracking,whatIsScribdLandingPath:this.props.whatIsScribdLandingPath}),this.renderUnderline())}renderSaveButton(){if(this.props.user.isLoggedIn)return r.createElement(d.d7,{atAndAbove:!0,size:Ct.S,classes:"save_section"},r.createElement("li",{className:"nav_row selected save_list_item"},r.createElement(d.Av,{className:"save_button",href:this.props.savedPath,"data-e2e":"hamburger-menu-save-button","aria-label":i.Z.t("shared.save_button.saved"),onClick:()=>this.sendClickTracking("saved")},r.createElement(o.cwU,{className:"save_icon"}),i.Z.t("shared.save_button.saved"))),this.renderUnderline())}renderVerticalTab(e){var t=this.state.selectedNavItem&&e.dataName===this.state.selectedNavItem.dataName,n=Zt(e);return r.createElement("li",{className:c()("nav_row",e.type,{selected:t}),key:"nav_row_".concat(e.dataName),id:e.id},r.createElement(d.Av,{className:"nav_link","data-e2e":"hamburger-menu-".concat(e.dataName,"-button"),onClick:t=>this.getClickHandler(t,e,n),nodeRef:t?this.selectedTabRef:void 0,href:n?void 0:e.link},r.createElement("div",{className:"nav_title"},e.name),n&&r.createElement(o.mcj,{className:"icon"}),this.renderVisuallyHiddenText(e)))}renderNavItemSection(){var e=Ft(this.props.navigationCategories);return r.createElement("ul",{className:"nav_items","aria-labelledby":"hamburger_menu_nav_items"},this.renderSaveButton(),this.renderWhatIsScribdButton(),Object.values(e).map((e=>this.renderVerticalTab(e))),r.createElement(d.d7,{atAndAbove:!0,size:Ct.S},this.renderUnderline()),this.renderCategoriesMenu())}renderCategoriesMenu(){var{audiobooksAllCategoriesPath:e,booksAllCategoriesPath:t,documentsAllCategoriesPath:n,magazinesAllCategoriesPath:i,podcastsAllCategories:o,navigationCategories:a}=this.props,s=Ft(a);return Object.values(s).map((a=>{var s;return Zt(a)?r.createElement("div",{key:a.dataName,className:c()("category_item",a.dataName,{selected:(null===(s=this.state.selectedNavItem)||void 0===s?void 0:s.dataName)===a.dataName})},r.createElement(Qr,{audiobooksAllCategoriesPath:e,booksAllCategoriesPath:t,documentsAllCategoriesPath:n,magazinesAllCategoriesPath:i,navItem:a,podcastsAllCategories:o})):null}))}renderAppLogoSection(){if(this.props.getMobileAppProps){var{androidStoreUrl:e,iosStoreUrl:t}=this.props.getMobileAppProps;return r.createElement("div",{className:"app_logos"},r.createElement("p",{className:"app_logo_copy"},i.Z.t("megamenu.hambur_menu.get_our_free_apps")),r.createElement(g.WK,{androidStoreUrl:e,iosStoreUrl:t,language:this.props.language}))}}renderMainMenu(){return r.createElement(r.Fragment,null,this.renderNavItemSection(),r.createElement(d.d7,{atAndAbove:!0,size:Ct.S,classes:"bottom_section",inline:!1},this.renderUserSection(),this.renderUnderline(),this.renderAppLogoSection()))}renderUserSection(){return r.createElement(oi,{onClick:()=>this.trackTopLevelClick("user_menu"),openSignUpModal:this.props.openSignUpModal,openUserMenu:this.openUserMenu,subscribeUrl:this.props.subscribeUrl,user:this.props.user,nodeRef:this.userSectionRef})}renderUserMenu(){return r.createElement(Tn,{brand:this.props.brand,handleLanguageClick:this.gotoLanguage,nodeRef:this.userMenuRef,openSignInModal:this.props.openSignInModal,openSignUpModal:this.props.openSignUpModal,showUserIcon:!0,trackingLocation:"hamburger"})}renderLanguageMenu(){return r.createElement(Xr,{openLanguageModal:this.props.openLanguageModal})}renderCurrentView(){switch(this.state.currentView){case ui:return this.renderUserMenu();case li:return this.renderLanguageMenu();case si:return this.renderCategoriesMenu();default:return this.renderMainMenu()}}render(){var{rootPath:e}=this.props;return r.createElement("div",{className:c()("wrapper__megamenu_hamburger_menu"),"data-e2e":"hamburger-menu",onClick:this.handleWrapperClick,onKeyDown:e=>this.trapFocusInMenu(e,this.navRef.current)},r.createElement("nav",{className:"vertical_nav",ref:this.navRef,"data-e2e":"hamburger-menu-vertical-nav"},r.createElement(ii,{rootPath:e,onBackClick:this.handleBackClick,onCloseClick:this.props.closeHamburgerMenu,showBackButton:this.state.currentView!==ai,nodeRef:this.topBarRef}),this.renderCurrentView()))}}ci.propTypes={accountSettingsPath:it.exports.string.isRequired,audiobooksAllCategoriesPath:it.exports.string.isRequired,booksAllCategoriesPath:it.exports.string.isRequired,brand:it.exports.string,closeHamburgerMenu:it.exports.func,documentsAllCategoriesPath:it.exports.string.isRequired,getMobileAppProps:it.exports.shape({androidStoreUrl:it.exports.string,iosStoreUrl:it.exports.string}),language:it.exports.string.isRequired,magazinesAllCategoriesPath:it.exports.string.isRequired,navigationCategories:it.exports.object.isRequired,openLanguageModal:it.exports.func.isRequired,openSignInModal:it.exports.func.isRequired,openSignUpModal:it.exports.func.isRequired,pageWidth:it.exports.number.isRequired,podcastsAllCategories:it.exports.string.isRequired,rootPath:it.exports.string,savedPath:it.exports.string.isRequired,subscribeUrl:it.exports.string.isRequired,user:it.exports.shape({isEligibleForFreeTrial:it.exports.bool.isRequired,isLoggedIn:it.exports.bool.isRequired,isSubscriber:it.exports.bool.isRequired,isDunning:it.exports.bool.isRequired,isPaused:it.exports.bool.isRequired,name:it.exports.string}).isRequired,whatIsScribdLandingPath:it.exports.string.isRequired},ci.defaultProps={brand:null};var di=(0,u.$j)((e=>{var{i18n:{currentLanguage:t},currentPage:n,static:{routes:r},user:i,viewport:{width:o}}=e;return{accountSettingsPath:r.accountSettingsPath,audiobooksAllCategoriesPath:r.audiobooksAllCategoriesPath,booksAllCategoriesPath:r.booksAllCategoriesPath,documentsAllCategoriesPath:r.documentsAllCategoriesPath,getMobileAppProps:{androidStoreUrl:r.androidStoreUrl,iosStoreUrl:r.iosStoreUrl},language:t.lang,magazinesAllCategoriesPath:r.magazinesAllCategoriesPath,pageWidth:o,podcastsAllCategories:r.podcastsAllCategories,navigationCategories:n.navigationCategories,rootPath:r.rootPath,savedPath:r.savedPath,subscribeUrl:r.subscribeUrl,user:{id:i.id,isDunning:i.isDunning,isEligibleForFreeTrial:i.isEligibleForFreeTrial,isLoggedIn:i.isLoggedIn,isPaused:i.isPaused,isSubscriber:i.isSubscriber,name:i.name},whatIsScribdLandingPath:r.whatIsScribdLandingPath}}),(e=>({closeHamburgerMenu:()=>{(0,s.gb)("megamenu:hamburger:close"),e(nt(!1))}})))(ci);function pi(e){var{brand:t,isHamburgerMenuOpen:n,openLanguageModal:i,openSignInModal:o,openSignUpModal:a}=e;return n?r.createElement(di,{brand:t,openLanguageModal:i,openSignInModal:o,openSignUpModal:a}):null}pi.propTypes={brand:it.exports.string,isHamburgerMenuOpen:it.exports.bool.isRequired,openLanguageModal:it.exports.func.isRequired,openSignInModal:it.exports.func.isRequired,openSignUpModal:it.exports.func.isRequired},pi.defaultProps={brand:null};var fi=(0,u.$j)((e=>{var{currentPage:{isHamburgerMenuOpen:t}}=e;return{isHamburgerMenuOpen:t}}))(pi);class hi extends r.Component{constructor(e){super(e),Dt(this,"handleScroll",(e=>{var{scrollDirection:t}=e,n=Vt({isKeyboardUser:this.props.isKeyboardUser,scrollDirection:t});n!==this.state.showPrimaryNav&&this.setState({showPrimaryNav:n})})),this.state={showPrimaryNav:!0}}componentDidMount(){this.scrollDirectionHandler=new s.k8(this.handleScroll)}componentWillUnmount(){this.scrollDirectionHandler.removeListener()}render(){var{brand:e,isFixed:t,isFullscreen:n,openDayZeroModal:i,openLanguageModal:o,openSignUpModal:a,openSignInModal:s,navigationCategories:u,routes:{audiobooksAllCategoriesPath:l,booksAllCategoriesPath:p,documentsAllCategoriesPath:f,magazinesAllCategoriesPath:h,podcastsAllCategories:g,rootPath:m,savedPath:v,searchPath:_,subscribeUrl:A,uploadPath:y,whatIsScribdLandingPath:b},searchFunction:E,searchQuery:w,selectedMobileBottomTab:x,user:I}=this.props;return n?null:r.createElement("div",{className:c()("wrapper__megamenu_container",{fixed:t,shadow:!this.state.showPrimaryNav}),"data-e2e":"megamenu-container",id:It.MEGAMENU_CONTAINER},r.createElement(nr,{brand:e,openDayZeroModal:i,openLanguageModal:o,openSignInModal:s,openSignUpModal:a,rootPath:m,savedPath:v,searchFunction:E,searchPath:_,searchQuery:w,subscribeUrl:A,uploadPath:y,user:I}),this.state.showPrimaryNav&&r.createElement(d.d7,{below:!0,size:Ct.L},r.createElement(hr,{audiobooksAllCategoriesPath:l,booksAllCategoriesPath:p,documentsAllCategoriesPath:f,magazinesAllCategoriesPath:h,navigationCategories:Ft(u),podcastsAllCategories:g,selectedMobileBottomTab:x,user:I,whatIsScribdLandingPath:b})))}}hi.propTypes={brand:it.exports.string,isFixed:it.exports.bool,isFullscreen:it.exports.bool.isRequired,isKeyboardUser:it.exports.bool.isRequired,navigationCategories:it.exports.object.isRequired,openDayZeroModal:it.exports.func,openLanguageModal:it.exports.func.isRequired,openSignInModal:it.exports.func.isRequired,openSignUpModal:it.exports.func.isRequired,routes:it.exports.shape({audiobooksAllCategoriesPath:it.exports.string.isRequired,booksAllCategoriesPath:it.exports.string.isRequired,documentsAllCategoriesPath:it.exports.string.isRequired,magazinesAllCategoriesPath:it.exports.string.isRequired,podcastsAllCategories:it.exports.string.isRequired,rootPath:it.exports.string,savedPath:it.exports.string,searchPath:it.exports.string.isRequired,subscribeUrl:it.exports.string.isRequired,uploadPath:it.exports.string,whatIsScribdLandingPath:it.exports.string.isRequired}).isRequired,searchFunction:it.exports.func,searchQuery:it.exports.string,selectedMobileBottomTab:it.exports.string,trackingLocation:it.exports.string,user:it.exports.shape({id:it.exports.number,isEligibleForFreeTrial:it.exports.bool.isRequired,isSubscriber:it.exports.bool.isRequired,isLoggedIn:it.exports.bool.isRequired,isDunning:it.exports.bool.isRequired,isPaused:it.exports.bool.isRequired}).isRequired},hi.defaultProps={brand:null,isFixed:!0,openDayZeroModal:s.ZT,searchFunction:s.uX,searchQuery:""};var gi=(0,u.$j)(((e,t)=>{var{searchQuery:n}=t,{currentPage:r,static:{routes:i},user:o,viewport:a}=e;return{getMobileAppProps:{androidStoreUrl:i.androidStoreUrl,iosStoreUrl:i.iosStoreUrl},isFullscreen:a.isFullscreen,isKeyboardUser:a.isKeyboardUser,navigationCategories:r.navigationCategories,routes:{audiobooksAllCategoriesPath:i.audiobooksAllCategoriesPath,booksAllCategoriesPath:i.booksAllCategoriesPath,documentsAllCategoriesPath:i.documentsAllCategoriesPath,magazinesAllCategoriesPath:i.magazinesAllCategoriesPath,podcastsAllCategories:i.podcastsAllCategories,rootPath:i.rootPath,savedPath:i.savedPath,searchPath:i.searchPath,subscribeUrl:i.subscribeUrl,uploadPath:i.uploadPath,whatIsScribdLandingPath:i.whatIsScribdLandingPath},searchQuery:n||r.searchQuery,selectedMobileBottomTab:r.selectedMobileBottomTab,user:{id:o.id,isDunning:o.isDunning,isEligibleForFreeTrial:o.isEligibleForFreeTrial,isLoggedIn:o.isLoggedIn,isPaused:o.isPaused,isSubscriber:o.isSubscriber,name:o.name}}}))(hi),mi={icon:o.kJO,name:"audiobook",get title(){return i.Z.t("content_types.audiobooks")}},vi={icon:o.VNp,name:"book",get title(){return i.Z.t("content_types.books")}},_i={icon:o.d2V,name:"document",get title(){return i.Z.t("content_types.documents")}},Ai={icon:o.xez,name:"home",get title(){return i.Z.t("shared.mobile_bottom_navigation_tabs.home")}},yi="MobileBottomTabs-module_wrapper__nw1Tk",bi="MobileBottomTabs-module_menu_icon__NjopH",Ei="MobileBottomTabs-module_selected__H-EPm",wi="MobileBottomTabs-module_tabItem__rLKvA",xi="MobileBottomTabs-module_tabLink__C2Pfb",Ii="MobileBottomTabs-module_tabs__E3Lli",Mi="MobileBottomTabs-module_title__ZknMg";function Si(e){var{"data-e2e":t,audiobooksLink:n,booksLink:o,documentsLink:a,homeLink:u,selectedTab:l}=e;mi.link=n,vi.link=o,_i.link=a,Ai.link=u;var p=[Ai,vi,mi,_i],f=e=>{var{icon:t,link:n,name:o,title:a}=e;return r.createElement("li",{className:c()(o,wi,{[Ei]:l===o}),key:o},r.createElement("a",{className:xi,href:n,onClick:()=>{return e=o,void(0,s.gb)("mobile_bottom_navigation_tab:click",{type:e});var e}},r.createElement(t,{className:bi}),r.createElement("div",{className:Mi},a),l===o?r.createElement(g.TX,{text:i.Z.t("shared.mobile_bottom_navigation_tabs.active")}):null))};return r.createElement(d.d7,{above:!0,size:Ct.S},r.createElement("nav",{"aria-labelledby":"MobileBottomTabs",className:yi,"data-e2e":t},r.createElement(g.TX,{tag:"h3",id:"MobileBottomTabs",text:i.Z.t("shared.mobile_bottom_navigation_tabs.quick_navigation")}),r.createElement("ul",{className:Ii},p.map((e=>f(e))))))}Si.propTypes={"data-e2e":it.exports.string,audiobooksLink:it.exports.string.isRequired,booksLink:it.exports.string.isRequired,documentsLink:it.exports.string.isRequired,homeLink:it.exports.string.isRequired,selectedTab:it.exports.oneOf([mi.name,vi.name,_i.name,Ai.name])},Si.defaultProps={"data-e2e":null};var Ci=(0,u.$j)((e=>({audiobooksLink:e.static.routes.audiobooksPath,booksLink:e.static.routes.booksPath,documentsLink:e.static.routes.documentsPath,homeLink:e.static.routes.rootPath,selectedTab:e.currentPage.selectedMobileBottomTab})))(Si),Ni="home",Ti={wrapper:"TabItem-module_wrapper__bMwwy",selected:"TabItem-module_selected__t4kr3",link:"TabItem-module_link__X-sSN",icon:"TabItem-module_icon__o1CDW",title:"TabItem-module_title__Q81Sb"};function Li(e){var{icon:t,href:n,name:o,title:a,isSelected:s,onClick:u}=e;return r.createElement("li",{className:c()(o,Ti.wrapper,{[Ti.selected]:s})},r.createElement("a",{className:Ti.link,href:n,onClick:u},r.createElement(t,{className:Ti.icon}),r.createElement("div",{className:Ti.title},a),s?r.createElement(g.TX,{text:i.Z.t("shared.mobile_bottom_navigation_tabs.active")}):null))}Li.propTypes={href:it.exports.string.isRequired,icon:it.exports.any.isRequired,isSelected:it.exports.bool,name:it.exports.string.isRequired,onClick:it.exports.func.isRequired,title:it.exports.string.isRequired},Li.defaultProps={isSelected:!1};var Di="MobileBottomTabs-ds2-module_wrapper__m3QRY",Oi="MobileBottomTabs-ds2-module_tabs__ssrCe";function ki(e){var{"data-e2e":t,audiobooksPath:n,booksPath:a,documentsPath:u,rootPath:l,selectedTab:c}=e,p=e=>{(0,s.L9)("mobile_bottom_navigation_tab:click",{type:e})};return r.createElement(d.d7,{above:!0,size:Ct.S},r.createElement("nav",{"aria-labelledby":"MobileBottomTabs",className:Di,"data-e2e":t},r.createElement(g.TX,{tag:"h3",id:"MobileBottomTabs",text:i.Z.t("shared.mobile_bottom_navigation_tabs.quick_navigation")}),r.createElement("ul",{className:Oi},r.createElement(Li,{href:l,icon:o.xez,isSelected:c===Ni,key:Ni,name:Ni,onClick:()=>p(Ni),title:i.Z.t("shared.mobile_bottom_navigation_tabs.home")}),r.createElement(Li,{href:a,icon:o.VNp,isSelected:c===wt,key:wt,name:wt,onClick:()=>p(wt),title:i.Z.t("content_types.books")}),r.createElement(Li,{href:n,icon:o.kJO,isSelected:c===Et,key:Et,name:Et,onClick:()=>p(Et),title:i.Z.t("content_types.audiobooks")}),r.createElement(Li,{href:u,icon:o.d2V,isSelected:c===xt,key:xt,name:xt,onClick:()=>p(xt),title:i.Z.t("content_types.documents")}))))}ki.propTypes={"data-e2e":it.exports.string,audiobooksPath:it.exports.string.isRequired,booksPath:it.exports.string.isRequired,documentsPath:it.exports.string.isRequired,rootPath:it.exports.string.isRequired,selectedTab:it.exports.oneOf([Et,wt,xt,Ni])},ki.defaultProps={"data-e2e":null};(0,u.$j)((e=>({audiobooksPath:e.static.routes.audiobooksPath,booksPath:e.static.routes.booksPath,documentsPath:e.static.routes.documentsPath,rootPath:e.static.routes.rootPath,selectedTab:e.currentPage.selectedMobileBottomTab})))(ki);var Ri=Math.ceil,ji=Math.max;var Pi=function(e,t,n,r){for(var i=-1,o=ji(Ri((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a};var Ui=function(e,t){return e===t||e!==e&&t!==t},zi="object"==typeof rt&&rt&&rt.Object===Object&&rt,Bi="object"==typeof self&&self&&self.Object===Object&&self,qi=(zi||Bi||Function("return this")()).Symbol,Fi=qi,Zi=Object.prototype,Gi=Zi.hasOwnProperty,Yi=Zi.toString,Hi=Fi?Fi.toStringTag:void 0;var Wi=function(e){var t=Gi.call(e,Hi),n=e[Hi];try{e[Hi]=void 0;var r=!0}catch(o){}var i=Yi.call(e);return r&&(t?e[Hi]=n:delete e[Hi]),i},Vi=Object.prototype.toString;var Qi=Wi,Ki=function(e){return Vi.call(e)},Xi=qi?qi.toStringTag:void 0;var $i=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Xi&&Xi in Object(e)?Qi(e):Ki(e)};var Ji=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},eo=$i,to=Ji;var no=function(e){if(!to(e))return!1;var t=eo(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},ro=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var io=/^(?:0|[1-9]\d*)$/;var oo=Ui,ao=function(e){return null!=e&&ro(e.length)&&!no(e)},so=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&io.test(e))&&e>-1&&e%1==0&&ee>Nt.DS2[Ct.M]?10:e>Nt.DS2[Ct.S]?8:4)(u),p=l/2,f=(0,r.useMemo)((()=>{if(t<=p||t>s)return No(1,Math.min(l+1,s+1));var e=Math.max(t-p,1),n=Math.min(t+p,s+1);return No(e,n)}),[t,p,l,s]);return r.createElement("nav",{"aria-label":"Pagination"},r.createElement("ul",{className:c()(To,n)},t>1&&r.createElement(g.Av,{"aria-label":i.Z.t("search.pagination.previous"),onClick:()=>{a(t-1)}},r.createElement(d.pf,{content:i.Z.t("search.pagination.previous")},r.createElement(o.Je$,{className:Lo}))),f.map((e=>r.createElement("li",{key:e},r.createElement(g.Av,{className:c()(Lo,{[Do]:e===t}),onClick:()=>{a(e)},text:e.toString()})))),t{a(t+1)}},r.createElement(d.pf,{content:i.Z.t("search.pagination.next")},r.createElement(o.Gwe,{className:Lo})))))}Oo.propTypes={currentPage:it.exports.number,className:it.exports.string,handleClick:it.exports.func,pageCount:it.exports.number.isRequired,width:it.exports.number},Oo.defaultProps={currentPage:1,handleClick:s.ZT,width:Nt.DS2[Ct.L]}},4125:(e,t,n)=>{"use strict";n.d(t,{Bb:()=>Ae,RA:()=>be,ft:()=>je,h4:()=>he,eF:()=>qe,yA:()=>Ye,Oc:()=>tn,gk:()=>sn,K1:()=>Hn,z7:()=>Pe,sG:()=>pe,Hp:()=>Fn,YF:()=>Bn,wJ:()=>se,Bu:()=>ue,mF:()=>le,hQ:()=>ce});var r=n(7294),i=n(6002),o=n(9207),a=n(9371),s=n(1320),u=n(8405),l=n(7903);function c(e){return e.quickview.activeCarouselId}var d=n(6940),p=n(1321),f=n(3988),h=n(7708),g=n(985);const m=(0,g.P1)([e=>e.compilation.modules,c],((e,t)=>t?e.findIndex((e=>e.uuid===t)):null)),v=m,_=e=>(e=>ee{if(!function(e,t){const n=e.right+A>t.right,r=e.lefti()),500,"scrollLeft",r)}))}const b=({carouselPosition:{height:e,top:t},pageScroll:n,pageWidth:r})=>r<=d.j$.DS2[d.zf.M]?n+t-128:n+t+((e,t)=>e+_(t))(e,r)/2-Math.ceil(window.innerHeight/2),E=({carouselPosition:e,isCarouselActiveAbove:t})=>{const n=document.documentElement.scrollTop,r=window.innerWidth,i=b({carouselPosition:e,pageScroll:n,pageWidth:r});return t?i-_(r):i},w=(e,t)=>new Promise((n=>(0,s.VX)(document.documentElement,e,n,null,"scrollTop",t))),x=(e,t)=>new Promise((n=>{if(!e||t)return n();setTimeout(n,250)}));function I(e,t,n=null){(0,l.dC)((()=>{e((0,p.Z)(t)),e((0,f.Z)(n))}))}var M=n(9867),S=n(9535),C=n(9271);var N=n(7534);const T=[d.DS.LOADING,d.DS.SUCCESS];const L=(0,g.P1)([e=>e.compilation.modules,function(e){return e.quickview.previousActiveCarouselId}],((e,t)=>t?e.findIndex((e=>e.uuid===t)):null)),D=L;var O,k=n(3980),R=n.n(k),j={exports:{}};O=j,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r1?t-1:0),r=1;re)),(0,s.L9)(e,oe(o,i))):(0,s.$O)({eventName:e,trackData:o,method:"withVid"})}function se(e){ae(X,{[te]:e})}function ue(e,t){ae($,{[te]:e,[ie]:t})}function le(e){ae(J,{[ne]:e})}function ce(e){ae(ee,{[ne]:e})}function de(e){var{children:t,className:n,uuid:i,name:o,Tag:s,"data-e2e":u}=e;return r.createElement(a.jl,{className:n,Tag:s,onInView:()=>{ue(i,o)},"data-e2e":u},t)}function pe(e){var{children:t,className:n,Tag:i,uuid:o}=e;return r.createElement(i,{onClick:()=>{se(o)},className:n},t)}de.propTypes={children:Y.exports.node.isRequired,className:Y.exports.string,uuid:Y.exports.string.isRequired,name:Y.exports.string.isRequired,Tag:Y.exports.string,"data-e2e":Y.exports.string},de.defaultProps={className:null,Tag:"div","data-e2e":null},pe.propTypes={children:Y.exports.node.isRequired,className:Y.exports.string,Tag:Y.exports.string,uuid:Y.exports.string.isRequired},pe.defaultProps={className:null,Tag:"div"};var fe={wrapper:"Header-ds2-module_wrapper__sv2Th",viewMoreSection:"Header-ds2-module_viewMoreSection__cCGzO",subtitle:"Header-ds2-module_subtitle__tJosS",titleWrapper:"Header-ds2-module_titleWrapper__0Mqm8",title:"Header-ds2-module_title__bhSzb"};function he(e){var{CustomSearchRecModuleClickWrapper:t,subtitle:n,title:a,titleUrl:s,uuid:u}=e;if(!a)return null;var l=t||pe,c=()=>r.createElement("div",{className:fe.viewMoreSection},r.createElement(l,{uuid:u,Tag:"span"},r.createElement(o.Av,{href:s,"data-e2e":"view-more"},i.Z.t("shared.text_links.view_more"))));return r.createElement("div",{className:fe.wrapper},r.createElement("div",{className:fe.titleWrapper},r.createElement("h2",{className:fe.title,"data-e2e":"carousel-title"},a),!n&&s?r.createElement(c,null):null),n?r.createElement("div",{className:fe.titleWrapper},r.createElement("span",{className:fe.subtitle},n),s?r.createElement(c,null):null):null)}he.propTypes={CustomSearchRecModuleClickWrapper:Y.exports.elementType,title:Y.exports.string,titleUrl:Y.exports.string,subtitle:Y.exports.string,uuid:Y.exports.string.isRequired},he.defaultProps={CustomSearchRecModuleClickWrapper:null};var ge={carouselPastMargin:"CarouselWrapper-module_carouselPastMargin__kM0Az",linkWrapper:"CarouselWrapper-module_linkWrapper__T-R9f",viewMoreButton:"CarouselWrapper-module_viewMoreButton__QLxj-"},me={exports:{}};!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r{var r=function(e){return null===e?"not_applicable":e?"expanded":"closed"}(n);(0,s.L9)("carousel:scroll",{module_id:t.uuid,module_type:t.type,scroll_direction:e,quickview_status:r})};function Ae(e){var{carouselScrollingRef:t,children:n,className:s,CustomSearchRecModule:u,CustomSearchRecModuleClickWrapper:l,"data-e2e":c,module:d,onPaddleClickScrollEnded:p,onScroll:f,paginated:h,quickviewOpen:g,renderPastMargin:m,subtitle:v,title:_}=e,{titleUrl:A,type:y,uuid:b}=d,E=A&&!g,w=u||de,x=l||pe;return r.createElement(w,{className:s,name:y,uuid:b,"data-e2e":c},r.createElement(he,{CustomSearchRecModuleClickWrapper:l,title:_||d.title,titleUrl:A,subtitle:v||d.subtitle,uuid:b}),r.createElement(a.c0,{carouselScrollingRef:t,className:ve({[ge.carouselPastMargin]:m}),onPaddleClick:e=>_e(e,d,g),onPaddleClickScrollEnded:p,onScroll:f,paginated:h,renderPaddle:e=>r.createElement(x,{uuid:b},r.createElement(o.q6,e)),renderPastMargin:m,renderSkipLink:e=>r.createElement(x,{uuid:b},r.createElement(a.ob,Z({},e,{text:i.Z.t("shared.carousels.skip_carousel")}))),scrollWithMargin:!1},n),E?r.createElement(x,{className:ge.linkWrapper,uuid:b,Tag:"span"},r.createElement(o.Av,{className:ge.viewMoreButton,href:A,"data-e2e":"view-more"},i.Z.t("shared.text_links.view_more"))):null)}Ae.propTypes={carouselScrollingRef:Y.exports.oneOfType([Y.exports.func,Y.exports.shape({current:Y.exports.any})]),className:Y.exports.string,children:Y.exports.any.isRequired,CustomSearchRecModule:Y.exports.elementType,CustomSearchRecModuleClickWrapper:Y.exports.elementType,onPaddleClickScrollEnded:Y.exports.func,onScroll:Y.exports.func,"data-e2e":Y.exports.string,module:Y.exports.shape({subtitle:Y.exports.string,title:Y.exports.string,titleUrl:Y.exports.string,type:Y.exports.string,uuid:Y.exports.string}),paginated:Y.exports.bool,quickviewOpen:Y.exports.bool,renderPastMargin:Y.exports.bool,subtitle:Y.exports.string,title:Y.exports.string},Ae.defaultProps={carouselScrollingRef:null,className:null,CustomSearchRecModule:null,CustomSearchRecModuleClickWrapper:null,module:{subtitle:null,title:null,titleUrl:null},paginated:!1,quickviewOpen:null,renderPastMargin:!1};var ye={list:"CellList-module_list__S9gDx",listItem:"CellList-module_listItem__vGduj"};function be(e){var{cell:t,collections:n,documents:i,showSaveAction:o,showSavedCell:a,page:s}=e;return r.createElement("ul",{className:ye.list},i.map((e=>{var i=n?q({},n[e.id]):{};return r.createElement("li",{className:ye.listItem,key:e.uuid},r.createElement(Pe,{uuid:e.uuid},r.createElement(t,Z({documentId:e.id,page:s},i,{showSaveAction:o,showSavedCell:a}))))})))}be.propTypes={cell:Y.exports.any.isRequired,collections:Y.exports.object,documents:Y.exports.array,showSaveAction:Y.exports.bool,showSavedCell:Y.exports.bool,page:Y.exports.string.isRequired},be.defaultProps={collections:{},documents:[],showSaveAction:!0,showSavedCell:!1};var Ee={DEFAULT:"default-cell-mode",DESCRIPTION:"description-cell-mode",SEARCH_RESULTS:"search-results-cell-mode",WIDE_NO_DESCRIPTION:"wide-no-description-cell-mode"},we={[Ee.DEFAULT]:{displayItems:{xl:6,l:4,m:1},showDescription:!1},[Ee.DESCRIPTION]:{displayItems:{xl:3,m:2,s:1},showDescription:!0},[Ee.SEARCH_RESULTS]:{displayItems:{xl:5,l:4,m:3,s:2,xs:2,xxs:1},showDescription:!1},[Ee.WIDE_NO_DESCRIPTION]:{displayItems:{xl:3,m:2,s:1},showDescription:!1}},xe="qcid",Ie="qsib",Me={ERROR:"ERROR",LOADING:"LOADING",SUCCESS:"SUCCESS",SLIDE:"SLIDE",JUMP:"JUMP"},Se="activeCell",Ce="defaultCell",Ne="inactiveCell",Te="close_button",Le="title_click",De={XL:"xl",L:"l",M:"m",S:"s",XS:"xs",XXS:"xxs"},Oe=Object.values(De),ke={wrapper:"CarouselRow-module_wrapper__fY4la",xl_0:"CarouselRow-module_xl_0__OLFFZ",xl_1:"CarouselRow-module_xl_1__6752V",xl_2:"CarouselRow-module_xl_2__g6GUf",xl_3:"CarouselRow-module_xl_3__00AMb",xl_4:"CarouselRow-module_xl_4__OLt4K",xl_5:"CarouselRow-module_xl_5__hcWcl",xl_6:"CarouselRow-module_xl_6__b7cjA",xl_7:"CarouselRow-module_xl_7__Yju-W",xl_8:"CarouselRow-module_xl_8__C4MXM",xl_9:"CarouselRow-module_xl_9__APch5",xl_10:"CarouselRow-module_xl_10__hbJr5",xl_11:"CarouselRow-module_xl_11__oI284",xl_12:"CarouselRow-module_xl_12__FWBIj",l_0:"CarouselRow-module_l_0__DuIzE",l_1:"CarouselRow-module_l_1__gT0Qt",l_2:"CarouselRow-module_l_2__WVcC1",l_3:"CarouselRow-module_l_3__BZHIn",l_4:"CarouselRow-module_l_4__Lx8-k",l_5:"CarouselRow-module_l_5__lggiY",l_6:"CarouselRow-module_l_6__UkzuJ",l_7:"CarouselRow-module_l_7__i9qMk",l_8:"CarouselRow-module_l_8__Lh6Tu",l_9:"CarouselRow-module_l_9__5bSCP",l_10:"CarouselRow-module_l_10__q6aHG",l_11:"CarouselRow-module_l_11__f6bCY",l_12:"CarouselRow-module_l_12__IXfRn",m_0:"CarouselRow-module_m_0__F5rUI",m_1:"CarouselRow-module_m_1__ohKXe",m_2:"CarouselRow-module_m_2__qq-jq",m_3:"CarouselRow-module_m_3__Akkkg",m_4:"CarouselRow-module_m_4__mb3MM",m_5:"CarouselRow-module_m_5__xtzrX",m_6:"CarouselRow-module_m_6__0ZzI5",m_7:"CarouselRow-module_m_7__Zhxln",m_8:"CarouselRow-module_m_8__LGQY9",s_0:"CarouselRow-module_s_0__nVaj-",s_1:"CarouselRow-module_s_1__-avCj",s_2:"CarouselRow-module_s_2__ndfJe",s_3:"CarouselRow-module_s_3__rVfNo",s_4:"CarouselRow-module_s_4__60OrX",xs_0:"CarouselRow-module_xs_0__k9e0-",xs_1:"CarouselRow-module_xs_1__FL91q",xs_2:"CarouselRow-module_xs_2__JltO3",xs_3:"CarouselRow-module_xs_3__bISwR",xs_4:"CarouselRow-module_xs_4__Vehr0",xxs_0:"CarouselRow-module_xxs_0__SgYcu",xxs_1:"CarouselRow-module_xxs_1__LLnUa",xxs_2:"CarouselRow-module_xxs_2__hU-ap",xxs_3:"CarouselRow-module_xxs_3__QWPmf",xxs_4:"CarouselRow-module_xxs_4__K6LNq"};function Re(e){var{children:t,className:n,"data-e2e":i,displayItems:o}=e,a={},s=0;Oe.forEach((e=>{s=void 0===o[e]?s:o[e],a[e]=s}));var{xxs:u,xs:l,s:c,m:d,l:p,xl:f}=a;return r.createElement("ul",{className:ve(ke.wrapper,n,{[ke["xl_".concat(f)]]:f>=0,[ke["l_".concat(p)]]:p>=0,[ke["m_".concat(d)]]:d>=0,[ke["s_".concat(c)]]:c>=0,[ke["xs_".concat(l)]]:l>=0,[ke["xxs_".concat(u)]]:u>=0}),"data-e2e":i},t)}function je(e){var{"data-e2e":t,cellMode:n,documents:i,module:o}=e,a=we[n],s=a.displayItems;return r.createElement(Ae,{"data-e2e":t,module:o},r.createElement(Re,{displayItems:s},i.map((e=>r.createElement("li",{key:e.uuid},r.createElement(Pe,{uuid:e.uuid},r.createElement(u.OU,{cellConfiguration:a,documentId:e.id})))))))}function Pe(e){var{children:t,className:n,Tag:i,uuid:o,"data-e2e":s}=e;return r.createElement(a.jl,{className:n,"data-e2e":s,onInView:()=>{ce(o)},Tag:i,uuid:o,onClick:()=>{le(o)}},t)}Re.propTypes={"data-e2e":Y.exports.string,children:Y.exports.any.isRequired,className:Y.exports.string,displayItems:Y.exports.object},Re.defaultProps={"data-e2e":null,className:null,displayItems:{}},je.propTypes={"data-e2e":Y.exports.string,cellMode:Y.exports.oneOf(Object.values(Ee)),documents:Y.exports.array,module:Y.exports.shape({subtitle:Y.exports.string,title:Y.exports.string,titleUrl:Y.exports.string,type:Y.exports.string,uuid:Y.exports.string})},je.defaultProps={"data-e2e":null},Pe.propTypes={"data-e2e":Y.exports.string,children:Y.exports.node.isRequired,className:Y.exports.string,Tag:Y.exports.string,uuid:Y.exports.string.isRequired},Pe.defaultProps={"data-e2e":null,className:null,Tag:"div"};var Ue={wrapper:"Header-module_wrapper__79gqs",titleWrapper:"Header-module_titleWrapper__TKquW",link:"Header-module_link__-HXwl",linkWrapper:"Header-module_linkWrapper__WS-vf",title:"Header-module_title__Vitjc",subtitle:"Header-module_subtitle__IfP38"};function ze(e){var{subtitle:t,title:n,titleLink:o,titleUrl:a,uuid:s,renderIcon:u}=e;if(!n)return null;var l=r.createElement("a",{className:Ue.link,href:a,"data-e2e":"view-more"},i.Z.t("shared.text_links.view_more")),c=r.createElement(pe,{uuid:s,Tag:"span",className:Ue.linkWrapper},o||l);return r.createElement("div",{className:ve(Ue.wrapper,"headerWrapper")},r.createElement("div",{className:Ue.titleWrapper},r.createElement("h3",{className:Ue.title,"data-e2e":"carousel-title"},u?u():null,n),a?c:null),t?r.createElement("span",{className:Ue.subtitle},t):null)}ze.propTypes={subtitle:Y.exports.string,title:Y.exports.string,titleLink:Y.exports.element,titleUrl:Y.exports.string,uuid:Y.exports.string.isRequired,renderIcon:Y.exports.func},ze.defaultProps={subtitle:"",title:"",titleLink:null,titleUrl:"",renderIcon:s.ZT};var Be={wrapper:"NewsRackCarousel-module_wrapper__Ex-g7",item:"NewsRackCarousel-module_item__toUan",listItems:"NewsRackCarousel-module_listItems__2c3cv"};function qe(e){var{className:t,module:n,title:o,titleUrl:s,subtitle:l}=e,{documents:c,type:d,uuid:p}=n;return r.createElement(de,{className:ve(Be.wrapper,t),name:d,uuid:p},r.createElement(ze,{title:o||n.title,titleUrl:s||n.titleUrl,subtitle:l||n.subtitle,uuid:p}),r.createElement(a.lr,{renderPaddle:e=>r.createElement(pe,{uuid:p},r.createElement(a.YJ,e)),renderSkipLink:e=>r.createElement(pe,{uuid:p},r.createElement(a.GX,Z({},e,{text:i.Z.t("shared.carousels.skip_carousel")})))},r.createElement("ul",{className:Be.listItems},c.map((e=>r.createElement("li",{className:Be.item,key:e.uuid},r.createElement(Pe,{uuid:e.uuid},r.createElement(u.ap,{documentId:e.id}))))))))}qe.propTypes={className:Y.exports.string,module:Y.exports.object.isRequired,title:Y.exports.string,titleUrl:Y.exports.string,subtitle:Y.exports.string},qe.defaultProps={className:null,title:null,titleUrl:null,subtitle:null};var Fe=7,Ze=11;function Ge(e){var t,{cell:n,collections:i,documents:o,showSavedCell:a,page:s,isBot:u}=e,[l,c]=(0,r.useState)((()=>u?o:o.slice(0,Ze))),d=(0,r.useRef)(),p=(0,r.useCallback)((t=d,e=>{t.current&&t.current.disconnect(),t.current=new IntersectionObserver((e=>{e[0].isIntersecting&&c(o)})),e&&t.current.observe(e)}),[]);return r.createElement("ul",{className:ye.list},l.map(((e,t)=>{var o=i?q({},i[e.id]):{};return r.createElement("li",{className:ye.listItem,key:e.uuid,ref:t!==Fe||u?null:p},r.createElement(Pe,{uuid:e.uuid},r.createElement(n,Z({documentId:e.id,page:s},o,{showSavedCell:a}))))})))}function Ye(e){var{cell:t,collections:n,module:i,page:o,isBot:a}=e;return r.createElement(Ae,{"data-e2e":"carousel-wrap",module:i,paginated:!0},r.createElement(Ge,{cell:t,documents:i.documents,collections:n,page:o,isBot:a}))}Ge.propTypes={cell:Y.exports.any.isRequired,collections:Y.exports.object,documents:Y.exports.array,page:Y.exports.string.isRequired,showSavedCell:Y.exports.bool,isBot:Y.exports.bool},Ge.defaultProps={collections:{},documents:[],showSavedCell:!1,isBot:!1},Ye.propTypes={cell:Y.exports.any.isRequired,collections:Y.exports.object,module:Y.exports.object.isRequired,page:Y.exports.string.isRequired,isBot:Y.exports.bool},Ye.defaultProps={collections:{},isBot:!1};var He=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},We="object"==typeof G&&G&&G.Object===Object&&G,Ve="object"==typeof self&&self&&self.Object===Object&&self,Qe=We||Ve||Function("return this")(),Ke=Qe,Xe=function(){return Ke.Date.now()},$e=/\s/;var Je=function(e){for(var t=e.length;t--&&$e.test(e.charAt(t)););return t},et=Je,tt=/^\s+/;var nt=function(e){return e?e.slice(0,et(e)+1).replace(tt,""):e},rt=Qe.Symbol,it=rt,ot=Object.prototype,at=ot.hasOwnProperty,st=ot.toString,ut=it?it.toStringTag:void 0;var lt=function(e){var t=at.call(e,ut),n=e[ut];try{e[ut]=void 0;var r=!0}catch(o){}var i=st.call(e);return r&&(t?e[ut]=n:delete e[ut]),i},ct=Object.prototype.toString;var dt=lt,pt=function(e){return ct.call(e)},ft=rt?rt.toStringTag:void 0;var ht=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ft&&ft in Object(e)?dt(e):pt(e)},gt=function(e){return null!=e&&"object"==typeof e};var mt=nt,vt=He,_t=function(e){return"symbol"==typeof e||gt(e)&&"[object Symbol]"==ht(e)},At=/^[-+]0x[0-9a-f]+$/i,yt=/^0b[01]+$/i,bt=/^0o[0-7]+$/i,Et=parseInt;var wt=He,xt=Xe,It=function(e){if("number"==typeof e)return e;if(_t(e))return NaN;if(vt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=vt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=mt(e);var n=yt.test(e);return n||bt.test(e)?Et(e.slice(2),n?2:8):At.test(e)?NaN:+e},Mt=Math.max,St=Math.min;var Ct=function(e,t,n){var r,i,o,a,s,u,l=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,o=i;return r=i=void 0,l=t,a=e.apply(o,n)}function h(e){var n=e-u;return void 0===u||n>=t||n<0||d&&e-l>=o}function g(){var e=xt();if(h(e))return m(e);s=setTimeout(g,function(e){var n=t-(e-u);return d?St(n,o-(e-l)):n}(e))}function m(e){return s=void 0,p&&r?f(e):(r=i=void 0,a)}function v(){var e=xt(),n=h(e);if(r=arguments,i=this,u=e,n){if(void 0===s)return function(e){return l=e,s=setTimeout(g,t),c?f(e):a}(u);if(d)return clearTimeout(s),s=setTimeout(g,t),f(u)}return void 0===s&&(s=setTimeout(g,t)),a}return t=It(t)||0,wt(n)&&(c=!!n.leading,o=(d="maxWait"in n)?Mt(It(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=u=i=s=void 0},v.flush=function(){return void 0===s?a:m(xt())},v},Nt=He;var Tt=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Nt(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ct(e,t,{leading:r,maxWait:t,trailing:i})},Lt={wrapper:"GridRow-module_wrapper__Uub42",extendedGrid:"GridRow-module_extendedGrid__Hm9MG"},Dt={exports:{}};var Ot,kt,Rt,jt;function Pt(){if(kt)return Ot;kt=1;return Ot="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}Dt.exports=function(){if(jt)return Rt;jt=1;var e=Pt();function t(){}function n(){}return n.resetWarningCache=t,Rt=function(){function r(t,n,r,i,o,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var Ut={exports:{}};!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r{var{children:n,className:i,"data-e2e":o}=e;return r.createElement("div",{ref:t,className:zt(Bt,i),"data-e2e":o},n)}));function Ft(e){var{children:t,className:n,"data-e2e":i}=e;return r.createElement("div",{className:zt(Lt.wrapper,n),"data-e2e":i},t)}qt.displayName="GridContainer",qt.propTypes={"data-e2e":Dt.exports.string,children:Dt.exports.oneOfType([Dt.exports.arrayOf(Dt.exports.node),Dt.exports.node]).isRequired,className:Dt.exports.string},Ft.propTypes={"data-e2e":Dt.exports.string,children:Dt.exports.any.isRequired,className:Dt.exports.string};var Zt={XL:"xl",L:"l",M:"m",S:"s",XS:"xs",XXS:"xxs"},Gt={[Zt.XL]:12,[Zt.L]:12,[Zt.M]:8,[Zt.S]:4,[Zt.XS]:4,[Zt.XXS]:4},Yt=Object.values(Zt),Ht=[0,1,2,3,4,5,6,7,8,9,10,11,12];var Wt={wrapper:"GridColumn-module_wrapper__soqyu",xl_1:"GridColumn-module_xl_1__JReNg",xl_2:"GridColumn-module_xl_2__ry9yU",xl_3:"GridColumn-module_xl_3__OHlvX",xl_4:"GridColumn-module_xl_4__brxcj",xl_5:"GridColumn-module_xl_5__tH7mr",xl_6:"GridColumn-module_xl_6__Z53p6",xl_7:"GridColumn-module_xl_7__oZhoo",xl_8:"GridColumn-module_xl_8__pFyML",xl_9:"GridColumn-module_xl_9__cFKGC",xl_10:"GridColumn-module_xl_10__vZk48",xl_11:"GridColumn-module_xl_11__FexeR",xl_12:"GridColumn-module_xl_12__YZ-Rh",hide_above_xl:"GridColumn-module_hide_above_xl__erar5",hide_below_xl:"GridColumn-module_hide_below_xl__bqFPJ",l_1:"GridColumn-module_l_1__WzmV4",l_2:"GridColumn-module_l_2__Pw-g3",l_3:"GridColumn-module_l_3__K7iWt",l_4:"GridColumn-module_l_4__RAT6-",l_5:"GridColumn-module_l_5__8aWIR",l_6:"GridColumn-module_l_6__MgTYy",l_7:"GridColumn-module_l_7__-W6T1",l_8:"GridColumn-module_l_8__thtI5",l_9:"GridColumn-module_l_9__5JHTC",l_10:"GridColumn-module_l_10__I0f3o",l_11:"GridColumn-module_l_11__RUenR",l_12:"GridColumn-module_l_12__FvEF8",hide_above_l:"GridColumn-module_hide_above_l__UT1-z",hide_below_l:"GridColumn-module_hide_below_l__7M0-X",m_1:"GridColumn-module_m_1__YQJCo",m_2:"GridColumn-module_m_2__c8w6C",m_3:"GridColumn-module_m_3__RA-At",m_4:"GridColumn-module_m_4__6iIKY",m_5:"GridColumn-module_m_5__gTusg",m_6:"GridColumn-module_m_6__iVJpe",m_7:"GridColumn-module_m_7__pou8a",m_8:"GridColumn-module_m_8__3ZSLb",hide_above_m:"GridColumn-module_hide_above_m__zwIrv",hide_below_m:"GridColumn-module_hide_below_m__-PoVO",s_1:"GridColumn-module_s_1__XLGHz",s_2:"GridColumn-module_s_2__1-ptI",s_3:"GridColumn-module_s_3__gGW-l",s_4:"GridColumn-module_s_4__21RHi",hide_above_s:"GridColumn-module_hide_above_s__NbVNC",hide_below_s:"GridColumn-module_hide_below_s__Lbw11",xs_1:"GridColumn-module_xs_1__yycpU",xs_2:"GridColumn-module_xs_2__lfNOB",xs_3:"GridColumn-module_xs_3__2UqhV",xs_4:"GridColumn-module_xs_4__HIdGd",hide_above_xs:"GridColumn-module_hide_above_xs__k1r-Z",hide_below_xs:"GridColumn-module_hide_below_xs__lGMfM",xxs_1:"GridColumn-module_xxs_1__lPpo1",xxs_2:"GridColumn-module_xxs_2__L2HPM",xxs_3:"GridColumn-module_xxs_3__lRrol",xxs_4:"GridColumn-module_xxs_4__qVTq6",hide_above_xxs:"GridColumn-module_hide_above_xxs__h8jYZ",hide_below_xxs:"GridColumn-module_hide_below_xxs__PtxIg"};function Vt(e){var{"data-e2e":t,children:n,className:i,xxs:o,xs:a,s,m:u,l,xl:c,hideAbove:d,hideBelow:p}=e,f={xxs:o,xs:a,s,m:u,l,xl:c},h={},g=0;Yt.forEach((e=>{h[e]=f[e]||g,g=h[e]}));var m=function(e){if(!e)return[];var t=Yt.indexOf(e);return Yt.reduce(((e,n,r)=>r<=t?e.concat("hide_above_".concat(n)):e),[])}(d).concat(function(e){if(!e)return[];var t=Yt.indexOf(e);return Yt.reduce(((e,n,r)=>r>t?e.concat("hide_below_".concat(n)):e),[])}(p)).concat(function(e){var t=[];for(var n in e){var r=Gt[n]||0,i=Math.min(e[n],r);i>0&&t.push("".concat(n,"_").concat(i))}return t}(h)).map((e=>Wt[e]));return r.createElement("div",{className:zt(Wt.wrapper,m,i),"data-e2e":t},n)}Vt.propTypes={"data-e2e":Dt.exports.string,children:Dt.exports.oneOfType([Dt.exports.arrayOf(Dt.exports.node),Dt.exports.node]),xxs:Dt.exports.oneOf(Ht),xs:Dt.exports.oneOf(Ht),s:Dt.exports.oneOf(Ht),m:Dt.exports.oneOf(Ht),l:Dt.exports.oneOf(Ht),xl:Dt.exports.oneOf(Ht),hideBelow:Dt.exports.oneOf(Yt),hideAbove:Dt.exports.oneOf(Yt),className:Dt.exports.string},Vt.defaultProps={children:null,xxs:0,xs:0,s:0,m:0,l:0,xl:Gt[Zt.XL],hideBelow:null,hideAbove:null};var Qt=r.forwardRef(((e,t)=>{var{activeCellLinkRef:n,activeDocumentId:i,CustomSearchRecItem:o,documents:a,isCarouselActive:s,onCellClick:l,showSavedCell:c,page:d}=e;var p=o||Pe;return r.createElement("ul",{className:ye.list,ref:t},a.map((e=>{var{id:t,uuid:o}=e,a=function(e){return s?i===e?Se:Ne:Ce}(t),f=a===Se?n:null,h=c?u.lZ:u.LA;return r.createElement("li",{className:ye.listItem,key:o},r.createElement(p,e,r.createElement(h,{documentId:t,page:d,displayType:a,linkRef:f,onClick:l,showSavedCell:c})))})))}));Qt.displayName="QuickviewCellList",Qt.propTypes={activeCellLinkRef:Y.exports.shape({current:Y.exports.any}),activeDocumentId:Y.exports.number,CustomSearchRecItem:Y.exports.elementType,documents:Y.exports.arrayOf(Y.exports.shape({id:Y.exports.number.isRequired,uuid:Y.exports.string.isRequired})).isRequired,isCarouselActive:Y.exports.bool,onCellClick:Y.exports.func.isRequired,page:Y.exports.string.isRequired,showSavedCell:Y.exports.bool},Qt.defaultProps={activeCellLinkRef:null,activeDocumentId:null,CustomSearchRecItem:null,isCarouselActive:null,showSavedCell:!1};var Kt="QuickviewCarousel-module_panelWrapper__fjLIV",Xt=e=>{for(var t=e;t&&"LI"!==t.nodeName;)t=t.parentNode;return t};function $t(e){var{activateQuickview:t,activeDocumentId:n,closeQuickview:i,className:o,CustomSearchRecItem:a,CustomSearchRecModule:l,CustomSearchRecModuleClickWrapper:c,"data-e2e":d,fetchQuickviewData:p,index:f,isActive:h,module:g,page:m,prefersReducedMotion:v,renderPastMargin:_,showSavedCell:A}=e,y=(0,r.useRef)(null),b=(0,r.useRef)(null),E=(0,r.useRef)(null),w=(0,r.useRef)(null),x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Te;h&&(e&&e.preventDefault(),!y.current||document.activeElement&&"INPUT"===document.activeElement.nodeName||y.current.focus(),i(t))};return((e,t)=>{if("undefined"!==typeof window){var n=(0,r.useRef)(window.innerWidth),i=Tt((()=>{n.current!==window.innerWidth&&e(),n.current=window.innerWidth}),50);(0,r.useEffect)((()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)})),[t])}})(x,h),r.createElement("div",{className:o,"data-e2e":d,ref:w},r.createElement(qt,null,r.createElement(Ft,null,r.createElement(Vt,null,r.createElement(Ae,{carouselScrollingRef:E,CustomSearchRecModule:l,CustomSearchRecModuleClickWrapper:c,onPaddleClickScrollEnded:(e,r)=>{if(h){var i=r.querySelector("[data-".concat(xe,"]")),o=parseInt(i.dataset[xe],10);n!==o&&(p(o),t({listItemEl:r,documentId:o,carouselIndex:f,carouselRootEl:w.current,moduleUuid:g.uuid,prefersReducedMotion:v,scrollingEl:E.current}))}},"data-e2e":"carousel-wrap",quickviewOpen:h,module:g,renderPastMargin:_},r.createElement(Qt,{ref:b,activeDocumentId:n,activeCellLinkRef:y,CustomSearchRecItem:a,documents:g.documents,isCarouselActive:h,onCellClick:(e,r)=>{var{id:i}=r;if(!(e.shiftKey||e.ctrlKey||e.altKey||e.metaKey)){if(e.preventDefault(),(0,s.L9)("content_quickview:click",{doc_id:i}),n===i)return x(e,Le);p(i),t({listItemEl:Xt(e.currentTarget),documentId:i,carouselIndex:f,carouselRootEl:w.current,moduleUuid:g.uuid,prefersReducedMotion:v,scrollingEl:E.current})}},page:m,showSavedCell:A}))))),r.createElement("div",{className:Kt},r.createElement(u.Ud,{carouselListRef:b,documentId:n,isActive:h,page:m,prefersReducedMotion:v,showSavedCell:A,onClose:x})))}var Jt=r.memo($t);Jt.displayName="QuickviewCarousel",$t.propTypes={activeDocumentId:Y.exports.number,activateQuickview:Y.exports.func.isRequired,closeQuickview:Y.exports.func.isRequired,CustomSearchRecItem:Y.exports.elementType,CustomSearchRecModule:Y.exports.elementType,CustomSearchRecModuleClickWrapper:Y.exports.elementType,className:Y.exports.string,"data-e2e":Y.exports.string,fetchQuickviewData:Y.exports.func.isRequired,index:Y.exports.number.isRequired,isActive:Y.exports.bool.isRequired,module:Y.exports.shape({documents:Y.exports.arrayOf(Y.exports.shape({id:Y.exports.number.isRequired,uuid:Y.exports.string.isRequired})).isRequired,subtitle:Y.exports.string,title:Y.exports.string,titleUrl:Y.exports.string,type:Y.exports.string.isRequired,uuid:Y.exports.string.isRequired}).isRequired,page:Y.exports.string.isRequired,prefersReducedMotion:Y.exports.bool,renderPastMargin:Y.exports.bool,showSavedCell:Y.exports.bool},$t.defaultProps={activeDocumentId:null,className:null,CustomSearchRecItem:null,CustomSearchRecModule:null,CustomSearchRecModuleClickWrapper:null,"data-e2e":null,prefersReducedMotion:!1,renderPastMargin:!1,showSavedCell:!1};var en={activateQuickview:function({listItemEl:e,documentId:t,carouselIndex:n,carouselRootEl:r,moduleUuid:i,prefersReducedMotion:o,scrollingEl:a}){return async(s,u)=>{const l=u(),c=v(l),p=c===n,g=!p&&null!==c,m=g&&cM&&A.top>b,C=()=>s((0,h.Z)(null));try{return m&&!S?(await y(e,a,C,o),function(e){document.addEventListener("transitionend",(function t(n){n.target.dataset[d.qI.QUICKVIEW_SIBLING]&&(document.removeEventListener("transitionend",t),e((0,f.Z)(d.DS.JUMP)),window.scrollTo({top:document.documentElement.scrollTop-_(window.innerWidth)}))}))}(s),I(s,i,d.DS.SLIDE)):(g&&I(s,null),S&&await function(e,t,n){return new Promise((r=>{const i=E({carouselPosition:e,isCarouselActiveAbove:t});Promise.all([w(i,n),x(t,n)]).then(r)}))}(A,m,o),await y(e,a,C,o),p||I(s,i)),s((0,h.Z)(t))}catch(N){console.error(N)}}},closeQuickview:M.Z,fetchQuickviewData:function(e){return(t,n)=>{const r=n(),i=(0,N.Z)(r);if(T.includes(i[e]))return;const o=S.Z(e)(r);return t(function(e){return{type:C.Z.DATA_LOADING_START,documentId:e}}(e)),s.Be.asPromise("get",{url:`/quickview/${a=o.type,a===d.qe.SUMMARY_CANONICAL?"summary":a.replace(/_/g,"-")}/${e}`}).then((n=>t(function({documentId:e,documents:t,users:n}){return{type:C.Z.DATA_LOADED,documentId:e,documents:t,users:n}}({...n,documentId:e})))).catch((()=>t(function(e){return{type:C.Z.DATA_LOADING_ERROR,documentId:e}}(e))));var a}}},tn=(0,l.$j)(((e,t)=>{var n=c(e)===t.module.uuid,r=n?function(e){return e.quickview.activeDocumentId}(e):null;return{isActive:n,activeDocumentId:r}}),en)(Jt),nn={wrapper:"QuickviewSiblingTransition-module_wrapper__gMdUp",noTransition:"QuickviewSiblingTransition-module_noTransition__-rPUf",slideDown:"QuickviewSiblingTransition-module_slideDown__DkFq6",slideDown2x:"QuickviewSiblingTransition-module_slideDown2x__bnAsX"},rn=e=>{var{activeCarouselIndex:t,index:n}=e;return null!==t&&n>t?nn.slideDown:null};function on(e){var{activeCarouselIndex:t,index:n,previousActiveCarouselIndex:r,slideThenJumpStatus:i}=e;return i?i===Me.JUMP?ve(rn({activeCarouselIndex:t,index:n}),nn.noTransition):n>t?nn.slideDown2x:n>r?nn.slideDown:null:rn({activeCarouselIndex:t,index:n})}function an(e){var{activeCarouselIndex:t,children:n,index:i,previousActiveCarouselIndex:o,slideThenJumpStatus:a}=e,s={["data-".concat(Ie)]:i};return r.createElement("div",Z({className:ve(nn.wrapper,on({activeCarouselIndex:t,index:i,previousActiveCarouselIndex:o,slideThenJumpStatus:a}))},s),n)}an.propTypes={activeCarouselIndex:Y.exports.number,children:Y.exports.any,index:Y.exports.number,previousActiveCarouselIndex:Y.exports.number,slideThenJumpStatus:Y.exports.oneOf([Me.JUMP,Me.SLIDE,null])},an.defaultProps={activeCarouselIndex:null,children:null,index:1/0,previousActiveCarouselIndex:null,slideThenJumpStatus:null};var sn=(0,l.$j)((e=>({activeCarouselIndex:v(e),slideThenJumpStatus:e.quickview.slideThenJumpStatus,previousActiveCarouselIndex:D(e)})))(an);function un(){return un=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wn);return(0,r.createElement)(i,En({ref:t,style:En({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},a)},s))}));var In="SvgIcon-module_wrapper__1fPqw",Mn="SvgIcon-module_icon__sUHUn";function Sn(e){var{"data-e2e":t,alt:n,className:i,icon:o,nodeRef:a}=e;return r.createElement("span",{className:yn(In,i),"data-e2e":t,ref:a},r.createElement(o,{role:"img","aria-hidden":"true",className:Mn}),n?r.createElement(xn,null,n):null)}function Cn(e){return r.createElement("svg",un({fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{clipRule:"evenodd",d:"m14 0h-9.41421l-4.58579 4.58579v11.41421h4v-2h-2v-8.58579l3.41421-3.41421h6.58579v1h2zm-3 8c.5523 0 1-.44772 1-1s-.4477-1-1-1-1 .44772-1 1 .4477 1 1 1zm0 2c1.6569 0 3-1.34315 3-3s-1.3431-3-3-3c-1.65685 0-3 1.34315-3 3s1.34315 3 3 3zm-5 4c0-1.6569 1.34315-3 3-3h4c1.6569 0 3 1.3431 3 3v2h-2v-2c0-.5523-.4477-1-1-1h-4c-.55228 0-1 .4477-1 1v2h-2z",fill:"currentColor",fillRule:"evenodd"}))}function Nn(e){return r.createElement("svg",un({fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{clipRule:"evenodd",d:"m19 0h-12.41421l-6.58579 6.58579v14.41421c0 1.6569 1.34315 3 3 3h5v-2h-5c-.55228 0-1-.4477-1-1v-12h7v-7h8v4h2zm-12 2.41421-4.58579 4.58579h4.58579zm10 11.58579c1.1046 0 2-.8954 2-2s-.8954-2-2-2-2 .8954-2 2 .8954 2 2 2zm0 2c2.2091 0 4-1.7909 4-4 0-2.20914-1.7909-4-4-4s-4 1.79086-4 4c0 2.2091 1.7909 4 4 4zm-5 5c0-.5523.4477-1 1-1h8c.5523 0 1 .4477 1 1v3h2v-3c0-1.6569-1.3431-3-3-3h-8c-1.6569 0-3 1.3431-3 3v3h2z",fill:"currentColor",fillRule:"evenodd"}))}Sn.propTypes={"data-e2e":ln.exports.string,alt:ln.exports.string,className:ln.exports.string,icon:ln.exports.any.isRequired,nodeRef:ln.exports.any},Sn.defaultProps={"data-e2e":null,alt:null,nodeRef:null};var Tn=e=>r.createElement(Sn,un({icon:Cn},e)),Ln=e=>r.createElement(Sn,un({icon:Nn},e)),Dn={authorImage:"AuthorCarouselItem-module_authorImage__VBfLa"},On=(e,t)=>{(0,s.L9)("seo_crosslinks:click",{page:t,author:{id:e.id,slug:e.slug},location:window.location.href,destination:e.url})};function kn(e){var{author:t,page:n}=e,{imageUrl:i,name:o,retinaImageUrl:a,url:s}=t,u=!i&&!a,l=r.createElement("img",{alt:"",className:Dn.authorImage,src:i,srcSet:"".concat(a," 2x")}),c=u?r.createElement(Ln,null):l,d=u?r.createElement(Tn,null):l;return r.createElement(z,{href:s,icon:c,iconSmall:d,title:o,onClick:()=>On(t,n)})}kn.propTypes={author:Y.exports.shape({imageUrl:Y.exports.string,name:Y.exports.string,retinaImageUrl:Y.exports.string,url:Y.exports.string}).isRequired,page:Y.exports.string.isRequired};var Rn="RelatedAuthorsCarousel-module_title__LymQB";function jn(e){var{authors:t,"data-e2e":n,page:o}=e;return t.length?r.createElement("div",null,r.createElement("h3",{className:Rn,"data-e2e":"carousel-title"},i.Z.t("shared.text_links.related_authors")),r.createElement(a.c0,{"data-e2e":n},r.createElement("ul",{className:ye.list},t.map((e=>r.createElement("li",{className:ye.listItem,key:e.id},r.createElement(kn,{author:e,page:o}))))))):null}jn.propTypes={"data-e2e":Y.exports.string,authors:Y.exports.arrayOf(Y.exports.shape({id:Y.exports.number.isRequired,imageUrl:Y.exports.string,name:Y.exports.string.isRequired,retinaImageUrl:Y.exports.string,url:Y.exports.string})),page:Y.exports.string.isRequired},jn.defaultProps={authors:[]};var Pn={exports:{}};!function(e,t){(function(){var n,r="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",a=16,s=32,u=64,l=128,c=256,d=1/0,p=9007199254740991,f=NaN,h=4294967295,g=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",s],["partialRight",u],["rearg",c]],m="[object Arguments]",v="[object Array]",_="[object Boolean]",A="[object Date]",y="[object Error]",b="[object Function]",E="[object GeneratorFunction]",w="[object Map]",x="[object Number]",I="[object Object]",M="[object Promise]",S="[object RegExp]",C="[object Set]",N="[object String]",T="[object Symbol]",L="[object WeakMap]",D="[object ArrayBuffer]",O="[object DataView]",k="[object Float32Array]",R="[object Float64Array]",j="[object Int8Array]",P="[object Int16Array]",U="[object Int32Array]",z="[object Uint8Array]",B="[object Uint8ClampedArray]",q="[object Uint16Array]",F="[object Uint32Array]",Z=/\b__p \+= '';/g,Y=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,Q=RegExp(W.source),K=RegExp(V.source),X=/<%-([\s\S]+?)%>/g,$=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(re.source),oe=/^\s+/,ae=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,_e=/^0o[0-7]+$/i,Ae=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ie="\\u2700-\\u27bf",Me="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Ne="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['\u2019]",Le="["+we+"]",De="["+Ne+"]",Oe="["+xe+"]",ke="\\d+",Re="["+Ie+"]",je="["+Me+"]",Pe="[^"+we+Ne+ke+Ie+Me+Se+"]",Ue="\\ud83c[\\udffb-\\udfff]",ze="[^"+we+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",qe="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+Se+"]",Ze="\\u200d",Ge="(?:"+je+"|"+Pe+")",Ye="(?:"+Fe+"|"+Pe+")",He="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",We="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ve="(?:"+Oe+"|"+Ue+")"+"?",Qe="["+Ce+"]?",Ke=Qe+Ve+("(?:"+Ze+"(?:"+[ze,Be,qe].join("|")+")"+Qe+Ve+")*"),Xe="(?:"+[Re,Be,qe].join("|")+")"+Ke,$e="(?:"+[ze+Oe+"?",Oe,Be,qe,Le].join("|")+")",Je=RegExp(Te,"g"),et=RegExp(Oe,"g"),tt=RegExp(Ue+"(?="+Ue+")|"+$e+Ke,"g"),nt=RegExp([Fe+"?"+je+"+"+He+"(?="+[De,Fe,"$"].join("|")+")",Ye+"+"+We+"(?="+[De,Fe+Ge,"$"].join("|")+")",Fe+"?"+Ge+"+"+He,Fe+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ke,Xe].join("|"),"g"),rt=RegExp("["+Ze+we+xe+Ce+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,st={};st[k]=st[R]=st[j]=st[P]=st[U]=st[z]=st[B]=st[q]=st[F]=!0,st[m]=st[v]=st[D]=st[_]=st[O]=st[A]=st[y]=st[b]=st[w]=st[x]=st[I]=st[S]=st[C]=st[N]=st[L]=!1;var ut={};ut[m]=ut[v]=ut[D]=ut[O]=ut[_]=ut[A]=ut[k]=ut[R]=ut[j]=ut[P]=ut[U]=ut[w]=ut[x]=ut[I]=ut[S]=ut[C]=ut[N]=ut[T]=ut[z]=ut[B]=ut[q]=ut[F]=!0,ut[y]=ut[b]=ut[L]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,dt=parseInt,pt="object"==typeof G&&G&&G.Object===Object&&G,ft="object"==typeof self&&self&&self.Object===Object&&self,ht=pt||ft||Function("return this")(),gt=t&&!t.nodeType&&t,mt=gt&&e&&!e.nodeType&&e,vt=mt&&mt.exports===gt,_t=vt&&pt.process,At=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||_t&&_t.binding&&_t.binding("util")}catch(t){}}(),yt=At&&At.isArrayBuffer,bt=At&&At.isDate,Et=At&&At.isMap,wt=At&&At.isRegExp,xt=At&&At.isSet,It=At&&At.isTypedArray;function Mt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function St(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function Ot(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function nn(e,t){for(var n=e.length;n--&&Ft(t,e[n],0)>-1;);return n}var rn=Wt({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"}),on=Wt({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+lt[e]}function sn(e){return rt.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,r=e.length,i=0,a=[];++n",""":'"',"'":"'"});var vn=function e(t){var G=(t=null==t?ht:vn.defaults(ht.Object(),t,vn.pick(ht,ot))).Array,ae=t.Date,we=t.Error,xe=t.Function,Ie=t.Math,Me=t.Object,Se=t.RegExp,Ce=t.String,Ne=t.TypeError,Te=G.prototype,Le=xe.prototype,De=Me.prototype,Oe=t["__core-js_shared__"],ke=Le.toString,Re=De.hasOwnProperty,je=0,Pe=function(){var e=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ue=De.toString,ze=ke.call(Me),Be=ht._,qe=Se("^"+ke.call(Re).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=vt?t.Buffer:n,Ze=t.Symbol,Ge=t.Uint8Array,Ye=Fe?Fe.allocUnsafe:n,He=ln(Me.getPrototypeOf,Me),We=Me.create,Ve=De.propertyIsEnumerable,Qe=Te.splice,Ke=Ze?Ze.isConcatSpreadable:n,Xe=Ze?Ze.iterator:n,$e=Ze?Ze.toStringTag:n,tt=function(){try{var e=po(Me,"defineProperty");return e({},"",{}),e}catch(t){}}(),rt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,lt=ae&&ae.now!==ht.Date.now&&ae.now,pt=t.setTimeout!==ht.setTimeout&&t.setTimeout,ft=Ie.ceil,gt=Ie.floor,mt=Me.getOwnPropertySymbols,_t=Fe?Fe.isBuffer:n,At=t.isFinite,zt=Te.join,Wt=ln(Me.keys,Me),_n=Ie.max,An=Ie.min,yn=ae.now,bn=t.parseInt,En=Ie.random,wn=Te.reverse,xn=po(t,"DataView"),In=po(t,"Map"),Mn=po(t,"Promise"),Sn=po(t,"Set"),Cn=po(t,"WeakMap"),Nn=po(Me,"create"),Tn=Cn&&new Cn,Ln={},Dn=Uo(xn),On=Uo(In),kn=Uo(Mn),Rn=Uo(Sn),jn=Uo(Cn),Pn=Ze?Ze.prototype:n,Un=Pn?Pn.valueOf:n,zn=Pn?Pn.toString:n;function Bn(e){if(ts(e)&&!Ga(e)&&!(e instanceof Gn)){if(e instanceof Zn)return e;if(Re.call(e,"__wrapped__"))return zo(e)}return new Zn(e)}var qn=function(){function e(){}return function(t){if(!es(t))return{};if(We)return We(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Fn(){}function Zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Gn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function ur(e,t,r,i,o,a){var s,u=1&t,l=2&t,c=4&t;if(r&&(s=o?r(e,i,o,a):r(e)),s!==n)return s;if(!es(e))return e;var d=Ga(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return Ni(e,s)}else{var p=go(e),f=p==b||p==E;if(Va(e))return wi(e,u);if(p==I||p==m||f&&!o){if(s=l||f?{}:vo(e),!u)return l?function(e,t){return Ti(e,ho(e),t)}(e,function(e,t){return e&&Ti(t,Ds(t),e)}(s,e)):function(e,t){return Ti(e,fo(e),t)}(e,ir(s,e))}else{if(!ut[p])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case D:return xi(e);case _:case A:return new r(+e);case O:return function(e,t){var n=t?xi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case k:case R:case j:case P:case U:case z:case B:case q:case F:return Ii(e,n);case w:return new r;case x:case N:return new r(e);case S:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new r;case T:return i=e,Un?Me(Un.call(i)):{}}var i}(e,p,u)}}a||(a=new Qn);var h=a.get(e);if(h)return h;a.set(e,s),as(e)?e.forEach((function(n){s.add(ur(n,t,r,n,e,a))})):ns(e)&&e.forEach((function(n,i){s.set(i,ur(n,t,r,i,e,a))}));var g=d?n:(c?l?io:ro:l?Ds:Ls)(e);return Ct(g||e,(function(n,i){g&&(n=e[i=n]),tr(s,i,ur(n,t,r,i,e,a))})),s}function lr(e,t,r){var i=r.length;if(null==e)return!i;for(e=Me(e);i--;){var o=r[i],a=t[o],s=e[o];if(s===n&&!(o in e)||!a(s))return!1}return!0}function cr(e,t,i){if("function"!=typeof e)throw new Ne(r);return Lo((function(){e.apply(n,i)}),t)}function dr(e,t,n,r){var i=-1,o=Dt,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=kt(t,$t(n))),r?(o=Ot,a=!1):t.length>=200&&(o=en,a=!1,t=new Vn(t));e:for(;++i-1},Hn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Wn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(In||Hn),string:new Yn}},Wn.prototype.delete=function(e){var t=lo(this,e).delete(e);return this.size-=t?1:0,t},Wn.prototype.get=function(e){return lo(this,e).get(e)},Wn.prototype.has=function(e){return lo(this,e).has(e)},Wn.prototype.set=function(e,t){var n=lo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Vn.prototype.add=Vn.prototype.push=function(e){return this.__data__.set(e,i),this},Vn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.clear=function(){this.__data__=new Hn,this.size=0},Qn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Qn.prototype.get=function(e){return this.__data__.get(e)},Qn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Hn){var r=n.__data__;if(!In||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wn(r)}return n.set(e,t),this.size=n.size,this};var pr=Oi(yr),fr=Oi(br,!0);function hr(e,t){var n=!0;return pr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,r){for(var i=-1,o=e.length;++i0&&n(s)?t>1?vr(s,t-1,n,r,i):Rt(i,s):r||(i[i.length]=s)}return i}var _r=ki(),Ar=ki(!0);function yr(e,t){return e&&_r(e,t,Ls)}function br(e,t){return e&&Ar(e,t,Ls)}function Er(e,t){return Lt(t,(function(t){return Xa(e[t])}))}function wr(e,t){for(var r=0,i=(t=Ai(t,e)).length;null!=e&&rt}function Sr(e,t){return null!=e&&Re.call(e,t)}function Cr(e,t){return null!=e&&t in Me(e)}function Nr(e,t,r){for(var i=r?Ot:Dt,o=e[0].length,a=e.length,s=a,u=G(a),l=1/0,c=[];s--;){var d=e[s];s&&t&&(d=kt(d,$t(t))),l=An(d.length,l),u[s]=!r&&(t||o>=120&&d.length>=120)?new Vn(s&&d):n}d=e[0];var p=-1,f=u[0];e:for(;++p=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Yr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&Qe.call(s,u,1),Qe.call(e,u,1);return e}function Wr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Ao(i)?Qe.call(e,i,1):di(e,i)}}return e}function Vr(e,t){return e+gt(En()*(t-e+1))}function Qr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return Do(So(e,t,ru),e+"")}function Xr(e){return Xn(Bs(e))}function $r(e,t){var n=Bs(e);return Ro(n,sr(t,0,n.length))}function Jr(e,t,r,i){if(!es(e))return e;for(var o=-1,a=(t=Ai(t,e)).length,s=a-1,u=e;null!=u&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=G(i);++r>>1,a=e[o];null!==a&&!us(a)&&(n?a<=t:a=200){var l=t?null:Qi(e);if(l)return dn(l);a=!1,i=en,u=new Vn}else u=t?[]:s;e:for(;++r=i?e:ri(e,t,r)}var Ei=rt||function(e){return ht.clearTimeout(e)};function wi(e,t){if(t)return e.slice();var n=e.length,r=Ye?Ye(n):new e.constructor(n);return e.copy(r),r}function xi(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function Ii(e,t){var n=t?xi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Mi(e,t){if(e!==t){var r=e!==n,i=null===e,o=e===e,a=us(e),s=t!==n,u=null===t,l=t===t,c=us(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||i&&s&&l||!r&&l||!o)return 1;if(!i&&!a&&!c&&e1?r[o-1]:n,s=o>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(o--,a):n,s&&yo(r[0],r[1],s)&&(a=o<3?n:a,o=1),t=Me(t);++i-1?o[a?t[s]:s]:n}}function zi(e){return no((function(t){var i=t.length,o=i,a=Zn.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if("function"!=typeof s)throw new Ne(r);if(a&&!u&&"wrapper"==ao(s))var u=new Zn([],!0)}for(o=u?o:i;++o1&&A.reverse(),p&&c<_&&(A.length=c),this&&this!==ht&&this instanceof l&&(I=v||Pi(I)),I.apply(x,A)}}function qi(e,t){return function(n,r){return function(e,t,n,r){return yr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Fi(e,t){return function(r,i){var o;if(r===n&&i===n)return t;if(r!==n&&(o=r),i!==n){if(o===n)return i;"string"==typeof r||"string"==typeof i?(r=li(r),i=li(i)):(r=ui(r),i=ui(i)),o=e(r,i)}return o}}function Zi(e){return no((function(t){return t=kt(t,$t(uo())),Kr((function(n){var r=this;return e(t,(function(e){return Mt(e,r,n)}))}))}))}function Gi(e,t){var r=(t=t===n?" ":li(t)).length;if(r<2)return r?Qr(t,e):t;var i=Qr(t,ft(e/fn(t)));return sn(t)?bi(hn(i),0,e).join(""):i.slice(0,e)}function Yi(e){return function(t,r,i){return i&&"number"!=typeof i&&yo(t,r,i)&&(r=i=n),t=fs(t),r===n?(r=t,t=0):r=fs(r),function(e,t,n,r){for(var i=-1,o=_n(ft((t-e)/(n||1)),0),a=G(o);o--;)a[r?o:++i]=e,e+=n;return a}(t,r,i=i===n?tu))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var p=-1,f=!0,h=2&r?new Vn:n;for(a.set(e,t),a.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(g,(function(n){var r="_."+n[0];t&n[1]&&!Dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(le):[]}(r),n)))}function ko(e){var t=0,r=0;return function(){var i=yn(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ro(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,oa(e,r)}));function pa(e){var t=Bn(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var ha=no((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Gn&&Ao(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:fa,args:[o],thisArg:n}),new Zn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var ga=Li((function(e,t,n){Re.call(e,n)?++e[n]:or(e,n,1)}));var ma=Ui(Zo),va=Ui(Go);function _a(e,t){return(Ga(e)?Ct:pr)(e,uo(t,3))}function Aa(e,t){return(Ga(e)?Nt:fr)(e,uo(t,3))}var ya=Li((function(e,t,n){Re.call(e,n)?e[n].push(t):or(e,n,[t])}));var ba=Kr((function(e,t,n){var r=-1,i="function"==typeof t,o=Ha(e)?G(e.length):[];return pr(e,(function(e){o[++r]=i?Mt(t,e,n):Tr(e,t,n)})),o})),Ea=Li((function(e,t,n){or(e,n,t)}));function wa(e,t){return(Ga(e)?kt:zr)(e,uo(t,3))}var xa=Li((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ia=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yo(e,t[0],t[1])?t=[]:n>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),Gr(e,vr(t,1),[])})),Ma=lt||function(){return ht.Date.now()};function Sa(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Xi(e,l,n,n,n,n,t)}function Ca(e,t){var i;if("function"!=typeof t)throw new Ne(r);return e=hs(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Na=Kr((function(e,t,n){var r=1;if(n.length){var i=cn(n,so(Na));r|=s}return Xi(e,r,t,n,i)})),Ta=Kr((function(e,t,n){var r=3;if(n.length){var i=cn(n,so(Ta));r|=s}return Xi(t,r,e,n,i)}));function La(e,t,i){var o,a,s,u,l,c,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Ne(r);function g(t){var r=o,i=a;return o=a=n,d=t,u=e.apply(i,r)}function m(e){var r=e-c;return c===n||r>=t||r<0||f&&e-d>=s}function v(){var e=Ma();if(m(e))return _(e);l=Lo(v,function(e){var n=t-(e-c);return f?An(n,s-(e-d)):n}(e))}function _(e){return l=n,h&&o?g(e):(o=a=n,u)}function A(){var e=Ma(),r=m(e);if(o=arguments,a=this,c=e,r){if(l===n)return function(e){return d=e,l=Lo(v,t),p?g(e):u}(c);if(f)return Ei(l),l=Lo(v,t),g(c)}return l===n&&(l=Lo(v,t)),u}return t=ms(t)||0,es(i)&&(p=!!i.leading,s=(f="maxWait"in i)?_n(ms(i.maxWait)||0,t):s,h="trailing"in i?!!i.trailing:h),A.cancel=function(){l!==n&&Ei(l),d=0,o=c=a=l=n},A.flush=function(){return l===n?u:_(Ma())},A}var Da=Kr((function(e,t){return cr(e,1,t)})),Oa=Kr((function(e,t,n){return cr(e,ms(t)||0,n)}));function ka(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ne(r);var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(ka.Cache||Wn),n}function Ra(e){if("function"!=typeof e)throw new Ne(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ka.Cache=Wn;var ja=yi((function(e,t){var n=(t=1==t.length&&Ga(t[0])?kt(t[0],$t(uo())):kt(vr(t,1),$t(uo()))).length;return Kr((function(r){for(var i=-1,o=An(r.length,n);++i=t})),Za=Lr(function(){return arguments}())?Lr:function(e){return ts(e)&&Re.call(e,"callee")&&!Ve.call(e,"callee")},Ga=G.isArray,Ya=yt?$t(yt):function(e){return ts(e)&&Ir(e)==D};function Ha(e){return null!=e&&Ja(e.length)&&!Xa(e)}function Wa(e){return ts(e)&&Ha(e)}var Va=_t||mu,Qa=bt?$t(bt):function(e){return ts(e)&&Ir(e)==A};function Ka(e){if(!ts(e))return!1;var t=Ir(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Xa(e){if(!es(e))return!1;var t=Ir(e);return t==b||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $a(e){return"number"==typeof e&&e==hs(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var ns=Et?$t(Et):function(e){return ts(e)&&go(e)==w};function rs(e){return"number"==typeof e||ts(e)&&Ir(e)==x}function is(e){if(!ts(e)||Ir(e)!=I)return!1;var t=He(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==ze}var os=wt?$t(wt):function(e){return ts(e)&&Ir(e)==S};var as=xt?$t(xt):function(e){return ts(e)&&go(e)==C};function ss(e){return"string"==typeof e||!Ga(e)&&ts(e)&&Ir(e)==N}function us(e){return"symbol"==typeof e||ts(e)&&Ir(e)==T}var ls=It?$t(It):function(e){return ts(e)&&Ja(e.length)&&!!st[Ir(e)]};var cs=Hi(Ur),ds=Hi((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Ha(e))return ss(e)?hn(e):Ni(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=go(e);return(t==w?un:t==C?dn:Bs)(e)}function fs(e){return e?(e=ms(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function hs(e){var t=fs(e),n=t%1;return t===t?n?t-n:t:0}function gs(e){return e?sr(hs(e),0,h):0}function ms(e){if("number"==typeof e)return e;if(us(e))return f;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=me.test(e);return n||_e.test(e)?dt(e.slice(2),n?2:8):ge.test(e)?f:+e}function vs(e){return Ti(e,Ds(e))}function _s(e){return null==e?"":li(e)}var As=Di((function(e,t){if(xo(t)||Ha(t))Ti(t,Ls(t),e);else for(var n in t)Re.call(t,n)&&tr(e,n,t[n])})),ys=Di((function(e,t){Ti(t,Ds(t),e)})),bs=Di((function(e,t,n,r){Ti(t,Ds(t),e,r)})),Es=Di((function(e,t,n,r){Ti(t,Ls(t),e,r)})),ws=no(ar);var xs=Kr((function(e,t){e=Me(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&yo(t[0],t[1],o)&&(i=1);++r1),t})),Ti(e,io(e),n),r&&(n=ur(n,7,eo));for(var i=t.length;i--;)di(n,t[i]);return n}));var js=no((function(e,t){return null==e?{}:function(e,t){return Yr(e,t,(function(t,n){return Ss(e,n)}))}(e,t)}));function Ps(e,t){if(null==e)return{};var n=kt(io(e),(function(e){return[e]}));return t=uo(t),Yr(e,n,(function(e,n){return t(e,n[0])}))}var Us=Ki(Ls),zs=Ki(Ds);function Bs(e){return null==e?[]:Jt(e,Ls(e))}var qs=ji((function(e,t,n){return t=t.toLowerCase(),e+(n?Fs(t):t)}));function Fs(e){return Ks(_s(e).toLowerCase())}function Zs(e){return(e=_s(e))&&e.replace(ye,rn).replace(et,"")}var Gs=ji((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ys=ji((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Hs=Ri("toLowerCase");var Ws=ji((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Vs=ji((function(e,t,n){return e+(n?" ":"")+Ks(t)}));var Qs=ji((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ks=Ri("toUpperCase");function Xs(e,t,r){return e=_s(e),(t=r?n:t)===n?function(e){return it.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var $s=Kr((function(e,t){try{return Mt(e,n,t)}catch(r){return Ka(r)?r:new we(r)}})),Js=no((function(e,t){return Ct(t,(function(t){t=Po(t),or(e,t,Na(e[t],e))})),e}));function eu(e){return function(){return e}}var tu=zi(),nu=zi(!0);function ru(e){return e}function iu(e){return Rr("function"==typeof e?e:ur(e,1))}var ou=Kr((function(e,t){return function(n){return Tr(n,e,t)}})),au=Kr((function(e,t){return function(n){return Tr(e,n,t)}}));function su(e,t,n){var r=Ls(t),i=Er(t,r);null!=n||es(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Er(t,Ls(t)));var o=!(es(n)&&"chain"in n)||!!n.chain,a=Xa(e);return Ct(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Ni(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})})),e}function uu(){}var lu=Zi(kt),cu=Zi(Tt),du=Zi(Ut);function pu(e){return bo(e)?Ht(Po(e)):function(e){return function(t){return wr(t,e)}}(e)}var fu=Yi(),hu=Yi(!0);function gu(){return[]}function mu(){return!1}var vu=Fi((function(e,t){return e+t}),0),_u=Vi("ceil"),Au=Fi((function(e,t){return e/t}),1),yu=Vi("floor");var bu=Fi((function(e,t){return e*t}),1),Eu=Vi("round"),wu=Fi((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new Ne(r);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Sa,Bn.assign=As,Bn.assignIn=ys,Bn.assignInWith=bs,Bn.assignWith=Es,Bn.at=ws,Bn.before=Ca,Bn.bind=Na,Bn.bindAll=Js,Bn.bindKey=Ta,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ga(e)?e:[e]},Bn.chain=pa,Bn.chunk=function(e,t,r){t=(r?yo(e,t,r):t===n)?1:_n(hs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=G(ft(i/t));oo?0:o+r),(i=i===n||i>o?o:hs(i))<0&&(i+=o),i=r>i?0:gs(i);r>>0)?(e=_s(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=li(t))&&sn(e)?bi(hn(e),0,r):e.split(t,r):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new Ne(r);return t=null==t?0:_n(hs(t),0),Kr((function(n){var r=n[t],i=bi(n,0,t);return r&&Rt(i,r),Mt(e,this,i)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?ri(e,1,t):[]},Bn.take=function(e,t,r){return e&&e.length?ri(e,0,(t=r||t===n?1:hs(t))<0?0:t):[]},Bn.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?ri(e,(t=i-(t=r||t===n?1:hs(t)))<0?0:t,i):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?fi(e,uo(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?fi(e,uo(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new Ne(r);return es(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),La(e,t,{leading:i,maxWait:t,trailing:o})},Bn.thru=fa,Bn.toArray=ps,Bn.toPairs=Us,Bn.toPairsIn=zs,Bn.toPath=function(e){return Ga(e)?kt(e,Po):us(e)?[e]:Ni(jo(_s(e)))},Bn.toPlainObject=vs,Bn.transform=function(e,t,n){var r=Ga(e),i=r||Va(e)||ls(e);if(t=uo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:es(e)&&Xa(o)?qn(He(e)):{}}return(i?Ct:yr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Bn.unary=function(e){return Sa(e,1)},Bn.union=ta,Bn.unionBy=na,Bn.unionWith=ra,Bn.uniq=function(e){return e&&e.length?ci(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?ci(e,uo(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?ci(e,n,t):[]},Bn.unset=function(e,t){return null==e||di(e,t)},Bn.unzip=ia,Bn.unzipWith=oa,Bn.update=function(e,t,n){return null==e?e:pi(e,t,_i(n))},Bn.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:pi(e,t,_i(r),i)},Bn.values=Bs,Bn.valuesIn=function(e){return null==e?[]:Jt(e,Ds(e))},Bn.without=aa,Bn.words=Xs,Bn.wrap=function(e,t){return Pa(_i(t),e)},Bn.xor=sa,Bn.xorBy=ua,Bn.xorWith=la,Bn.zip=ca,Bn.zipObject=function(e,t){return mi(e||[],t||[],tr)},Bn.zipObjectDeep=function(e,t){return mi(e||[],t||[],Jr)},Bn.zipWith=da,Bn.entries=Us,Bn.entriesIn=zs,Bn.extend=ys,Bn.extendWith=bs,su(Bn,Bn),Bn.add=vu,Bn.attempt=$s,Bn.camelCase=qs,Bn.capitalize=Fs,Bn.ceil=_u,Bn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ms(r))===r?r:0),t!==n&&(t=(t=ms(t))===t?t:0),sr(ms(e),t,r)},Bn.clone=function(e){return ur(e,4)},Bn.cloneDeep=function(e){return ur(e,5)},Bn.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:n)},Bn.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:n)},Bn.conformsTo=function(e,t){return null==t||lr(e,t,Ls(t))},Bn.deburr=Zs,Bn.defaultTo=function(e,t){return null==e||e!==e?t:e},Bn.divide=Au,Bn.endsWith=function(e,t,r){e=_s(e),t=li(t);var i=e.length,o=r=r===n?i:sr(hs(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},Bn.eq=Ba,Bn.escape=function(e){return(e=_s(e))&&K.test(e)?e.replace(V,on):e},Bn.escapeRegExp=function(e){return(e=_s(e))&&ie.test(e)?e.replace(re,"\\$&"):e},Bn.every=function(e,t,r){var i=Ga(e)?Tt:hr;return r&&yo(e,t,r)&&(t=n),i(e,uo(t,3))},Bn.find=ma,Bn.findIndex=Zo,Bn.findKey=function(e,t){return Bt(e,uo(t,3),yr)},Bn.findLast=va,Bn.findLastIndex=Go,Bn.findLastKey=function(e,t){return Bt(e,uo(t,3),br)},Bn.floor=yu,Bn.forEach=_a,Bn.forEachRight=Aa,Bn.forIn=function(e,t){return null==e?e:_r(e,uo(t,3),Ds)},Bn.forInRight=function(e,t){return null==e?e:Ar(e,uo(t,3),Ds)},Bn.forOwn=function(e,t){return e&&yr(e,uo(t,3))},Bn.forOwnRight=function(e,t){return e&&br(e,uo(t,3))},Bn.get=Ms,Bn.gt=qa,Bn.gte=Fa,Bn.has=function(e,t){return null!=e&&mo(e,t,Sr)},Bn.hasIn=Ss,Bn.head=Ho,Bn.identity=ru,Bn.includes=function(e,t,n,r){e=Ha(e)?e:Bs(e),n=n&&!r?hs(n):0;var i=e.length;return n<0&&(n=_n(i+n,0)),ss(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ft(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:hs(n);return i<0&&(i=_n(r+i,0)),Ft(e,t,i)},Bn.inRange=function(e,t,r){return t=fs(t),r===n?(r=t,t=0):r=fs(r),function(e,t,n){return e>=An(t,n)&&e<_n(t,n)}(e=ms(e),t,r)},Bn.invoke=Ts,Bn.isArguments=Za,Bn.isArray=Ga,Bn.isArrayBuffer=Ya,Bn.isArrayLike=Ha,Bn.isArrayLikeObject=Wa,Bn.isBoolean=function(e){return!0===e||!1===e||ts(e)&&Ir(e)==_},Bn.isBuffer=Va,Bn.isDate=Qa,Bn.isElement=function(e){return ts(e)&&1===e.nodeType&&!is(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Ha(e)&&(Ga(e)||"string"==typeof e||"function"==typeof e.splice||Va(e)||ls(e)||Za(e)))return!e.length;var t=go(e);if(t==w||t==C)return!e.size;if(xo(e))return!jr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Dr(e,t)},Bn.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return i===n?Dr(e,t,n,r):!!i},Bn.isError=Ka,Bn.isFinite=function(e){return"number"==typeof e&&At(e)},Bn.isFunction=Xa,Bn.isInteger=$a,Bn.isLength=Ja,Bn.isMap=ns,Bn.isMatch=function(e,t){return e===t||Or(e,t,co(t))},Bn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Or(e,t,co(t),r)},Bn.isNaN=function(e){return rs(e)&&e!=+e},Bn.isNative=function(e){if(wo(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return kr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=rs,Bn.isObject=es,Bn.isObjectLike=ts,Bn.isPlainObject=is,Bn.isRegExp=os,Bn.isSafeInteger=function(e){return $a(e)&&e>=-9007199254740991&&e<=p},Bn.isSet=as,Bn.isString=ss,Bn.isSymbol=us,Bn.isTypedArray=ls,Bn.isUndefined=function(e){return e===n},Bn.isWeakMap=function(e){return ts(e)&&go(e)==L},Bn.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==Ir(e)},Bn.join=function(e,t){return null==e?"":zt.call(e,t)},Bn.kebabCase=Gs,Bn.last=Ko,Bn.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=hs(r))<0?_n(i+o,0):An(o,i-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):qt(e,Gt,o,!0)},Bn.lowerCase=Ys,Bn.lowerFirst=Hs,Bn.lt=cs,Bn.lte=ds,Bn.max=function(e){return e&&e.length?gr(e,ru,Mr):n},Bn.maxBy=function(e,t){return e&&e.length?gr(e,uo(t,2),Mr):n},Bn.mean=function(e){return Yt(e,ru)},Bn.meanBy=function(e,t){return Yt(e,uo(t,2))},Bn.min=function(e){return e&&e.length?gr(e,ru,Ur):n},Bn.minBy=function(e,t){return e&&e.length?gr(e,uo(t,2),Ur):n},Bn.stubArray=gu,Bn.stubFalse=mu,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=bu,Bn.nth=function(e,t){return e&&e.length?Zr(e,hs(t)):n},Bn.noConflict=function(){return ht._===this&&(ht._=Be),this},Bn.noop=uu,Bn.now=Ma,Bn.pad=function(e,t,n){e=_s(e);var r=(t=hs(t))?fn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Gi(gt(i),n)+e+Gi(ft(i),n)},Bn.padEnd=function(e,t,n){e=_s(e);var r=(t=hs(t))?fn(e):0;return t&&rt){var i=e;e=t,t=i}if(r||e%1||t%1){var o=En();return An(e+o*(t-e+ct("1e-"+((o+"").length-1))),t)}return Vr(e,t)},Bn.reduce=function(e,t,n){var r=Ga(e)?jt:Vt,i=arguments.length<3;return r(e,uo(t,4),n,i,pr)},Bn.reduceRight=function(e,t,n){var r=Ga(e)?Pt:Vt,i=arguments.length<3;return r(e,uo(t,4),n,i,fr)},Bn.repeat=function(e,t,r){return t=(r?yo(e,t,r):t===n)?1:hs(t),Qr(_s(e),t)},Bn.replace=function(){var e=arguments,t=_s(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,r){var i=-1,o=(t=Ai(t,e)).length;for(o||(o=1,e=n);++ip)return[];var n=h,r=An(e,h);t=uo(t),e-=h;for(var i=Kt(r,t);++n=a)return e;var u=r-fn(i);if(u<1)return i;var l=s?bi(s,0,u).join(""):e.slice(0,u);if(o===n)return l+i;if(s&&(u+=l.length-u),os(o)){if(e.slice(u).search(o)){var c,d=l;for(o.global||(o=Se(o.source,_s(he.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var p=c.index;l=l.slice(0,p===n?u:p)}}else if(e.indexOf(li(o),u)!=u){var f=l.lastIndexOf(o);f>-1&&(l=l.slice(0,f))}return l+i},Bn.unescape=function(e){return(e=_s(e))&&Q.test(e)?e.replace(W,mn):e},Bn.uniqueId=function(e){var t=++je;return _s(e)+t},Bn.upperCase=Qs,Bn.upperFirst=Ks,Bn.each=_a,Bn.eachRight=Aa,Bn.first=Ho,su(Bn,function(){var e={};return yr(Bn,(function(t,n){Re.call(Bn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Bn.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),Ct(["drop","take"],(function(e,t){Gn.prototype[e]=function(r){r=r===n?1:_n(hs(r),0);var i=this.__filtered__&&!t?new Gn(this):this.clone();return i.__filtered__?i.__takeCount__=An(r,i.__takeCount__):i.__views__.push({size:An(r,h),type:e+(i.__dir__<0?"Right":"")}),i},Gn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Gn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:uo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Gn.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Gn.prototype[e]=function(){return this.__filtered__?new Gn(this):this[n](1)}})),Gn.prototype.compact=function(){return this.filter(ru)},Gn.prototype.find=function(e){return this.filter(e).head()},Gn.prototype.findLast=function(e){return this.reverse().find(e)},Gn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Gn(this):this.map((function(n){return Tr(n,e,t)}))})),Gn.prototype.reject=function(e){return this.filter(Ra(uo(e)))},Gn.prototype.slice=function(e,t){e=hs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Gn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},Gn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Gn.prototype.toArray=function(){return this.take(h)},yr(Gn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=Bn[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(Bn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,u=t instanceof Gn,l=s[0],c=u||Ga(t),d=function(e){var t=o.apply(Bn,Rt([e],s));return i&&p?t[0]:t};c&&r&&"function"==typeof l&&1!=l.length&&(u=c=!1);var p=this.__chain__,f=!!this.__actions__.length,h=a&&!p,g=u&&!f;if(!a&&c){t=g?t:new Gn(this);var m=e.apply(t,s);return m.__actions__.push({func:fa,args:[d],thisArg:n}),new Zn(m,p)}return h&&g?e.apply(this,s):(m=this.thru(d),h?i?m.value()[0]:m.value():m)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ga(i)?i:[],e)}return this[n]((function(n){return t.apply(Ga(n)?n:[],e)}))}})),yr(Gn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";Re.call(Ln,r)||(Ln[r]=[]),Ln[r].push({name:t,func:n})}})),Ln[Bi(n,2).name]=[{name:"wrapper",func:n}],Gn.prototype.clone=function(){var e=new Gn(this.__wrapped__);return e.__actions__=Ni(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ni(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ni(this.__views__),e},Gn.prototype.reverse=function(){if(this.__filtered__){var e=new Gn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Gn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ga(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,r=this;r instanceof Fn;){var i=zo(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Gn){var t=e;return this.__actions__.length&&(t=new Gn(this)),(t=t.reverse()).__actions__.push({func:fa,args:[ea],thisArg:n}),new Zn(t,this.__chain__)}return this.thru(ea)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Xe&&(Bn.prototype[Xe]=function(){return this}),Bn}();mt?((mt.exports=vn)._=vn,gt._=vn):ht._=vn}).call(G)}(Pn,Pn.exports);var Un={wrapper:"StandardCarousel-module_wrapper__y1Q60",issuesWrapper:"StandardCarousel-module_issuesWrapper__3Rgr5",item:"StandardCarousel-module_item__gYuvf",listItems:"StandardCarousel-module_listItems__Rwl0M"},zn="issues";function Bn(e){var{className:t,module:n,page:o,renderIcon:s,subtitle:l,title:c,titleLink:d,titleUrl:p}=e,{documents:f,type:h,uuid:g}=n;return r.createElement(de,{className:ve(Un.wrapper,t,{[Un.issuesWrapper]:h===zn}),name:h,uuid:g},r.createElement(ze,{subtitle:l||n.subtitle,title:c||n.title,titleLink:d,titleUrl:p||n.titleUrl,uuid:g,renderIcon:s}),r.createElement(a.lr,{renderPaddle:e=>r.createElement(pe,{uuid:g},r.createElement(a.YJ,e)),renderSkipLink:e=>r.createElement(pe,{uuid:g},r.createElement(a.GX,Z({},e,{text:i.Z.t("shared.carousels.skip_carousel")})))},r.createElement("ul",{className:Un.listItems},f.map((e=>r.createElement("li",{className:Un.item,key:e.uuid},r.createElement(Pe,{uuid:e.uuid},r.createElement(u.qI,{documentId:e.id,page:o}))))))))}Bn.propTypes={className:Y.exports.string,module:Y.exports.object.isRequired,page:Y.exports.string.isRequired,renderIcon:Y.exports.func,subtitle:Y.exports.string,title:Y.exports.string,titleLink:Y.exports.element,titleUrl:Y.exports.string},Bn.defaultProps={className:null,renderIcon:Pn.exports.noop,subtitle:null,title:null,titleLink:null,titleUrl:null};var qn={wrapper:"SavedCarousel-module_wrapper__BZG2h",item:"SavedCarousel-module_item__AJyzg",headerIcon:"SavedCarousel-module_headerIcon__zika1",listItems:"SavedCarousel-module_listItems__h3sdo"};function Fn(e){var{className:t,module:n,page:o,title:s,titleUrl:l,subtitle:c}=e,{documents:d,type:p,uuid:f}=n;return r.createElement(de,{className:ve(qn.wrapper,t),name:p,uuid:f,"data-e2e":"carousel-wrap"},r.createElement(ze,{title:s||n.title,titleUrl:l||n.titleUrl,subtitle:c||n.subtitle,uuid:f,renderIcon:()=>r.createElement("span",{className:qn.headerIcon},r.createElement(a.JO,{icon:"save_for_later_2px"}))}),r.createElement(a.lr,{renderPaddle:e=>r.createElement(pe,{uuid:f},r.createElement(a.YJ,e)),renderSkipLink:e=>r.createElement(pe,{uuid:f},r.createElement(a.GX,Z({},e,{text:i.Z.t("shared.carousels.skip_carousel")})))},r.createElement("ul",{className:qn.listItems},d.map((e=>r.createElement("li",{className:qn.item,key:e.uuid},r.createElement(Pe,{uuid:e.uuid},r.createElement(u.HE,{documentId:e.id,page:o}))))))))}Fn.propTypes={className:Y.exports.string,module:Y.exports.object.isRequired,page:Y.exports.string.isRequired,title:Y.exports.string,titleUrl:Y.exports.string,subtitle:Y.exports.string},Fn.defaultProps={className:null,title:null,titleUrl:null};var Zn={wrapper:"ReadingListCarousel-module_wrapper__3Icvl",listItems:"ReadingListCarousel-module_listItems__92MhI",item:"ReadingListCarousel-module_item__UrLgD"},Gn=e=>t=>r.createElement(pe,{uuid:e},r.createElement(a.YJ,t)),Yn=e=>t=>r.createElement(pe,{uuid:e},r.createElement(a.GX,Z({},t,{text:i.Z.t("shared.carousels.skip_carousel")})));function Hn(e){var{collections:t,className:n,module:i}=e,{title:o,subtitle:s,documents:l,type:c,uuid:d}=i;return r.createElement(de,{className:ve(Zn.wrapper,n),name:c,uuid:d},r.createElement(ze,{title:o,subtitle:s,uuid:d}),r.createElement(a.lr,{renderPaddle:Gn(d),renderSkipLink:Yn(d)},r.createElement("ul",{className:Zn.listItems},l.map((e=>r.createElement("li",{className:Zn.item,key:e.uuid},r.createElement(Pe,{uuid:e.uuid},r.createElement(u.ho,t[e.id]))))))))}Hn.propTypes={collections:Y.exports.object.isRequired,className:Y.exports.string,module:Y.exports.object.isRequired},Hn.defaultProps={className:null}},686:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4974);function i(e){return{type:r.Z.CATEGORIES_LOADED,categories:e}}},8814:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(5729),i=n(4974);const o={};function a(e=o,t={}){return t.type===i.Z.CATEGORIES_LOADED?(0,r.ZP)(e,(e=>({...e,...t.categories}))):(0,r.ZP)(null,(()=>e))}},4974:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={CATEGORIES_LOADED:"categories/CATEGORIES_LOADED"}},2477:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(8813);function i(e){return{type:r.Z.COMPILATION_UPDATED,compilation:e}}},4738:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(8813);function i(e){return{type:r.Z.VIEW_ALL_MODULE_UPDATED,documents:e}}},7726:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(5729),i=n(8813);e=n.hmd(e);const o={modules:[],uuid:null};function a(t=o,n){switch(n.type){case i.Z.COMPILATION_UPDATED:return(0,r.ZP)(t,(e=>{e.modules=n.compilation.modules,e.uuid=n.compilation.uuid}));case i.Z.COMPILATION_MODULE_REMOVED:return(0,r.ZP)(t,(e=>{e.modules=e.modules.filter((e=>e.uuid!==n.uuid))}));case i.Z.COMPILATION_MODULE_ADDED:return(0,r.ZP)(t,(e=>{e.modules.push(n.module)}));case i.Z.VIEW_ALL_MODULE_UPDATED:return(0,r.ZP)(t,(t=>{(e=t.modules.find((e=>"view_all_button"===e.type))).documents=[...e.documents,...n.documents]}));default:return(0,r.ZP)(null,(()=>t))}}},6375:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(1320),i=n(6916),o=n(8813);function a(e,t){return(n,a)=>(n(function(e){return{type:o.Z.COMPILATION_MODULE_REMOVED,uuid:e}}(e)),r.Be.asPromise("post",{url:i.Z(a(),"closePromoUrl"),body:{id:t}}).catch((()=>{(0,r.Tb)(new Error(`Unable to dismiss promo id: ${t}`))})))}},8813:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={COMPILATION_UPDATED:"compilation/COMPILATION_UPDATED",COMPILATION_MODULE_REMOVED:"compilation/COMPILATION_MODULE_REMOVED",COMPILATION_MODULE_ADDED:"compilation/COMPILATION_MODULE_ADDED",VIEW_ALL_MODULE_UPDATED:"compilation/VIEW_ALL_MODULE_UPDATED"}},6500:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6341);function i(e){return{type:r.Z.SET_SELECTED_TAB,selectedMobileBottomTab:e}}},3904:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(5729),i=n(6341);const o={isHamburgerMenuOpen:!1,isMegamenuTopBarVisible:!0,isMegamenuPrimaryNavVisible:!0,searchQuery:"",scrollDirection:null,selectedMobileBottomTab:null,navigationCategories:{}};function a(e=o,t){switch(t.type){case i.Z.SET_IS_HAMBURGER_MENU_OPEN:return(0,r.Uy)(e,(e=>{e.isHamburgerMenuOpen=t.isOpen}));case i.Z.SET_MEGAMENU_PRIMARY_NAV_VISIBLE:return(0,r.Uy)(e,(e=>{e.isMegamenuPrimaryNavVisible=t.isMegamenuPrimaryNavVisible}));case i.Z.SET_MEGAMENU_TOP_BAR_VISIBLE:return(0,r.Uy)(e,(e=>{e.isMegamenuTopBarVisible=t.isMegamenuTopBarVisible}));case i.Z.SET_SCROLL_DIRECTION:return(0,r.Uy)(e,(e=>{e.scrollDirection=t.scrollDirection}));case i.Z.SET_SELECTED_TAB:return(0,r.Uy)(e,(e=>{e.selectedMobileBottomTab=t.selectedMobileBottomTab}));default:return(0,r.Uy)(null,(()=>e))}}},6341:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={SET_IS_HAMBURGER_MENU_OPEN:"currentPage/SET_IS_HAMBURGER_MENU_OPEN",SET_MEGAMENU_PRIMARY_NAV_VISIBLE:"SET_MEGAMENU_PRIMARY_NAV_VISIBLE",SET_MEGAMENU_TOP_BAR_VISIBLE:"SET_MEGAMENU_TOP_BAR_VISIBLE",SET_SCROLL_DIRECTION:"currentPage/SET_SCROLL_DIRECTION",SET_SELECTED_TAB:"currentPage/SET_SELECTED_TAB"}},5466:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6572);function i(e){return{type:r.Z.DOCUMENT_COLLECTIONS_UPDATED,documentCollections:e}}},4283:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(5729),i=n(6572);const o={};function a(e=o,t){return t.type===i.Z.DOCUMENT_COLLECTIONS_UPDATED?(0,r.ZP)(e,(()=>t.documentCollections)):(0,r.ZP)(null,(()=>e))}},6572:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={DOCUMENT_COLLECTIONS_UPDATED:"documentCollections/DOCUMENT_COLLECTIONS_UPDATED"}},1825:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4356);function i(e){return{type:r.Z.DOCUMENTS_ADDED,documents:e}}},9073:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4356);function i(e){return{type:r.Z.DOCUMENTS_UPDATED,documents:e}}},8648:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(5729),i=n(4356),o=n(9271);const a={audioSampleUrl:null,author:null,authorIds:[],authorPossessive:null,consumptionTime:null,contentLength:null,description:null,downvoteCount:null,editorialBlurb:null,followed:null,hasProgress:null,id:null,imageUrl:null,language:null,listenUrl:null,narratorIds:[],otherFormats:[],pageCount:null,podcastAuthor:null,podcastTitle:null,previewUrl:null,publicationImageUrl:null,publicationName:null,publicationRetinaImageUrl:null,publicationUrl:null,ratingAverage:null,ratingCount:null,readUrl:null,retinaImageUrl:null,tagline:null,title:null,type:null,uploaderId:null,upvoteCount:null,views:null};const s={};function u(e=s,t){switch(t.type){case i.Z.DOCUMENTS_UPDATED:return(0,r.ZP)(e,(()=>t.documents));case i.Z.DOCUMENT_UPDATED:return(0,r.ZP)(e,(e=>{const{document:n}=t;return e[n.id]={...e[n.id],...n},e}));case o.Z.DATA_LOADED:return(0,r.ZP)(e,(e=>{const{documentId:n,documents:r}=t,i=r[n];var o,s;e[n]=(o=e[n],s=i,{...a,...o,...s})}));case i.Z.DOCUMENTS_ADDED:return(0,r.ZP)(e,(e=>{const n=t.documents;return Object.keys(n).forEach((t=>{e[t]?Object.keys(n[t]).forEach((r=>{r in e[t]||(e[t][r]=n[t][r])})):e[t]=n[t]})),e}));default:return(0,r.ZP)(null,(()=>e))}}},9535:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(985);function i(e){return e.documents}function o(e){return(0,r.P1)(i,(t=>t[e]))}},4356:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={DOCUMENTS_ADDED:"documents/DOCUMENTS_ADDED",DOCUMENTS_UPDATED:"documents/DOCUMENTS_UPDATED",DOCUMENT_UPDATED:"documents/DOCUMENT_UPDATED"}},4587:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(1169);function i(e){return{type:r.Z.CREATE_MODAL_FLASH,...e}}},2463:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(1169);function i(e){return{type:r.Z.CREATE_PAGE_FLASH,...e}}},3152:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(5729),i=n(1169),o=n(6534);const a={ids:[],items:{},nextId:0};function s(e=a,t){switch(t.type){case i.Z.CREATE_PAGE_FLASH:case i.Z.CREATE_MODAL_FLASH:return(0,r.ZP)(e,(e=>{const n=e.nextId,{className:r="",clickTrackingData:o,closeTrackingData:a,content:s,cookie:u,flashType:l,fullBorder:c=!1,isDismissable:d=!0,onClose:p,raw:f=!1,viewTrackingData:h}=t;e.items[n]={className:r,clickTrackingData:o,closeTrackingData:a,content:s,cookie:u,flashType:l,fullBorder:c,id:n,inModal:t.type===i.Z.CREATE_MODAL_FLASH,isDismissable:d,onClose:p,raw:f,viewTrackingData:h},e.ids=Object.keys(e.items),e.nextId++}));case i.Z.CLOSE_ALL_FLASHES:return(0,r.ZP)(e,(e=>{e.items={},e.ids=[]}));case o.Z.CLOSE_MODAL:return(0,r.ZP)(e,(e=>{const t=[];e.ids.forEach((n=>{e.items[n].inModal?delete e.items[n]:t.push(n)})),e.ids=t}));case i.Z.CLOSE_FLASH:return(0,r.ZP)(e,(e=>{delete e.items[t.id],e.ids=Object.keys(e.items)}));default:return(0,r.ZP)(null,(()=>e))}}},9557:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(4587),i=n(2463);function o(e){return(t,n)=>{const{modal:o}=n();let a;return a=o&&o.name?(0,r.Z)(e):(0,i.Z)(e),t(a)}}},1169:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={CLOSE_ALL_FLASHES:"flash/CLOSE_ALL_FLASHES",CLOSE_FLASH:"flash/CLOSE_FLASH",CREATE_PAGE_FLASH:"flash/CREATE_PAGE_FLASH",CREATE_MODAL_FLASH:"flash/CREATE_MODAL_FLASH"}},8481:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4993);function i(e,t={}){if(!e||"function"!==typeof e)throw new Error("withLogin must be called with a callback function");return(n,i)=>{const{user:o}=i();return o.isLoggedIn?e():n((0,r.Z)(t))}}},2331:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(5729);const i={currentLanguage:{href:"",lang:"",lcid:"",name:"",prefix:""},defaultLocale:"en-US",locale:"",languages:[],recommenderTest:!1};function o(e=i){return(0,r.ZP)(null,(()=>e))}},5908:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6710);function i(){return{type:r.Z.CLOSE_MODAL}}},984:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6710);function i({className:e="",focusTargetOnClose:t,isDismissable:n=!0,modalProps:i={},name:o,fitWidth:a=!1,slim:s=!1,unstyled:u=!1}){return{type:r.Z.CREATE_MODAL,className:e,focusTargetOnClose:t,isDismissable:n,modalProps:i,name:o,fitWidth:a,slim:s,unstyled:u}}},1004:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(6940),i=n(984);function o({bypassForceCloseLoadingModal:e,documentType:t,initialView:n,loginParams:o,nextUrl:a,signUpText:s,signInText:u,trackingData:l,userAction:c}){return(0,i.Z)({name:r.V$.ACCOUNT_CREATION,isDismissable:!0,modalProps:{bypassForceCloseLoadingModal:e,documentType:t,initialView:n,inModal:!0,loginParams:o,nextUrl:a,signUpText:s,signInText:u,trackingData:l,userAction:c},fitWidth:!0})}},39:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(6940),i=n(984);function o(){return(0,i.Z)({name:r.V$.LOCK_SHOCK_ROADBLOCK,isDismissable:!0,slim:!0})}},4993:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(6940),i=n(1004);function o(e){return(0,i.Z)({initialView:r.pe.VIEWS.JOIN,...e})}},579:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6710);function i(){return{type:r.Z.REMOVE_MODAL}}},6710:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={CLOSE_MODAL:"modal/CLOSE_MODAL",CREATE_MODAL:"modal/CREATE_MODAL",REMOVE_MODAL:"modal/REMOVE_MODAL"}},518:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(5729),i=n(6534);const o=(e={},t)=>{switch(t.type){case i.Z.CREATE_MODAL:return(0,r.ZP)(e,(()=>{const{className:n,isDismissable:r,modalProps:i,name:o,slim:a,unstyled:s,fitWidth:u}=t;return{id:void 0!==e.id?e.id+1:0,className:n,isDismissable:r,isVisible:!0,modalProps:i,name:o,slim:a,unstyled:s,fitWidth:u}}));case i.Z.CLOSE_MODAL:return(0,r.ZP)(e,(e=>{e.isVisible=!1}));case i.Z.REMOVE_MODAL:return(0,r.ZP)(e,(()=>({})));default:return(0,r.ZP)(null,(()=>e))}}},6534:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={CLOSE_MODAL:"modal/CLOSE_MODAL",CREATE_MODAL:"modal/CREATE_MODAL",REMOVE_MODAL:"modal/REMOVE_MODAL"}},9338:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4134);function i(e){return{type:r.Z.SET_TRIAL_DURATION,trialDuration:e}}},9205:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(5729),i=n(4134);const o={subscriptionPrice:null,trialDuration:null};function a(e=o,t){switch(t.type){case i.Z.SET_SUBSCRIPTION_PRICE:return(0,r.ZP)(e,(e=>{e.subscriptionPrice=t.subscriptionPrice}));case i.Z.SET_TRIAL_DURATION:return(0,r.ZP)(e,(e=>{e.trialDuration=t.trialDuration}));default:return(0,r.ZP)(null,(()=>e))}}},4134:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={SET_SUBSCRIPTION_PRICE:"SET_SUBSCRIPTION_PRICE",SET_TRIAL_DURATION:"SET_TRIAL_DURATION"}},1321:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9271);function i(e){return{type:r.Z.ACTIVE_CAROUSEL_UPDATED,activeCarouselId:e}}},7708:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9271);function i(e){return{type:r.Z.ACTIVE_DOCUMENT_UPDATED,activeDocumentId:e}}},3988:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9271);function i(e){return{type:r.Z.SLIDE_THEN_JUMP_STATUS_UPDATED,slideThenJumpStatus:e}}},9973:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(5729),i=n(6940),o=n(9271);const a={activeCarouselId:null,previousActiveCarouselId:null,activeDocumentId:null,slideThenJumpStatus:null,documentsLoading:{}},s=(e=a,t={})=>{switch(t.type){case o.Z.ACTIVE_CAROUSEL_UPDATED:return(0,r.ZP)(e,(n=>{n.previousActiveCarouselId=e.activeCarouselId,n.activeCarouselId=t.activeCarouselId}));case o.Z.ACTIVE_DOCUMENT_UPDATED:return(0,r.ZP)(e,(e=>{e.activeDocumentId=t.activeDocumentId}));case o.Z.DATA_LOADED:return(0,r.ZP)(e,(e=>{e.documentsLoading[t.documentId]=i.DS.SUCCESS}));case o.Z.DATA_LOADING_ERROR:return(0,r.ZP)(e,(e=>{e.documentsLoading[t.documentId]=i.DS.ERROR}));case o.Z.DATA_LOADING_START:return(0,r.ZP)(e,(e=>{e.documentsLoading[t.documentId]=i.DS.LOADING}));case o.Z.SLIDE_THEN_JUMP_STATUS_UPDATED:return(0,r.ZP)(e,(e=>{e.slideThenJumpStatus=t.slideThenJumpStatus}));default:return(0,r.ZP)(null,(()=>e))}}},7534:(e,t,n)=>{"use strict";function r(e){return e.quickview.documentsLoading}n.d(t,{Z:()=>r})},9867:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(1321),i=n(7708),o=n(3988),a=n(7903),s=n(1320);function u(e){return(t,n)=>{const{activeCarouselId:u,activeDocumentId:l}=n().quickview;(0,s.L9)("content_quickivew:expanded:close",{module_id:u,location:e,doc_id:l}),(0,a.dC)((()=>{t((0,r.Z)(null)),t((0,i.Z)(null)),t((0,o.Z)(null))}))}}},9271:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={ACTIVE_CAROUSEL_UPDATED:"quickview/ACTIVE_CAROUSEL_UPDATED",ACTIVE_DOCUMENT_UPDATED:"quickview/ACTIVE_DOCUMENT_UPDATED",CLOSE_QUICKVIEW:"quickview/CLOSE_QUICKVIEW",DATA_LOADED:"quickview/DATA_LOADED",SLIDE_THEN_JUMP_STATUS_UPDATED:"quickview/SLIDE_THEN_JUMP_STATUS_UPDATED",DATA_LOADING_ERROR:"quickview/DATA_LOADING_ERROR",DATA_LOADING_START:"quickview/DATA_LOADING_START"}},6207:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(5729),i=n(4845);const o={},a=(e=o,t)=>{switch(t.type){case i.Z.SET_RATING:{const{documentId:n,userRating:i}=t;return(0,r.Uy)(e,(e=>{const t=e[n]||{averageRating:0,documentId:0,downvoteCount:0,ratingCount:0,upvoteCount:0,userRating:0,xhrPending:!1},{ratingCount:r,averageRating:o}=function(e,t){let{ratingCount:n,averageRating:r,userRating:i}=e;const o=n*r-i+t;return 0===t&&i>0?n-=1:t>0&&0===i&&(n+=1),r=o/n,{ratingCount:n,averageRating:r}}(t,i),{upvoteCount:a,downvoteCount:s}=function(e,t){let{upvoteCount:n,downvoteCount:r,userRating:i}=e;return i>0&&i<3?r-=1:i>=3&&(n-=1),t>0&&t<3?r+=1:t>=3&&(n+=1),{upvoteCount:n,downvoteCount:r}}(t,i);t.upvoteCount=a,t.downvoteCount=s,t.ratingCount=r,t.averageRating=o,t.userRating=i,e[n]=t}))}case i.Z.SET_RATING_PENDING_STATUS:{const{documentId:n,pendingStatus:i}=t;return e[n]?(0,r.Uy)(e,(e=>{e[n].xhrPending=i})):e}default:return(0,r.Uy)(null,(()=>e))}}},4845:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={SET_RATING:"SET_RATING",SET_RATING_PENDING_STATUS:"SET_RATING_PENDING_STATUS"}},6916:(e,t,n)=>{"use strict";function r(e,t){return e.static.routes[t]}n.d(t,{Z:()=>r})},4142:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4226);function i(e){return{type:r.Z.INITIALIZE_SAVED_DOCUMENTS,data:e}}},6369:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4226);function i(e,t){return{type:r.Z.SAVED_DOCUMENT_UPDATED,id:e,isSaved:t}}},7957:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(5729),i=n(4226);const o={finished:{},saved:{}};function a(e=o,t={}){switch(t.type){case i.Z.INITIALIZE_SAVED_DOCUMENTS:return t.data;case i.Z.SAVED_DOCUMENT_UPDATED:return(0,r.ZP)(e,(e=>{t.isSaved?e.saved[t.id]=!0:delete e.saved[t.id]}));case i.Z.FINISHED_DOCUMENT_UPDATED:return(0,r.ZP)(e,(e=>{t.isFinished?e.finished[t.id]=!0:delete e.finished[t.id]}));default:return(0,r.ZP)(null,(()=>e))}}},9478:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(1320),i=n(6002),o=n(6047),a=n(6369);function s(e){return t=>(t((0,a.Z)(e,!0)),r.Be.asPromise("post",{url:"/saved/add",body:{id:e}}).catch((()=>{t((0,a.Z)(e,!1)),t((0,o.Z)({type:"error",content:i.Z.t("shared.common.errors.failed_to_save_title")}))})))}},1605:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(6002),i=n(6940),o=n(1320),a=n(6047),s=n(984),u=n(6369);function l(e){return o.Be.asPromise("delete",{url:"/saved/remove",body:{id:e}}).catch((e=>{throw e}))}function c(e,t=!0){return async n=>{n((0,u.Z)(e,!1));const c=(0,o.ej)(i.HR.REMOVE_FROM_LIST_REMINDER),d=!c||JSON.parse(c).showReminder;try{if(!t||!1===d)return l(e);const r=await function(e){return o.Be.asPromise("get",{url:`/user-document-collections/collections-containing-document/${e}`}).then((e=>{const{collection_ids:t}=e;return t.length>0})).catch((e=>{throw e}))}(e);if(!r)return l(e);n((0,u.Z)(e,!0)),n((0,s.Z)({name:i.V$.CONFIRM_UNSAVE_ITEM_IN_LIST,modalProps:{documentId:e},slim:!0}))}catch{n((0,u.Z)(e,!0)),n((0,a.Z)({type:"error",content:r.Z.t("shared.common.errors.failed_to_remove_title")}))}}}},4226:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={FINISHED_DOCUMENT_UPDATED:"savedDocuments/FINISHED_DOCUMENT_UPDATED",SAVED_DOCUMENT_UPDATED:"savedDocuments/SAVED_DOCUMENT_UPDATED",INITIALIZE_SAVED_DOCUMENTS:"currentCategory/INITIALIZE_SAVED_DOCUMENTS"}},6047:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(5561);const i=e=>({type:r.Z.CREATE_TOAST,props:e})},7619:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(5729),i=n(5561);const o={toasts:{},ids:[],nextId:0},a=(e=o,t)=>{switch(t.type){case i.Z.CREATE_TOAST:return(0,r.ZP)(e,(e=>{const{props:n}=t;e.toasts[e.nextId]={...n,id:e.nextId},e.ids.push(e.nextId),e.nextId++}));case i.Z.CLOSE_ALL_TOASTS:return(0,r.ZP)(e,(e=>{e.toasts={},e.ids=[]}));case i.Z.CLOSE_TOAST:return(0,r.ZP)(e,(e=>{delete e.toasts[t.id],e.ids=e.ids.filter((e=>e!==t.id))}));default:return(0,r.ZP)(null,(()=>e))}}},5561:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={CREATE_TOAST:"toasts/CREATE_TOAST",CLOSE_ALL_TOASTS:"toasts/CLOSE_ALL_TOASTS",CLOSE_TOAST:"toasts/CLOSE_TOAST"}},978:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(582);function i(e){return{type:r.Z.SET_USER_COUNTRY,country:e}}},6177:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(5729),i=n(582);const o={aboutMe:null,browserUuid:null,canExtendSubscription:!1,canResumeMembership:!1,country:null,emailAddresses:[],fullName:null,hasDunningLock:!1,hasPublishedDocuments:!1,id:null,initials:null,isAborted:!1,isAdmin:!1,isBot:!1,isDocumentOwner:!1,isDunning:!1,isEligibleForFreeTrial:!1,isLoggedIn:!1,isPaused:!1,isSubscriber:!1,isTrialing:!1,login:null,name:null,nextPaymentDate:null,personaIconRetinaUrl:null,personaIconUrl:null,resumeMembershipDate:null,showSimpleCancelOption:!1,username:null,usingPromoCode:!1};function a(e=o,t){switch(t.type){case i.Z.SET_PERSONA_ICON:return(0,r.ZP)(e,(e=>{e.personaIconRetinaUrl=t.personaIconRetinaUrl,e.personaIconUrl=t.personaIconUrl}));case i.Z.SET_USER_COUNTRY:return(0,r.ZP)(e,(e=>{e.country=t.country}));case i.Z.SET_USER_PAUSED:return(0,r.ZP)(e,(e=>{e.isPaused=t.isPaused}));default:return(0,r.ZP)(null,(()=>e))}}},2833:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});var r=n(1320),i=n(6940);const o=[i.RESTRICTION_TYPES.GEO_RESTRICTED,i.RESTRICTION_TYPES.NO_ACCESS,i.RESTRICTION_TYPES.NOT_AVAILABLE];function a({user:{canResumeMembership:e,isAborted:t,isLoggedIn:n,isSubscriber:a,isPaused:s,isEligibleForFreeTrial:u,hasDunningLock:l,usingPromoCode:c},contentItem:{documentRestriction:d}={}}){return null===d?i.r5.LOADING:c?i.r5.USING_PROMO_CODE:n&&o.includes(d)?i.r5.LOGGED_IN_UNAVAILABLE:n&&t&&!e&&!a?i.r5.LOGGED_IN_CANCELED_EXPIRED:n&&t?i.r5.LOGGED_IN_ABORTED:n&&a&&l?i.r5.SUBSCRIBER_DUNNING_LOCK:n&&a&&d===i.RESTRICTION_TYPES.THROTTLED?i.r5.SUBSCRIBER_THROTTLED:n&&a&&d===i.RESTRICTION_TYPES.FULL_ACCESS?i.r5.SUBSCRIBER_FULL_ACCESS:n&&a?i.r5.LOGGED_IN_SUBSCRIBER:n&&s?i.r5.LOGGED_IN_PAUSED:n&&!a&&u?i.r5.LOGGED_IN_TRIAL_ELIGIBLE:n&&!a&&d===i.RESTRICTION_TYPES.FULL_ACCESS?i.r5.LOGGED_IN_FULL_ACCESS:!n||a||u?!n&&o.includes(d)?i.r5.LOGGED_OUT_UNAVAILABLE:n||d!==i.RESTRICTION_TYPES.PREVIEW_NO_SUB?n||d!==i.RESTRICTION_TYPES.FULL_ACCESS?!n&&u?i.r5.LOGGED_OUT_TRIAL_ELIGIBLE:((0,r.Tb)(new Error("Undefined user content status")),null):i.r5.LOGGED_OUT_FULL_ACCESS:i.r5.LOGGED_OUT_PREVIEW:i.r5.LOGGED_IN_TRIAL_INELIGIBLE}},582:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={SET_PERSONA_ICON:"user/SET_PERSONA_ICON",SET_USER_COUNTRY:"user/SET_USER_COUNTRY",SET_USER_PAUSED:"user/SET_USER_PAUSED",SET_USER_HAS_SEEN_PERKS_NOTIFICATION:"user/SET_USER_HAS_SEEN_PERKS_NOTIFICATION"}},1870:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(5729),i=n(9271);const o={},a=(e=o,t={})=>t.type===i.Z.DATA_LOADED?(0,r.ZP)(e,(e=>({...e,...t.users}))):(0,r.ZP)(null,(()=>e))},7362:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(5729),i=n(7129);const o={isFullscreen:!1,isKeyboardUser:!1,width:1200};function a(e=o,t={}){switch(t.type){case i.Z.SET_FULLSCREEN:return(0,r.ZP)(e,(e=>{e.isFullscreen=t.isFullscreen}));case i.Z.SET_KEYBOARD_USER:return(0,r.ZP)(e,(e=>{e.isKeyboardUser=t.isKeyboardUser}));case i.Z.SET_WIDTH:return(0,r.ZP)(e,(e=>{e.width=t.width}));default:return(0,r.ZP)(null,(()=>e))}}},7129:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={SET_FULLSCREEN:"SET_FULLSCREEN",SET_KEYBOARD_USER:"SET_KEYBOARD_USER",SET_WIDTH:"SET_WIDTH"}},743:(e,t,n)=>{"use strict";n.d(t,{C4:()=>E,Jn:()=>m,T5:()=>g});var r=n(7294),i={wrapper:"GridRow-module_wrapper__Uub42",extendedGrid:"GridRow-module_extendedGrid__Hm9MG"},o={exports:{}};var a,s,u,l;function c(){if(s)return a;s=1;return a="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}o.exports=function(){if(l)return u;l=1;var e=c();function t(){}function n(){}return n.resetWarningCache=t,u=function(){function r(t,n,r,i,o,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var d,p={exports:{}};d=p,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r{var{children:n,className:i,"data-e2e":o}=e;return r.createElement("div",{ref:t,className:f(h,i),"data-e2e":o},n)}));function m(e){var{children:t,className:n,"data-e2e":o}=e;return r.createElement("div",{className:f(i.wrapper,n),"data-e2e":o},t)}g.displayName="GridContainer",g.propTypes={"data-e2e":o.exports.string,children:o.exports.oneOfType([o.exports.arrayOf(o.exports.node),o.exports.node]).isRequired,className:o.exports.string},m.propTypes={"data-e2e":o.exports.string,children:o.exports.any.isRequired,className:o.exports.string};var v={XL:"xl",L:"l",M:"m",S:"s",XS:"xs",XXS:"xxs"},_={[v.XL]:12,[v.L]:12,[v.M]:8,[v.S]:4,[v.XS]:4,[v.XXS]:4},A=Object.values(v),y=[0,1,2,3,4,5,6,7,8,9,10,11,12];var b={wrapper:"GridColumn-module_wrapper__soqyu",xl_1:"GridColumn-module_xl_1__JReNg",xl_2:"GridColumn-module_xl_2__ry9yU",xl_3:"GridColumn-module_xl_3__OHlvX",xl_4:"GridColumn-module_xl_4__brxcj",xl_5:"GridColumn-module_xl_5__tH7mr",xl_6:"GridColumn-module_xl_6__Z53p6",xl_7:"GridColumn-module_xl_7__oZhoo",xl_8:"GridColumn-module_xl_8__pFyML",xl_9:"GridColumn-module_xl_9__cFKGC",xl_10:"GridColumn-module_xl_10__vZk48",xl_11:"GridColumn-module_xl_11__FexeR",xl_12:"GridColumn-module_xl_12__YZ-Rh",hide_above_xl:"GridColumn-module_hide_above_xl__erar5",hide_below_xl:"GridColumn-module_hide_below_xl__bqFPJ",l_1:"GridColumn-module_l_1__WzmV4",l_2:"GridColumn-module_l_2__Pw-g3",l_3:"GridColumn-module_l_3__K7iWt",l_4:"GridColumn-module_l_4__RAT6-",l_5:"GridColumn-module_l_5__8aWIR",l_6:"GridColumn-module_l_6__MgTYy",l_7:"GridColumn-module_l_7__-W6T1",l_8:"GridColumn-module_l_8__thtI5",l_9:"GridColumn-module_l_9__5JHTC",l_10:"GridColumn-module_l_10__I0f3o",l_11:"GridColumn-module_l_11__RUenR",l_12:"GridColumn-module_l_12__FvEF8",hide_above_l:"GridColumn-module_hide_above_l__UT1-z",hide_below_l:"GridColumn-module_hide_below_l__7M0-X",m_1:"GridColumn-module_m_1__YQJCo",m_2:"GridColumn-module_m_2__c8w6C",m_3:"GridColumn-module_m_3__RA-At",m_4:"GridColumn-module_m_4__6iIKY",m_5:"GridColumn-module_m_5__gTusg",m_6:"GridColumn-module_m_6__iVJpe",m_7:"GridColumn-module_m_7__pou8a",m_8:"GridColumn-module_m_8__3ZSLb",hide_above_m:"GridColumn-module_hide_above_m__zwIrv",hide_below_m:"GridColumn-module_hide_below_m__-PoVO",s_1:"GridColumn-module_s_1__XLGHz",s_2:"GridColumn-module_s_2__1-ptI",s_3:"GridColumn-module_s_3__gGW-l",s_4:"GridColumn-module_s_4__21RHi",hide_above_s:"GridColumn-module_hide_above_s__NbVNC",hide_below_s:"GridColumn-module_hide_below_s__Lbw11",xs_1:"GridColumn-module_xs_1__yycpU",xs_2:"GridColumn-module_xs_2__lfNOB",xs_3:"GridColumn-module_xs_3__2UqhV",xs_4:"GridColumn-module_xs_4__HIdGd",hide_above_xs:"GridColumn-module_hide_above_xs__k1r-Z",hide_below_xs:"GridColumn-module_hide_below_xs__lGMfM",xxs_1:"GridColumn-module_xxs_1__lPpo1",xxs_2:"GridColumn-module_xxs_2__L2HPM",xxs_3:"GridColumn-module_xxs_3__lRrol",xxs_4:"GridColumn-module_xxs_4__qVTq6",hide_above_xxs:"GridColumn-module_hide_above_xxs__h8jYZ",hide_below_xxs:"GridColumn-module_hide_below_xxs__PtxIg"};function E(e){var{"data-e2e":t,children:n,className:i,xxs:o,xs:a,s,m:u,l,xl:c,hideAbove:d,hideBelow:p}=e,h={xxs:o,xs:a,s,m:u,l,xl:c},g={},m=0;A.forEach((e=>{g[e]=h[e]||m,m=g[e]}));var v=function(e){if(!e)return[];var t=A.indexOf(e);return A.reduce(((e,n,r)=>r<=t?e.concat("hide_above_".concat(n)):e),[])}(d).concat(function(e){if(!e)return[];var t=A.indexOf(e);return A.reduce(((e,n,r)=>r>t?e.concat("hide_below_".concat(n)):e),[])}(p)).concat(function(e){var t=[];for(var n in e){var r=_[n]||0,i=Math.min(e[n],r);i>0&&t.push("".concat(n,"_").concat(i))}return t}(g)).map((e=>b[e]));return r.createElement("div",{className:f(b.wrapper,v,i),"data-e2e":t},n)}E.propTypes={"data-e2e":o.exports.string,children:o.exports.oneOfType([o.exports.arrayOf(o.exports.node),o.exports.node]),xxs:o.exports.oneOf(y),xs:o.exports.oneOf(y),s:o.exports.oneOf(y),m:o.exports.oneOf(y),l:o.exports.oneOf(y),xl:o.exports.oneOf(y),hideBelow:o.exports.oneOf(A),hideAbove:o.exports.oneOf(A),className:o.exports.string},E.defaultProps={children:null,xxs:0,xs:0,s:0,m:0,l:0,xl:_[v.XL],hideBelow:null,hideAbove:null};i.extendedGrid},2585:(e,t,n)=>{"use strict";n.d(t,{Av:()=>p,oB:()=>l});var r=n(7294),i=n(3980),o=n.n(i),a=n(2779),s=n.n(a),u=n(1320),l={DEFAULT:"default",DANGER:"danger",DISABLED:"disabled",NONE:"none"},c={BUTTON:"button",SUBMIT:"submit"};var d={wrapper:"TextButton-module_wrapper__ZwW-w",children:"TextButton-module_children__HwxUl",content:"TextButton-module_content__6x-Ra",danger:"TextButton-module_danger__ZZ1dL",default:"TextButton-module_default__ekglb",disabled:"TextButton-module_disabled__J-Qyg",leftIcon:"TextButton-module_leftIcon__tZ3Sb",rightAlignedText:"TextButton-module_rightAlignedText__1b-RN",rightIcon:"TextButton-module_rightIcon__nDfu4"},p=e=>{var{"aria-label":t,"aria-expanded":n,"data-e2e":i,buttonStyle:o,children:a,className:c,disabled:p,href:f,leftIcon:h,nodeRef:g,onBlur:m,onClick:v,onFocus:_,onKeyDown:A,onKeyPress:y,onKeyUp:b,onMouseDown:E,onMouseEnter:w,onMouseLeave:x,onMouseOut:I,onMouseOver:M,rel:S,rightIcon:C,role:N,tabIndex:T,target:L,type:D}=e,O=(0,u.Nn)(f,L),k="button";O&&(k="a");var R=function(e,t,n){return e===l.NONE?[n.wrapper,t]:[n.wrapper,n[e],t]}(o,c,d);return r.createElement(k,{"aria-disabled":p?"true":"false","aria-expanded":n,"aria-label":t,className:s()(...R,{[d.disabled]:p}),"data-e2e":i,href:f,onBlur:m,onClick:v,onFocus:_,onKeyDown:A,onKeyPress:y,onKeyUp:b,onMouseDown:E,onMouseEnter:w,onMouseLeave:x,onMouseOut:I,onMouseOver:M,ref:g,rel:O?S:null,role:N,tabIndex:T,target:L,type:O?null:D},r.createElement("span",{className:d.content},h?r.createElement(h,{className:d.leftIcon,"data-e2e":"btn-icon"}):null,r.createElement("span",{className:s()(d.children,{[d.rightAlignedText]:Boolean(C)})},a),C?r.createElement(C,{className:d.rightIcon,"data-e2e":"btn-icon"}):null))};p.propTypes={"aria-expanded":o().bool,"aria-label":o().string,"data-e2e":o().string,buttonStyle:o().oneOf(Object.values(l)),children:o().oneOfType([o().array,o().element,o().string]),className:o().string,disabled:o().bool,href:o().string,leftIcon:o().elementType,nodeRef:o().oneOfType([o().func,o().shape({current:o().any})]),onBlur:o().func,onClick:o().func,onFocus:o().func,onKeyDown:o().func,onKeyPress:o().func,onKeyUp:o().func,onMouseDown:o().func,onMouseEnter:o().func,onMouseLeave:o().func,onMouseOut:o().func,onMouseOver:o().func,rel:o().string,rightIcon:o().elementType,role:o().string,tabIndex:o().string,target:o().string,type:o().oneOf(Object.values(c))},p.defaultProps={"aria-expanded":null,"aria-label":null,"data-e2e":null,buttonStyle:l.DEFAULT,className:"",disabled:!1,leftIcon:null,rel:null,rightIcon:null,type:c.BUTTON}},1320:(e,t,n)=>{"use strict";n.d(t,{Zd:()=>ku,nJ:()=>iu,SY:()=>ju,q_:()=>au,Vq:()=>Ec,k8:()=>Fl,Ih:()=>rl,$O:()=>Fu,up:()=>xc,tt:()=>Zl,AV:()=>Gl,Tb:()=>eu,h1:()=>Ys,Bc:()=>Cl,ie:()=>Yl,e9:()=>Kl,cd:()=>Hs,ej:()=>Zs,z6:()=>Xl,zW:()=>$l,Ph:()=>Jl,Ng:()=>nc,xz:()=>rc,LT:()=>ic,Z4:()=>pl,uC:()=>dl,nF:()=>fl,Nn:()=>oc,tq:()=>Ks,r6:()=>zu,zq:()=>Zu,keyMappings:()=>ac,nq:()=>mu,VX:()=>cc,ZT:()=>vu,rm:()=>jl,uX:()=>dc,v_:()=>fc,GO:()=>gc,k3:()=>vc,Ug:()=>nu,Qo:()=>Gs,r5:()=>mc,Fp:()=>hu,OI:()=>zl,L9:()=>il,N8:()=>Bu,gb:()=>il,_h:()=>_c,hQ:()=>bc,qm:()=>ql,MH:()=>qu,Be:()=>_u});var r=n(6940),i=n(6353),o=n.n(i),a=n(6635),s=n.n(a),u=n(6290),l=n.n(u),c=(n(7265),n(6002)),d={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},p=function(e){for(var t=[],n=1;n=0;return n||t.push(e),n}}}()),void 0===t)return e;if("object"!==typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var r=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,r)}if(!n.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var i=Array.isArray(e)?e:[],o=0;o"}finally{r(),i(),o(),a()}}function W(e){var t=e,n=t.toJSON;return n?(delete t.toJSON,function(){t.toJSON=n}):q}var V=220*L,Q="$",K=3;function X(e,t){var n;void 0===t&&(t=V);var r=W(Object.prototype),i=W(Array.prototype),o=[],a=new WeakMap,s=$(e,Q,void 0,o,a),u=(null===(n=JSON.stringify(s))||void 0===n?void 0:n.length)||0;if(!(u>t)){for(;o.length>0&&ut){J(t,"truncated",e);break}l.target[d]=p}else for(var d in l.source)if(Object.prototype.hasOwnProperty.call(l.source,d)){var p;if(void 0!==(p=$(l.source[d],l.path,d,o,a))&&(u+=JSON.stringify(p).length+c+d.length+K,c=1),u>t){J(t,"truncated",e);break}l.target[d]=p}}return r(),i(),s}J(t,"discarded",e)}function $(e,t,n,r,i){var o=function(e){var t=e;if(t&&"function"===typeof t.toJSON)try{return t.toJSON()}catch(es){}return e}(e);if(!o||"object"!==typeof o)return function(e){if("bigint"===typeof e)return"[BigInt] ".concat(e.toString());if("function"===typeof e)return"[Function] ".concat(e.name||"unknown");if("symbol"===typeof e)return"[Symbol] ".concat(e.description||e.toString());return e}(o);var a=function(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var t=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(t&&t[1])return"[".concat(t[1],"]")}catch(es){}return"[Unserializable]"}(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var s=e;if(i.has(s))return"[Reference seen at ".concat(i.get(s),"]");var u=void 0!==n?"".concat(t,".").concat(n):t,l=Array.isArray(o)?[]:{};return i.set(s,u),r.push({source:o,target:l,path:u}),l}function J(e,t,n){p.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),n)}var ee=3*L;function te(e,t){return e>ee&&(p.warn("The ".concat(t," data is over ").concat(ee/L,"KiB. On low connectivity, the SDK has the potential to exhaust the user's upload bandwidth.")),!0)}var ne=200;function re(e,t){void 0===t&&(t=k);var n,r={},i=!1,o=B((function(r){n=t(H(r)),i||(i=te(n,e))}),ne).throttled;return{getBytesCount:function(){return n},get:function(){return r},add:function(e,t){r[e]=t,o(r)},remove:function(e){delete r[e],o(r)},set:function(e){o(r=e)},getContext:function(){return G(r)},setContext:function(e){r=X(e),o(r)},setContextProperty:function(e,t){r[e]=X(t),o(r)},removeContextProperty:function(e){delete r[e],o(r)},clearContext:function(){r={},n=0}}}var ie=function(){function e(){this.buffer=[]}return e.prototype.add=function(e){this.buffer.push(e)>500&&this.buffer.splice(0,1)},e.prototype.drain=function(){this.buffer.forEach((function(e){return e()})),this.buffer.length=0},e}();function oe(e){return 0!==e&&100*Math.random()<=e}function ae(e,t){return+e.toFixed(t)}function se(e){return ue(e)&&e>=0&&e<=100}function ue(e){return"number"===typeof e}var le,ce=1e3,de=60*ce,pe=60*de,fe=365*(24*pe);function he(e){return{relative:e,timeStamp:ge(e)}}function ge(e){var t=ve()-performance.now();return t>Ie()?Math.round(we(t,e)):function(e){return Math.round(we(Ie(),e))}(e)}function me(e){return ue(e)?ae(1e6*e,0):e}function ve(){return(new Date).getTime()}function _e(){return ve()}function Ae(){return performance.now()}function ye(){return{relative:Ae(),timeStamp:_e()}}function be(){return{relative:0,timeStamp:Ie()}}function Ee(e,t){return t-e}function we(e,t){return e+t}function xe(e){return e-Ie()}function Ie(){return void 0===le&&(le=performance.timing.navigationStart),le}function Me(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,Me)}function Se(e,t){var n=new RegExp("(?:^|;)\\s*".concat(t,"\\s*=\\s*([^;]+)")).exec(e);return n?n[1]:void 0}function Ce(e,t,n){void 0===n&&(n="");var r=e.charCodeAt(t-1),i=r>=55296&&r<=56319?t+1:t;return e.length<=i?e:"".concat(e.slice(0,i)).concat(n)}var Ne,Te=ce;function Le(e,t,n,r){var i=new Date;i.setTime(i.getTime()+n);var o="expires=".concat(i.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",u=r&&r.secure?";secure":"";document.cookie="".concat(e,"=").concat(t,";").concat(o,";path=/;samesite=").concat(a).concat(s).concat(u)}function De(e){return Se(document.cookie,e)}function Oe(e,t){Le(e,"",0,t)}var ke="datadog-synthetics-public-id",Re="datadog-synthetics-result-id",je="datadog-synthetics-injects-rum";function Pe(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||De(je))}function Ue(){var e=T().DatadogEventBridge;if(e)return{getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,n){e.send(JSON.stringify({eventType:t,event:n}))}}}function ze(e){var t;void 0===e&&(e=null===(t=T().location)||void 0===t?void 0:t.hostname);var n=Ue();return!!n&&n.getAllowedWebViewHosts().some((function(t){return e===t||(n=e,r=".".concat(t),n.slice(-r.length)===r);var n,r}))}var Be="?";function qe(e){var t=[],n=Ke(e,"stack"),r=String(e);return n&&S(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach((function(e){var n=function(e){var t=Ge.exec(e);if(!t)return;var n=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),i=Ye.exec(t[2]);r&&i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]);return{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||Be,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}(e)||function(e){var t=He.exec(e);if(!t)return;return{args:[],column:t[3]?+t[3]:void 0,func:Be,line:t[2]?+t[2]:void 0,url:t[1]}}(e)||function(e){var t=We.exec(e);if(!t)return;return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||Be,line:+t[3],url:t[2]}}(e)||function(e){var t=Ve.exec(e);if(!t)return;var n=t[3]&&t[3].indexOf(" > eval")>-1,r=Qe.exec(t[3]);n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0);return{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||Be,line:t[4]?+t[4]:void 0,url:t[3]}}(e);n&&(!n.func&&n.line&&(n.func=Be),t.push(n))})),{message:Ke(e,"message"),name:Ke(e,"name"),stack:t}}var Fe="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",Ze="(?::(\\d+))",Ge=new RegExp("^\\s*at (.*?) ?\\(".concat(Fe).concat(Ze,"?").concat(Ze,"?\\)?\\s*$"),"i"),Ye=new RegExp("\\((\\S*)".concat(Ze).concat(Ze,"\\)"));var He=new RegExp("^\\s*at ?".concat(Fe).concat(Ze,"?").concat(Ze,"??\\s*$"),"i");var We=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var Ve=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Qe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Ke(e,t){if("object"===typeof e&&e&&t in e){var n=e[t];return"string"===typeof n?n:void 0}}var Xe,$e="No stack, consider using an instance of Error";function Je(e){var t=e.stackTrace,n=e.originalError,r=e.handlingStack,i=e.startClocks,o=e.nonErrorPrefix,a=e.source,s=e.handling,u=n instanceof Error,l=function(e,t,n,r){return(null===e||void 0===e?void 0:e.message)&&(null===e||void 0===e?void 0:e.name)?e.message:t?"Empty message":"".concat(n," ").concat(H(X(r)))}(t,u,o,n),c=function(e,t){if(void 0===t)return!1;if(e)return!0;return t.stack.length>0&&(t.stack.length>1||void 0!==t.stack[0].url)}(u,t)?tt(t):$e,d=u?function(e,t){var n=e,r=[];for(;(null===n||void 0===n?void 0:n.cause)instanceof Error&&r.length<10;){var i=qe(n.cause);r.push({message:n.cause.message,source:t,type:null===i||void 0===i?void 0:i.name,stack:i&&tt(i)}),n=n.cause}return r.length?r:void 0}(n,a):void 0;return{startClocks:i,source:a,handling:s,handlingStack:r,originalError:n,type:null===t||void 0===t?void 0:t.name,message:l,stack:c,causes:d,fingerprint:et(n)}}function et(e){return e instanceof Error&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function tt(e){var t=nt(e);return e.stack.forEach((function(e){var n="?"===e.func?"":e.func,r=e.args&&e.args.length>0?"(".concat(e.args.join(", "),")"):"",i=e.line?":".concat(e.line):"",o=e.line&&e.column?":".concat(e.column):"";t+="\n at ".concat(n).concat(r," @ ").concat(e.url).concat(i).concat(o)})),t}function nt(e){return"".concat(e.name||"Error",": ").concat(e.message)}function rt(){var e,t=new Error;if(!t.stack)try{throw t}catch(n){}return y((function(){var n=qe(t);n.stack=n.stack.slice(2),e=tt(n)})),e}function it(e){var t=N({},e);return["id","name","email"].forEach((function(e){e in t&&(t[e]=String(t[e]))})),t}!function(e){e.PAGEHIDE="pagehide",e.FEATURE_FLAGS="feature_flags",e.RESOURCE_PAGE_STATES="resource_page_states",e.COLLECT_FLUSH_REASON="collect_flush_reason"}(Xe||(Xe={}));var ot=new Set;function at(e){return ot.has(e)}function st(){return ot}function ut(e){return N({},e)}function lt(e,t){return Object.keys(e).some((function(n){return e[n]===t}))}function ct(e){return 0===Object.keys(e).length}function dt(e){return ft(e,mt(window.location)).href}function pt(e){return mt(ft(e))}function ft(e,t){var n=function(){if(void 0===ht)try{var e=new gt("http://test/path");ht="http://test/path"===e.href}catch(es){ht=!1}return ht?gt:void 0}();if(n)try{return void 0!==t?new n(e,t):new n(e)}catch(a){throw new Error("Failed to construct URL: ".concat(String(a)," ").concat(H({url:e,base:t})))}if(void 0===t&&!/:/.test(e))throw new Error("Invalid URL: '".concat(e,"'"));var r=document,i=r.createElement("a");if(void 0!==t){var o=(r=document.implementation.createHTMLDocument("")).createElement("base");o.href=t,r.head.appendChild(o),r.body.appendChild(i)}return i.href=e,i}var ht,gt=URL;function mt(e){if(e.origin)return e.origin;var t=e.host.replace(/(:80|:443)$/,"");return"".concat(e.protocol,"//").concat(t)}var vt="datad0g.com",_t="datadoghq.com",At="datadoghq.eu",yt="ap1.datadoghq.com",bt={logs:"logs",rum:"rum",sessionReplay:"session-replay"},Et={logs:"logs",rum:"rum",sessionReplay:"replay"};function wt(e,t,n){var r=function(e,t){var n="/api/v2/".concat(Et[t]),r=e.proxy,i=e.proxyUrl;if(r){var o=dt(r);return function(e){return"".concat(o,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(e)))}}var a=function(e,t){var n=e.site,r=void 0===n?_t:n,i=e.internalAnalyticsSubdomain;if(i&&r===_t)return"".concat(i,".").concat(_t);var o=r.split("."),a=o.pop(),s=r!==yt?"".concat(bt[t],"."):"";return"".concat(s,"browser-intake-").concat(o.join("-"),".").concat(a)}(e,t);if(void 0===r&&i){var s=dt(i);return function(e){return"".concat(s,"?ddforward=").concat(encodeURIComponent("https://".concat(a).concat(n,"?").concat(e)))}}return function(e){return"https://".concat(a).concat(n,"?").concat(e)}}(e,t);return{build:function(i,o,a){var s=function(e,t,n,r,i,o){var a=e.clientToken,s=e.internalAnalyticsSubdomain,u=["sdk_version:".concat("4.42.2"),"api:".concat(r)].concat(n);i&&at(Xe.COLLECT_FLUSH_REASON)&&u.push("flush_reason:".concat(i));o&&u.push("retry_count:".concat(o.count),"retry_after:".concat(o.lastFailureStatus));var l=["ddsource=browser","ddtags=".concat(encodeURIComponent(u.join(","))),"dd-api-key=".concat(a),"dd-evp-origin-version=".concat(encodeURIComponent("4.42.2")),"dd-evp-origin=browser","dd-request-id=".concat(Me())];"rum"===t&&l.push("batch_time=".concat(_e()));s&&l.reverse();return l.join("&")}(e,t,n,i,o,a);return r(s)},urlPrefix:r(""),endpointType:t}}var xt=200;var It=/[^a-z0-9_:./-]/;function Mt(e,t){var n=xt-e.length-1;(t.length>n||It.test(t))&&p.warn("".concat(e," value doesn't meet tag requirements and will be sanitized"));var r=t.replace(/,/g,"_");return"".concat(e,":").concat(r)}function St(e){var t=function(e){var t=e.env,n=e.service,r=e.version,i=e.datacenter,o=[];return t&&o.push(Mt("env",t)),n&&o.push(Mt("service",n)),r&&o.push(Mt("version",r)),i&&o.push(Mt("datacenter",i)),o}(e),n=function(e,t){return{logsEndpointBuilder:wt(e,"logs",t),rumEndpointBuilder:wt(e,"rum",t),sessionReplayEndpointBuilder:wt(e,"sessionReplay",t)}}(e,t),r=I(n).map((function(e){return e.urlPrefix})),i=function(e,t,n){if(!e.replica)return;var r=N({},e,{site:_t,clientToken:e.replica.clientToken}),i={logsEndpointBuilder:wt(r,"logs",n),rumEndpointBuilder:wt(r,"rum",n)};return t.push.apply(t,I(i).map((function(e){return e.urlPrefix}))),N({applicationId:e.replica.applicationId},i)}(e,r,t);return N({isIntakeUrl:function(e){return r.some((function(t){return 0===e.indexOf(t)}))},replica:i,site:e.site||_t},n)}var Ct={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function Nt(e){var t,n,r;if(e&&e.clientToken){var i=null!==(t=e.sessionSampleRate)&&void 0!==t?t:e.sampleRate;if(void 0===i||se(i))if(void 0===e.telemetrySampleRate||se(e.telemetrySampleRate)){if(void 0===e.telemetryConfigurationSampleRate||se(e.telemetryConfigurationSampleRate))return Array.isArray(e.enableExperimentalFeatures)&&e.enableExperimentalFeatures.filter((function(e){return lt(Xe,e)})).forEach((function(e){ot.add(e)})),N({beforeSend:e.beforeSend&&h(e.beforeSend,"beforeSend threw an error:"),cookieOptions:Tt(e),sessionSampleRate:null!==i&&void 0!==i?i:100,telemetrySampleRate:null!==(n=e.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=e.telemetryConfigurationSampleRate)&&void 0!==r?r:5,service:e.service,silentMultipleInit:!!e.silentMultipleInit,batchBytesLimit:16*L,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*ce,batchMessagesLimit:50,messageBytesLimit:256*L},St(e));p.error("Telemetry Configuration Sample Rate should be a number between 0 and 100")}else p.error("Telemetry Sample Rate should be a number between 0 and 100");else p.error("Session Sample Rate should be a number between 0 and 100")}else p.error("Client Token is not configured, we will not send any data.")}function Tt(e){var t={};return t.secure=function(e){return!!e.useSecureSessionCookie||!!e.useCrossSiteSessionCookie}(e),t.crossSite=!!e.useCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(t.domain=function(){if(void 0===Ne){for(var e="dd_site_test_".concat(Me()),t=window.location.hostname.split("."),n=t.pop();t.length&&!De(e);)n="".concat(t.pop(),".").concat(n),Le(e,"test",ce,{domain:n});Oe(e,{domain:n}),Ne=n}return Ne}()),t}function Lt(e){var t=F(e);return"string"===t||"function"===t||e instanceof RegExp}function Dt(e,t,n){return void 0===n&&(n=!1),e.some((function(e){try{if("function"===typeof e)return e(t);if(e instanceof RegExp)return e.test(t);if("string"===typeof e)return n?S(t,e):e===t}catch(r){p.error(r)}return!1}))}function Ot(e){0!==e.status||e.isAborted||(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function kt(e,t,n,r){if(void 0!==Rt()&&n.findTrackedSession()){var i=x(e.allowedTracingUrls,(function(e){return Dt([e.match],t.url,!0)}));i&&(t.traceId=new jt,t.spanId=new jt,t.traceSampled=!ue(e.traceSampleRate)||oe(e.traceSampleRate),r(function(e,t,n,r){var i={};return r.forEach((function(r){switch(r){case"datadog":N(i,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toDecimalString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":e.toDecimalString()});break;case"tracecontext":N(i,{traceparent:"00-0000000000000000".concat(e.toPaddedHexadecimalString(),"-").concat(t.toPaddedHexadecimalString(),"-0").concat(n?"1":"0")});break;case"b3":N(i,{b3:"".concat(e.toPaddedHexadecimalString(),"-").concat(t.toPaddedHexadecimalString(),"-").concat(n?"1":"0")});break;case"b3multi":N(i,{"X-B3-TraceId":e.toPaddedHexadecimalString(),"X-B3-SpanId":t.toPaddedHexadecimalString(),"X-B3-Sampled":n?"1":"0"})}})),i}(t.traceId,t.spanId,t.traceSampled,i.propagatorTypes)))}}function Rt(){return window.crypto||window.msCrypto}var jt=function(){function e(){this.buffer=new Uint8Array(8),Rt().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}return e.prototype.toString=function(e){var t=this.readInt32(0),n=this.readInt32(4),r="";do{var i=t%e*4294967296+n;t=Math.floor(t/e),n=Math.floor(i/e),r=(i%e).toString(e)+r}while(t||n);return r},e.prototype.toDecimalString=function(){return this.toString(10)},e.prototype.toPaddedHexadecimalString=function(){var e=this.toString(16);return Array(17-e.length).join("0")+e},e.prototype.readInt32=function(e){return 16777216*this.buffer[e]+(this.buffer[e+1]<<16)+(this.buffer[e+2]<<8)+this.buffer[e+3]},e}();function Pt(e){var t,n,r,i,o,a;if(e.applicationId)if(void 0===e.sessionReplaySampleRate||se(e.sessionReplaySampleRate)){var s=null!==(t=e.premiumSampleRate)&&void 0!==t?t:e.replaySampleRate;if(void 0!==s&&void 0!==e.sessionReplaySampleRate&&(p.warn("Ignoring Premium Sample Rate because Session Replay Sample Rate is set"),s=void 0),void 0===s||se(s)){var u=null!==(n=e.traceSampleRate)&&void 0!==n?n:e.tracingSampleRate;if(void 0===u||se(u))if(void 0===e.excludedActivityUrls||Array.isArray(e.excludedActivityUrls)){var l=function(e){void 0!==e.allowedTracingUrls&&void 0!==e.allowedTracingOrigins&&p.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins.");if(void 0!==e.allowedTracingUrls){if(!Array.isArray(e.allowedTracingUrls))return void p.error("Allowed Tracing URLs should be an array");if(0!==e.allowedTracingUrls.length&&void 0===e.service)return void p.error("Service needs to be configured when tracing is enabled");var t=[];return e.allowedTracingUrls.forEach((function(e){Lt(e)?t.push({match:e,propagatorTypes:["datadog"]}):!function(e){var t=e;return"object"===F(t)&&Lt(t.match)&&Array.isArray(t.propagatorTypes)}(e)?p.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",e):t.push(e)})),t}if(void 0!==e.allowedTracingOrigins){if(!Array.isArray(e.allowedTracingOrigins))return void p.error("Allowed Tracing Origins should be an array");if(0!==e.allowedTracingOrigins.length&&void 0===e.service)return void p.error("Service needs to be configured when tracing is enabled");var n=[];return e.allowedTracingOrigins.forEach((function(e){var t=function(e){var t;"string"===typeof e?t=e:e instanceof RegExp?t=function(t){return e.test(pt(t))}:"function"===typeof e&&(t=function(t){return e(pt(t))});if(void 0===t)return void p.warn("Allowed Tracing Origins parameters should be a string, RegExp or function. Ignoring parameter",e);return{match:t,propagatorTypes:["datadog"]}}(e);t&&n.push(t)})),n}return[]}(e);if(l){var c=Nt(e);if(c){var d=!!(null!==(r=e.trackUserInteractions)&&void 0!==r?r:e.trackInteractions),f=!!e.trackFrustrations;return N({applicationId:e.applicationId,version:e.version,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:null!==(o=null!==(i=e.sessionReplaySampleRate)&&void 0!==i?i:s)&&void 0!==o?o:100,oldPlansBehavior:void 0===e.sessionReplaySampleRate,traceSampleRate:u,allowedTracingUrls:l,excludedActivityUrls:null!==(a=e.excludedActivityUrls)&&void 0!==a?a:[],trackUserInteractions:d||f,trackFrustrations:f,trackViewsManually:!!e.trackViewsManually,trackResources:e.trackResources,trackLongTasks:e.trackLongTasks,subdomain:e.subdomain,defaultPrivacyLevel:lt(Ct,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:Ct.MASK_USER_INPUT,customerDataTelemetrySampleRate:1},c)}}}else p.error("Excluded Activity Urls should be an array");else p.error("Trace Sample Rate should be a number between 0 and 100")}else p.error("Premium Sample Rate should be a number between 0 and 100")}else p.error("Session Replay Sample Rate should be a number between 0 and 100");else p.error("Application ID is not configured, no RUM data will be collected.")}function Ut(e){var t=new Set;return Array.isArray(e.allowedTracingUrls)&&e.allowedTracingUrls.length>0&&e.allowedTracingUrls.forEach((function(e){Lt(e)?t.add("datadog"):"object"===F(e)&&Array.isArray(e.propagatorTypes)&&e.propagatorTypes.forEach((function(e){return t.add(e)}))})),Array.isArray(e.allowedTracingOrigins)&&e.allowedTracingOrigins.length>0&&t.add("datadog"),w(t)}function zt(e,t,n){return{context:e.getContext(),user:t.getContext(),hasReplay:!!n.isRecording()||void 0}}function Bt(e,t){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}var qt=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe()||void 0),this.observers.push(e),{unsubscribe:function(){t.observers=t.observers.filter((function(t){return e!==t})),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach((function(t){return t(e)}))},e}();function Ft(){for(var e=[],t=0;t"],Kt=["ddog-gov.com"],Xt={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1,telemetryConfigurationEnabled:!1};function $t(e,t){var n,r=new qt;return Xt.telemetryEnabled=!E(Kt,t.site)&&oe(t.telemetrySampleRate),Xt.telemetryConfigurationEnabled=Xt.telemetryEnabled&&oe(t.telemetryConfigurationSampleRate),Wt=function(t){if(Xt.telemetryEnabled){var i=function(e,t){return Y({type:"telemetry",date:_e(),service:e,version:"4.42.2",source:"browser",_dd:{format_version:2},telemetry:t,experimental_features:w(st())},void 0!==n?n():{})}(e,t);r.notify(i),Bt("telemetry",i)}},g=en,N(Xt,{maxEventsPerPage:t.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(e){n=e},observable:r,enabled:Xt.telemetryEnabled}}function Jt(e,t){b(d.debug,e,t),tn(N({type:Vt.log,message:e,status:"debug"},t))}function en(e){tn(N({type:Vt.log,status:"error"},function(e){if(e instanceof Error){var t=qe(e);return{error:{kind:t.name,stack:tt(nn(t))},message:t.message}}return{error:{stack:$e},message:"".concat("Uncaught"," ").concat(H(e))}}(e)))}function tn(e){Wt&&Xt.sentEventCounte[n])return!1;return!0}function cn(e){var t=e.duration,n=e.startTime,r=e.responseEnd;return me(0===t&&n=0;t-=1){var n,r=e.body.childNodes[t];if(n=In(r))return n;if(!vn(r))break}}(e);if(!t)return;return xn(Se(t,"trace-id"),Se(t,"trace-time"))}(e);if(t&&!(t.traceTime<=ve()-En))return t.traceId}function xn(e,t){var n=t&&Number(t);if(e&&n)return{traceId:e,traceTime:n}}function In(e){if(e&&function(e){return e.nodeType===Node.COMMENT_NODE}(e)){var t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function Mn(){return void 0!==window.performance&&"getEntries"in performance}function Sn(e){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(e)}function Cn(e,t){var n;if(n=function(n){Tn(e,t,[n])},on("interactive",(function(){var e,t={entryType:"resource",initiatorType:an,traceId:wn(document)};if(Sn("navigation")&&performance.getEntriesByType("navigation").length>0)e=N(performance.getEntriesByType("navigation")[0].toJSON(),t);else{var r=Nn();e=N(r,{decodedBodySize:0,duration:r.responseEnd,name:window.location.href,startTime:0},t)}n(e)})),Mn()){var r=performance.getEntries();j((function(){return Tn(e,t,r)}))}if(window.PerformanceObserver){var i=A((function(n){return Tn(e,t,n.getEntries())})),o=["resource","navigation","longtask","paint"],a=["largest-contentful-paint","first-input","layout-shift"];try{a.forEach((function(e){new PerformanceObserver(i).observe({type:e,buffered:!0})}))}catch(s){o.push.apply(o,a)}new PerformanceObserver(i).observe({entryTypes:o}),Mn()&&"addEventListener"in performance&&Zt(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()}))}Sn("navigation")||function(e){function t(){e(N(Nn(),{entryType:"navigation"}))}on("complete",(function(){j(t)}))}((function(n){Tn(e,t,[n])})),Sn("first-input")||function(e){var t=ve(),n=!1,r=Gt(window,["click","mousedown","keydown","touchstart","pointerdown"],(function(e){if(e.cancelable){var t={entryType:"first-input",processingStart:Ae(),startTime:e.timeStamp};"pointerdown"===e.type?i(t):o(t)}}),{passive:!0,capture:!0}).stop;function i(e){Gt(window,["pointerup","pointercancel"],(function(t){"pointerup"===t.type&&o(e)}),{once:!0})}function o(i){if(!n){n=!0,r();var o=i.processingStart-i.startTime;o>=0&&oWn)){var e=Vn[Vn.length-1],t=Ae();void 0!==e&&void 0===e.end||Vn.push({start:t})}}function Xn(){if(0!==Vn.length){var e=Vn[Vn.length-1],t=Ae();void 0===e.end&&(e.end=t)}}function $n(e){for(var t=Vn.length-1;t>=0;t--){var n=Vn[t];if(void 0!==n.end&&e>n.end)break;if(e>n.start&&(void 0===n.end||e=i;o--){var a=Vn[o];if(void 0!==a.end&&e>a.end)break;if(!(na.start?e:a.start,u=Ee(e,s),l=Ee(s,void 0===a.end||n=0&&n.entries.splice(e,1)},close:function(e){r.endTime=e}};return this.entries.unshift(r),r},e.prototype.find=function(e){void 0===e&&(e=ir);for(var t=0,n=this.entries;t0&&this.entries[this.entries.length-1].endTimen.bytesLimit}t(void 0,e,a)}!function e(){r.read().then(A((function(t){t.done?a():(n.collectStreamBody&&i.push(t.value),(o+=t.value.length)>n.bytesLimit?a():e())})),A((function(e){return t(e)})))}()}(n.body,(function(){t(Ee(e.startClocks.timeStamp,_e()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):t(Ee(e.startClocks.timeStamp,_e()))}(i,(function(t){n.clearTracingIfNeeded(i),e.notify(6,{duration:t,method:i.method,requestIndex:i.requestIndex,responseType:i.responseType,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:"fetch",url:i.url,response:i.response,init:i.init,input:i.input})}))}}))}(e,t,r)}function Er(){var e=yr;return yr+=1,e}function wr(e){var t=e.lifeCycle,n=e.isChildEvent,r=e.onChange,i=void 0===r?q:r,o={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},a=t.subscribe(11,(function(e){if("view"!==e.type&&n(e))switch(e.type){case"error":o.errorCount+=1,i();break;case"action":o.actionCount+=1,e.action.frustration&&(o.frustrationCount+=e.action.frustration.type.length),i();break;case"long_task":o.longTaskCount+=1,i();break;case"resource":o.resourceCount+=1,i()}}));return{stop:function(){a.unsubscribe()},eventCounts:o}}var xr=100,Ir=100;function Mr(e,t,n,r,i){var o=function(e,t,n){var r=new qt((function(){var i,o=[],a=0;o.push(t.subscribe(l),e.subscribe(0,(function(e){e.some((function(e){return"resource"===e.entryType&&!Sr(n,e.name)}))&&l()})),e.subscribe(5,(function(e){Sr(n,e.url)||(void 0===i&&(i=e.requestIndex),a+=1,l())})),e.subscribe(6,(function(e){Sr(n,e.url)||void 0===i||e.requestIndex0})}}));return r}(e,t,n);return function(e,t,n){var r,i=!1,o=j(A((function(){return l({hadActivity:!1})})),xr),a=void 0!==n?j(A((function(){return l({hadActivity:!0,end:_e()})})),n):void 0,s=e.subscribe((function(e){var t=e.isBusy;P(o),P(r);var n=_e();t||(r=j(A((function(){return l({hadActivity:!0,end:n})})),Ir))})),u=function(){i=!0,P(o),P(r),P(a),s.unsubscribe()};function l(e){i||(u(),t(e))}return{stop:u}}(o,r,i)}function Sr(e,t){return Dt(e.excludedActivityUrls,t)}var Cr=ce,Nr=100;function Tr(e,t){var n,r=[],i=0;function o(e){e.stopObservable.subscribe(a),r.push(e),P(n),n=j(s,Cr)}function a(){1===i&&r.every((function(e){return e.isStopped()}))&&(i=2,t(r))}function s(){P(n),0===i&&(i=1,a())}return o(e),{tryAppend:function(e){return 0===i&&(r.length>0&&!function(e,t){return e.target===t.target&&(n=e,r=t,Math.sqrt(Math.pow(n.clientX-r.clientX,2)+Math.pow(n.clientY-r.clientY,2))<=Nr)&&e.timeStamp-t.timeStamp<=Cr;var n,r}(r[r.length-1].event,e.event)?(s(),!1):(o(e),!0))},stop:function(){s()}}}var Lr="data-dd-action-name";function Dr(e,t){return Or(e,Lr)||t&&Or(e,t)||zr(e,t,jr)||zr(e,t,Pr)||""}function Or(e,t){var n;if(function(){void 0===Rr&&(Rr="closest"in HTMLElement.prototype);return Rr}())n=e.closest("[".concat(t,"]"));else for(var r=e;r;){if(r.hasAttribute(t)){n=r;break}r=r.parentElement}if(n)return qr(Br(n.getAttribute(t).trim()))}var kr,Rr,jr=[function(e,t){if(function(){void 0===kr&&(kr="labels"in HTMLInputElement.prototype);return kr}()){if("labels"in e&&e.labels&&e.labels.length>0)return Fr(e.labels[0],t)}else if(e.id){var n=e.ownerDocument&&x(e.ownerDocument.querySelectorAll("label"),(function(t){return t.htmlFor===e.id}));return n&&Fr(n,t)}},function(e){if("INPUT"===e.nodeName){var t=e,n=t.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return t.value}},function(e,t){if("BUTTON"===e.nodeName||"LABEL"===e.nodeName||"button"===e.getAttribute("role"))return Fr(e,t)},function(e){return e.getAttribute("aria-label")},function(e,t){var n=e.getAttribute("aria-labelledby");if(n)return n.split(/\s+/).map((function(t){return function(e,t){return e.ownerDocument?e.ownerDocument.getElementById(t):null}(e,t)})).filter((function(e){return Boolean(e)})).map((function(e){return Fr(e,t)})).join(" ")},function(e){return e.getAttribute("alt")},function(e){return e.getAttribute("name")},function(e){return e.getAttribute("title")},function(e){return e.getAttribute("placeholder")},function(e,t){if("options"in e&&e.options.length>0)return Fr(e.options[0],t)}],Pr=[function(e,t){return Fr(e,t)}],Ur=10;function zr(e,t,n){for(var r=e,i=0;i<=Ur&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var o=0,a=n;o100?"".concat(Ce(e,100)," [...]"):e}function Fr(e,t){if(!e.isContentEditable){if("innerText"in e){var n=e.innerText,r=function(t){for(var r=e.querySelectorAll(t),i=0;i0&&(n=n.replace(a,""))}}};return Boolean(document.documentMode)&&r("script, style"),r("[".concat(Lr,"]")),t&&r("[".concat(t,"]")),n}return e.textContent}}var Zr,Gr=[Lr,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],Yr=[Qr,function(e){if(e.id&&!Vr(e.id))return"#".concat(C(e.id))}],Hr=[Qr,function(e){if("BODY"===e.tagName)return;if(e.classList.length>0)for(var t=0;t").concat(t):e}function ti(){var e=window.getSelection();return!e||e.isCollapsed}function ni(e){return e.target instanceof Element&&!1!==e.isPrimary}var ri=3;function ii(e,t){if(function(e){if(e.some((function(e){return e.getUserActivity().selection})))return!1;for(var t=0;t0},get hasPageActivity(){return void 0!==o},getUserActivity:n,addFrustration:function(e){d.push(e)},startClocks:s,isStopped:function(){return 1===c||2===c},clone:function(){return ci(e,t,n,r,i)},validate:function(t){if(f(),1===c){var n=l.eventCounts,u=n.resourceCount,p=n.errorCount,h=n.longTaskCount,g=N({type:"click",duration:o&&Ee(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:d,counts:{resourceCount:u,errorCount:p,longTaskCount:h},events:null!==t&&void 0!==t?t:[i],event:i},r);e.notify(1,g),c=2}},discard:function(){f(),c=2}}}function di(e,t){var n=pi(e)?{action:{id:e.id,loading_time:me(e.duration),frustration:{type:e.frustrationTypes},error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},_dd:{action:{target:e.target,position:e.position}}}:void 0,r=pi(e)?void 0:e.context,i=Y({action:{id:Me(),target:{name:e.name},type:e.type},date:e.startClocks.timeStamp,type:"action"},n),o=t.isInForegroundAt(e.startClocks.relative);return void 0!==o&&(i.view={in_foreground:o}),{customerContext:r,rawRumEvent:i,startTime:e.startClocks.relative,domainContext:pi(e)?{event:e.event,events:e.events}:{}}}function pi(e){return"custom"!==e.type}var fi=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function hi(e){var t=function(e){return lr(window,"onerror",{before:function(t,n,r,i,o){var a;if(o instanceof Error)a=qe(o);else{var s=[{url:n,column:i,line:r}],u=function(e){var t,n,r;"[object String]"==={}.toString.call(e)&&(n=(t=fi.exec(e))[1],r=t[2]);return{name:n,message:r}}(t);a={name:u.name,message:u.message,stack:s}}e(a,null!==o&&void 0!==o?o:t)}})}(e).stop,n=function(e){return lr(window,"onunhandledrejection",{before:function(t){var n=t.reason||"Empty reason",r=qe(n);e(r,n)}})}(e).stop;return{stop:function(){t(),n()}}}var gi={};function mi(e){var t=e.map((function(e){return gi[e]||(gi[e]=function(e){var t=new qt((function(){var n=f[e];return f[e]=function(){for(var r=[],i=0;i=t-r&&xi(e)<=we(n,r)}(t,e.startClocks.relative,xi({startTime:e.startClocks.relative,duration:e.duration}))}));return 1===n.length?n[0]:void 0}}}function xi(e){return we(e.startTime,e.duration)}function Ii(e,t,n,r){e.subscribe(6,(function(i){e.notify(10,function(e,t,n,r){var i,o="xhr"===e.type?"xhr":"fetch",a=wi(e),s=a?he(a.startTime):e.startClocks,u=a?Si(a):void 0,l=function(e,t){var n=e.traceSampled&&e.traceId&&e.spanId;if(!n)return;return{_dd:{span_id:e.spanId.toDecimalString(),trace_id:e.traceId.toDecimalString(),rule_psr:Ci(t)}}}(e,t),c=Ni(n,s),d=me(e.duration),p=Ti(r,s,null!==(i=null===a||void 0===a?void 0:a.duration)&&void 0!==i?i:e.duration),f=Y({date:s.timeStamp,resource:{id:Me(),type:o,duration:d,method:e.method,status_code:e.status,url:e.url},type:"resource"},l,u,c,p);return{startTime:s.relative,rawRumEvent:f,domainContext:{performanceEntry:a&&a,xhr:e.xhr,response:e.response,requestInput:e.input,requestInit:e.init,error:e.error}}}(i,t,n,r))})),e.subscribe(0,(function(i){for(var o=0,a=i;o=0&&i.responseStart<=Ae()?i.responseStart:void 0})}})).unsubscribe;return{stop:n}}(e,(function(e){t(e.loadEvent),i(e)})).stop,a=function(e,t){var n=Li(),r=e.subscribe(0,(function(e){var r=x(e,(function(e){return"paint"===e.entryType&&"first-contentful-paint"===e.name&&e.startTime=0;n-=1){var r=e[n];if(t(r,n,e))return r}}(e,(function(e){return"largest-contentful-paint"===e.entryType&&e.startTime=0?i:0,firstInputTime:r.startTime})}})).unsubscribe;return{stop:r}}(e,(function(e){i({firstInputDelay:e.firstInputDelay,firstInputTime:e.firstInputTime})})).stop;function l(){o(),a(),s(),u()}return{stop:l,timings:r,scheduleStop:function(){j(l,Oi)}}}function Ri(e,t,n,r,i,o){var a,s={},u=function(e,t,n,r,i,o){var a="initial_load"===r,s=!0,u=[];function l(){!s&&!a&&u.length>0&&o(Math.max.apply(Math,u))}var c=Mr(e,t,n,(function(e){s&&(s=!1,e.hadActivity&&u.push(Ee(i.timeStamp,e.end)),l())})).stop;return{stop:c,setLoadEvent:function(e){a&&(a=!1,u.push(e),l())}}}(e,t,n,i,o,(function(e){s.loadingTime=e,r()})),l=u.stop,c=u.setLoadEvent;return Sn("layout-shift")?(s.cumulativeLayoutShift=0,a=function(e,t){var n=0,r=function(){var e,t,n=0;return{update:function(r){void 0===e||r.startTime-t>=ce||r.startTime-e>=5*ce?(e=t=r.startTime,n=r.value):(n+=r.value,t=r.startTime)},value:function(){return n}}}(),i=e.subscribe(0,(function(e){for(var i=0,o=e;in&&(n=r.value(),t(ae(n,4))))}})).unsubscribe;return{stop:i}}(e,(function(e){s.cumulativeLayoutShift=e,r()})).stop):a=q,{stop:function(){l(),a()},setLoadEvent:c,viewMetrics:s}}var ji=5*de;var Pi=3e3,Ui=5*de;function zi(e,t,n,r,i,o,a){var s,u=l("initial_load",be(),a);function l(i,o,a){return function(e,t,n,r,i,o,a){void 0===o&&(o=ye());var s,u,l,c,d=Me(),f={},h=0,g=ut(r),m=!0;a&&(u=a.name,l=a.service,c=a.version);e.notify(2,{id:d,name:u,startClocks:o,service:l,version:c});var v=B(D,Pi,{leading:!1}),_=v.throttled,A=v.cancel,y=Ri(e,t,n,_,i,o),b=y.setLoadEvent,E=y.stop,w=y.viewMetrics,x="initial_load"===i?ki(e,b,_):{scheduleStop:q,timings:{}},I=x.scheduleStop,M=x.timings,S=function(e,t,n){var r=wr({lifeCycle:e,isChildEvent:function(e){return e.view.id===t},onChange:n}),i=r.stop;return{scheduleStop:function(){j(i,ji)},eventCounts:r.eventCounts}}(e,d,_),C=S.scheduleStop,T=S.eventCounts,L=U(D,Ui);function D(){A(),h+=1;var t=void 0===s?_e():s.timeStamp;e.notify(3,N({customTimings:f,documentVersion:h,id:d,name:u,service:l,version:c,loadingType:i,location:g,startClocks:o,timings:M,duration:Ee(o.timeStamp,t),isActive:void 0===s,sessionIsActive:m,eventCounts:T},w))}return D(),{name:u,service:l,version:c,end:function(t){var n,r;void 0===t&&(t={}),s||(s=null!==(n=t.endClocks)&&void 0!==n?n:ye(),m=null===(r=t.sessionIsActive)||void 0===r||r,e.notify(4,{endClocks:s}),z(L),E(),I(),C(),D())},addTiming:function(e,t){if(!s){var n=function(e){return e=Vi)Ji();else{var r,i=no();if(Xi()){if(i.lock)return void $i(e,t);if(r=Me(),i.lock=r,to(i,e.options),(i=no()).lock!==r)return void $i(e,t)}var o=e.process(i);if(Xi()&&(i=no()).lock!==r)$i(e,t);else{if(o&&eo(o,e.options),Xi()&&(!o||!io(o))){if((i=no()).lock!==r)return void $i(e,t);delete i.lock,to(i,e.options),o=i}null===(n=e.after)||void 0===n||n.call(e,o||i),Ji()}}else Qi.push(e)}function Xi(){return!!window.chrome||/HeadlessChrome/.test(window.navigator.userAgent)}function $i(e,t){j((function(){Ki(e,t+1)}),Wi)}function Ji(){Zi=void 0;var e=Qi.shift();e&&Ki(e)}function eo(e,t){io(e)?ro(t):(e.expire=String(ve()+rr),to(e,t))}function to(e,t){Le(Hi,function(e){return M(e).map((function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n)})).join(Yi)}(e),rr,t)}function no(){var e=De(Hi),t={};return function(e){return void 0!==e&&(-1!==e.indexOf(Yi)||Gi.test(e))}(e)&&e.split(Yi).forEach((function(e){var n=Gi.exec(e);if(null!==n){var r=n[1],i=n[2];t[r]=i}})),t}function ro(e){Oe(Hi,e)}function io(e){return ct(e)}var oo="_dd",ao="_dd_r",so="_dd_l",uo="rum",lo="logs";function co(e,t,n){var r=new qt,i=new qt,o=U((function(){Ki({options:e,process:function(e){return l(e)?void 0:{}},after:s})}),Te),a=function(){var e=no();if(l(e))return e;return{}}();function s(e){return l(e)||(e={}),u()&&(!function(e){return a.id!==e.id||a[t]!==e[t]}(e)?a=e:(a={},i.notify())),e}function u(){return void 0!==a[t]}function l(e){return(void 0===e.created||ve()-Number(e.created)=n&&c("bytes_limit"),l+=1,u+=e,void 0===s&&(s=j((function(){c("duration_limit")}),r))},notifyAfterAddMessage:function(){l>=t?c("messages_limit"):u>=n&&c("bytes_limit")},notifyAfterRemoveMessage:function(e){u-=e,0===(l-=1)&&d()}}}var yo=function(){function e(e,t,n){var r=this;this.request=e,this.flushController=t,this.messageBytesLimit=n,this.pushOnlyBuffer=[],this.upsertBuffer={},this.flushController.flushObservable.subscribe((function(e){return r.flush(e)}))}return e.prototype.add=function(e){this.addOrUpdate(e)},e.prototype.upsert=function(e,t){this.addOrUpdate(e,t)},e.prototype.flush=function(e){var t=this.pushOnlyBuffer.concat(I(this.upsertBuffer));this.pushOnlyBuffer=[],this.upsertBuffer={};var n={data:t.join("\n"),bytesCount:e.bytesCount,flushReason:e.reason};Ht(e.reason)?this.request.sendOnExit(n):this.request.send(n)},e.prototype.addOrUpdate=function(e,t){var n=this.process(e),r=n.processedMessage,i=n.messageBytesCount;i>=this.messageBytesLimit?p.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB.")):(this.hasMessageFor(t)&&this.remove(t),this.push(r,i,t))},e.prototype.process=function(e){var t=H(e);return{processedMessage:t,messageBytesCount:k(t)}},e.prototype.push=function(e,t,n){var r=this.flushController.messagesCount>0?1:0;this.flushController.notifyBeforeAddMessage(t+r),void 0!==n?this.upsertBuffer[n]=e:this.pushOnlyBuffer.push(e),this.flushController.notifyAfterAddMessage()},e.prototype.remove=function(e){var t=this.upsertBuffer[e];delete this.upsertBuffer[e];var n=k(t),r=this.flushController.messagesCount>1?1:0;this.flushController.notifyAfterRemoveMessage(n+r)},e.prototype.hasMessageFor=function(e){return void 0!==e&&void 0!==this.upsertBuffer[e]},e}(),bo=80*L,Eo=32,wo=3*D,xo=de,Io=ce;function Mo(e,t,n,r,i){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?Co(e,t,n,{onSuccess:function(){return No(0,t,n,r,i)},onFailure:function(){t.queuedPayloads.enqueue(e),So(t,n,r,i)}}):t.queuedPayloads.enqueue(e)}function So(e,t,n,r){2===e.transportStatus&&j((function(){Co(e.queuedPayloads.first(),e,t,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=Io,No(1,e,t,n,r)},onFailure:function(){e.currentBackoffTime=Math.min(xo,2*e.currentBackoffTime),So(e,t,n,r)}})}),e.currentBackoffTime)}function Co(e,t,n,r){var i=r.onSuccess,o=r.onFailure;t.bandwidthMonitor.add(e),n(e,(function(n){t.bandwidthMonitor.remove(e),!function(e){return"opaque"!==e.type&&(0===e.status&&!navigator.onLine||408===e.status||429===e.status||(t=e.status,t>=500));var t}(n)?(t.transportStatus=0,i()):(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:n.status},o())}))}function No(e,t,n,r,i){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(i({message:"Reached max ".concat(r," events size queued for upload: ").concat(wo/D,"MiB"),source:On.AGENT,startClocks:ye()}),t.queueFullReported=!0);var o=t.queuedPayloads;for(t.queuedPayloads=To();o.size()>0;)Mo(o.dequeue(),t,n,r,i)}function To(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=wo}}}function Lo(e,t,n){var r={transportStatus:0,currentBackoffTime:Io,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=bo&&this.ongoingRequestCount0?Array.from(e.media):void 0}}))}function za(e,t,n,r){if(t===aa.HIDDEN)return null;var i=e.getAttribute(n);if(t===aa.MASK&&n!==sa&&!Gr.includes(n)&&n!==r.actionNameAttribute){var o=e.tagName;switch(n){case"title":case"alt":case"placeholder":return va}if(("IMG"===o||"SOURCE"===o)&&("src"===n||"srcset"===n))return _a;if("A"===o&&"href"===n)return va;if(i&&S(n,"data-"))return va}return i&&"string"===typeof i&&i.length>ya&&"data:"===i.slice(0,5)?"data:truncated":i}function Ba(e){if(!e)return null;var t;try{t=e.rules||e.cssRules}catch(es){}return t?Ra(Array.from(t,qa).join(""),e.href):null}function qa(e){return function(e){return"styleSheet"in e}(e)?Ba(e.styleSheet)||"":e.cssText}function Fa(e,t){var n=function(e,t){switch(e.nodeType){case e.DOCUMENT_NODE:return function(e,t){return{type:ta.Document,childNodes:Ga(e,t),adoptedStyleSheets:Ua(e.adoptedStyleSheets)}}(e,t);case e.DOCUMENT_FRAGMENT_NODE:return function(e,t){var n=[];e.childNodes.length&&(n=Ga(e,t));var r=yn(e);r&&t.serializationContext.shadowRootsController.addShadowRoot(e);return{type:ta.DocumentFragment,childNodes:n,isShadowRoot:r,adoptedStyleSheets:r?Ua(e.adoptedStyleSheets):void 0}}(e,t);case e.DOCUMENT_TYPE_NODE:return n=e,{type:ta.DocumentType,name:n.name,publicId:n.publicId,systemId:n.systemId};case e.ELEMENT_NODE:return function(e,t){var n,r=Pa(e.tagName),i=(a=e,"svg"===a.tagName||a instanceof SVGElement||void 0),o=Ea(wa(e),t.parentNodePrivacyLevel);var a;if(o===aa.HIDDEN){var s=e.getBoundingClientRect(),u=s.width,l=s.height;return{type:ta.Element,tagName:r,attributes:(n={rr_width:"".concat(u,"px"),rr_height:"".concat(l,"px")},n[sa]=da,n),childNodes:[],isSVG:i}}if(o===aa.IGNORE)return;var c=function(e,t,n){var r;if(t===aa.HIDDEN)return{};for(var i={},o=Pa(e.tagName),a=e.ownerDocument,s=0;s25||Math.abs(e.pageLeft-e.offsetLeft-window.scrollX)>25}(n)?(r.visualViewportX=Math.round(e-n.offsetLeft),r.visualViewportY=Math.round(t-n.offsetTop)):(r.layoutViewportX=Math.round(e+n.offsetLeft),r.layoutViewportY=Math.round(t+n.offsetTop)),r):r},Qa=function(e){return{scale:e.scale,offsetLeft:e.offsetLeft,offsetTop:e.offsetTop,pageLeft:e.pageLeft,pageTop:e.pageTop,height:e.height,width:e.width}};function Ka(){var e,t=window.visualViewport;return e=t?t.pageLeft-t.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0,Math.round(e)}function Xa(){var e,t=window.visualViewport;return e=t?t.pageTop-t.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0,Math.round(e)}var $a=50;function Ja(e){var t=Ha(e)?e.changedTouches[0]:e,n=t.clientX,r=t.clientY;if(window.visualViewport){var i=Va(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r};e.isTrusted&&Jt("mouse/touch event without x/y")}var es,ts=100;var ns=((es={}).pointerup=ra.MouseUp,es.mousedown=ra.MouseDown,es.click=ra.Click,es.contextmenu=ra.ContextMenu,es.dblclick=ra.DblClick,es.focus=ra.Focus,es.blur=ra.Blur,es.touchstart=ra.TouchStart,es.touchend=ra.TouchEnd,es);function rs(e,t,n){var r=void 0===n?{}:n,i=r.domEvents,o=void 0===i?["input","change"]:i,a=r.target,s=void 0===a?document:a,u=new WeakMap;function l(e){var n=ba(e,t);if(n!==aa.HIDDEN){var r,i=e.type;if("radio"===i||"checkbox"===i){if(xa(e,n))return;r={isChecked:e.checked}}else{var o=La(e,n);if(void 0===o)return;r={text:o}}c(e,r);var a,s,u=e.name;"radio"===i&&u&&e.checked&&(a=document.querySelectorAll('input[type="radio"][name="'.concat(u,'"]')),s=function(t){t!==e&&c(t,{isChecked:!1})},Array.prototype.forEach.call(a,s))}}function c(t,n){if(Na(t)){var r=u.get(t);r&&r.text===n.text&&r.isChecked===n.isChecked||(u.set(t,n),e(N({id:Ta(t)},n)))}}var d=Gt(s,o,(function(e){var t=Wa(e);(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)&&l(t)}),{capture:!0,passive:!0}).stop,p=[cr(HTMLInputElement.prototype,"value",l),cr(HTMLInputElement.prototype,"checked",l),cr(HTMLSelectElement.prototype,"value",l),cr(HTMLTextAreaElement.prototype,"value",l),cr(HTMLSelectElement.prototype,"selectedIndex",l)];return function(){p.forEach((function(e){return e.stop()})),d()}}function is(e){for(var t=[],n=e;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);t.unshift(r),n=n.parentRule}if(n.parentStyleSheet){var i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return t.unshift(i),t}}var os=200;var as=100;function ss(e){var t=q,n=[];function r(){t(),e(n),n=[]}return{addMutations:function(e){0===n.length&&(t=function(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(A(e),t);return function(){return window.cancelIdleCallback(n)}}var r=window.requestAnimationFrame(A(e));return function(){return window.cancelAnimationFrame(r)}}(r,{timeout:as})),n.push.apply(n,e)},flush:r,stop:function(){t()}}}function us(e,t,n,r){var i=rn();if(!i)return{stop:q,flush:q};var o=ss((function(i){!function(e,t,n,r,i){e.filter((function(e){return"childList"===e.type})).forEach((function(e){e.removedNodes.forEach((function(e){ls(e,r.removeShadowRoot)}))}));var o=e.filter((function(e){return i.contains(e.target)&&function(e){for(var t=e;t;){if(!Na(t)&&!yn(t))return!1;t=bn(t)}return!0}(e.target)&&ba(e.target,n.defaultPrivacyLevel)!==aa.HIDDEN})),a=function(e,t,n){for(var r=new Set,i=new Map,o=function(e){e.addedNodes.forEach((function(e){r.add(e)})),e.removedNodes.forEach((function(t){r.has(t)||i.set(t,e.target),r.delete(t)}))},a=0,s=e;ahs&&function(){if(!fs)return;if(fs.keys)fs.delete(fs.keys().next().value);else{var e=!0;fs.forEach((function(t,n){e&&(fs.delete(n),e=!1)}))}}()),t}var As,ys=0,bs=function(){function e(e,t,n,r,i,o){var a=this;this.worker=e,this.id=ys++;var s=t.view.id;this.metadata=N({start:r.timestamp,end:r.timestamp,creation_reason:n,records_count:1,has_full_snapshot:r.type===ea.FullSnapshot,index_in_view:gs(s),source:"browser"},t),function(e){_s(e).segments_count+=1}(s),ms(s);var u=Zt(e,"message",(function(e){var t=e.data;"errored"!==t.type&&"initialized"!==t.type&&(t.id===a.id?(!function(e,t){_s(e).segments_total_raw_size+=t}(s,t.additionalBytesCount),"flushed"===t.type?(o(t.result,t.rawBytesCount),u()):i(t.compressedBytesCount)):t.id>a.id&&(u(),Jt("Segment did not receive a 'flush' response before being replaced.")))})).stop;Bt("record",{record:r,segment:this.metadata}),this.worker.postMessage({data:'{"records":['.concat(JSON.stringify(r)),id:this.id,action:"write"})}return e.prototype.addRecord=function(e){var t;this.metadata.start=Math.min(this.metadata.start,e.timestamp),this.metadata.end=Math.max(this.metadata.end,e.timestamp),this.metadata.records_count+=1,ms(this.metadata.view.id),(t=this.metadata).has_full_snapshot||(t.has_full_snapshot=e.type===ea.FullSnapshot),Bt("record",{record:e,segment:this.metadata}),this.worker.postMessage({data:",".concat(JSON.stringify(e)),id:this.id,action:"write"})},e.prototype.flush=function(e){this.worker.postMessage({data:"],".concat(JSON.stringify(this.metadata).slice(1),"\n"),id:this.id,action:"flush"}),this.flushReason=e},e}(),Es=30*ce,ws=6e4;function xs(e,t,n,r,i,o){return function(e,t,n,r){var i={status:0,nextSegmentCreationReason:"init"},o=e.subscribe(2,(function(){s("view_change")})).unsubscribe,a=e.subscribe(9,(function(e){s(e.reason)})).unsubscribe;function s(e){1===i.status&&(i.segment.flush(e),P(i.expirationTimeoutId)),i="stop"!==e?{status:0,nextSegmentCreationReason:e}:{status:2}}function u(e,o){var a=t();if(a){var u=new bs(r,a,e,o,(function(e){!u.flushReason&&e>ws&&s("segment_bytes_limit")}),(function(e,t){var r=function(e,t,n){var r=new FormData;r.append("segment",new Blob([e],{type:"application/octet-stream"}),"".concat(t.session.id,"-").concat(t.start));var i=N({raw_segment_size:n,compressed_segment_size:e.byteLength},t),o=JSON.stringify(i);return r.append("event",new Blob([o],{type:"application/json"})),{data:r,bytesCount:e.byteLength}}(e,u.metadata,t);Ht(u.flushReason)?n.sendOnExit(r):n.send(r)}));i={status:1,segment:u,expirationTimeoutId:j((function(){s("segment_duration_limit")}),Es)}}}return{addRecord:function(e){switch(i.status){case 0:u(i.nextSegmentCreationReason,e);break;case 1:i.segment.addRecord(e)}},stop:function(){s("stop"),o(),a()}}}(e,(function(){return function(e,t,n){var r=t.findTrackedSession(),i=n.findView();if(!r||!i)return;return{application:{id:e},session:{id:r.id},view:{id:i.id}}}(t,n,r)}),i,o)}function Is(){return As||(As=URL.createObjectURL(new Blob(["(".concat(Ms,")(self)")]))),new Worker(As)}function Ms(){function e(e){return function(){try{return e.apply(this,arguments)}catch(t){try{self.postMessage({type:"errored",error:t})}catch(n){self.postMessage({type:"errored",error:"".concat(t)})}}}}e((function(){var t=function(){var e=4,t=0,n=1,r=2;function i(e){for(var t=e.length;--t>=0;)e[t]=0}var o=0,a=1,s=2,u=3,l=258,c=29,d=256,p=d+1+c,f=30,h=19,g=2*p+1,m=15,v=16,_=7,A=256,y=16,b=17,E=18,w=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),x=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),I=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),M=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),S=512,C=new Array(2*(p+2));i(C);var N=new Array(2*f);i(N);var T=new Array(S);i(T);var L=new Array(l-u+1);i(L);var D=new Array(c);i(D);var O,k,R,j=new Array(f);function P(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function U(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}i(j);var z=function(e){return e<256?T[e]:T[256+(e>>>7)]},B=function(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},q=function(e,t,n){e.bi_valid>v-n?(e.bi_buf|=t<>v-e.bi_valid,e.bi_valid+=n-v):(e.bi_buf|=t<>>=1,n<<=1}while(--t>0);return n>>>1},G=function(e){16===e.bi_valid?(B(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)},Y=function(e,t){var n,r,i,o,a,s,u=t.dyn_tree,l=t.max_code,c=t.stat_desc.static_tree,d=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,h=t.stat_desc.max_length,v=0;for(o=0;o<=m;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;nh&&(o=h,v++),u[2*r+1]=o,r>l||(e.bl_count[o]++,a=0,r>=f&&(a=p[r-f]),s=u[2*r],e.opt_len+=s*(o+a),d&&(e.static_len+=s*(c[2*r+1]+a)));if(0!==v){do{for(o=h-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[h]--,v-=2}while(v>0);for(o=h;0!==o;o--)for(r=e.bl_count[o];0!==r;)(i=e.heap[--n])>l||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}},H=function(e,t,n){var r,i,o=new Array(m+1),a=0;for(r=1;r<=m;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=Z(o[s]++,s))}},W=function(){var e,t,n,r,i,o=new Array(m+1);for(n=0,r=0;r>=7;r8?B(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},K=function(e,t,n,r){Q(e),r&&(B(e,n),B(e,~n)),e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},X=function(e,t,n,r){var i=2*t,o=2*n;return e[i]>1;n>=1;n--)$(e,o,n);i=u;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],$(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,$(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Y(e,t),H(o,l,e.bl_count)},te=function(e,t,n){var r,i,o=-1,a=t[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s=3&&0===e.bl_tree[2*M[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t},ie=function(e,t,n,r){var i;for(q(e,t-257,5),q(e,n-1,5),q(e,r-4,4),i=0;i>>=1)if(1&i&&0!==e.dyn_ltree[2*r])return t;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return n;for(r=32;r0?(t.strm.data_type===r&&(t.strm.data_type=oe(t)),ee(t,t.l_desc),ee(t,t.d_desc),c=re(t),u=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=u&&(u=l)):u=l=i+5,i+4<=u&&-1!==n?se(t,n,i,o):t.strategy===e||l===u?(q(t,(a<<1)+(o?1:0),3),J(t,C,N)):(q(t,(s<<1)+(o?1:0),3),ie(t,t.l_desc.max_code+1,t.d_desc.max_code+1,c+1),J(t,t.dyn_ltree,t.dyn_dtree)),V(t),o&&Q(t)},le={_tr_init:function(e){ae||(W(),ae=!0),e.l_desc=new U(e.dyn_ltree,O),e.d_desc=new U(e.dyn_dtree,k),e.bl_desc=new U(e.bl_tree,R),e.bi_buf=0,e.bi_valid=0,V(e)},_tr_stored_block:se,_tr_flush_block:ue,_tr_tally:function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(L[n]+d+1)]++,e.dyn_dtree[2*z(t)]++),e.last_lit===e.lit_bufsize-1},_tr_align:function(e){q(e,a<<1,3),F(e,A,C),G(e)}},ce=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+t[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0},de=new Uint32Array(function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}()),pe=function(e,t,n,r){var i=de,o=r+n;e^=-1;for(var a=r;a>>8^i[255&(e^t[a])];return-1^e},fe={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},he={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},ge=le._tr_init,me=le._tr_stored_block,ve=le._tr_flush_block,_e=le._tr_tally,Ae=le._tr_align,ye=he.Z_NO_FLUSH,be=he.Z_PARTIAL_FLUSH,Ee=he.Z_FULL_FLUSH,we=he.Z_FINISH,xe=he.Z_BLOCK,Ie=he.Z_OK,Me=he.Z_STREAM_END,Se=he.Z_STREAM_ERROR,Ce=he.Z_DATA_ERROR,Ne=he.Z_BUF_ERROR,Te=he.Z_DEFAULT_COMPRESSION,Le=he.Z_FILTERED,De=he.Z_HUFFMAN_ONLY,Oe=he.Z_RLE,ke=he.Z_FIXED,Re=he.Z_DEFAULT_STRATEGY,je=he.Z_UNKNOWN,Pe=he.Z_DEFLATED,Ue=9,ze=15,Be=8,qe=286,Fe=30,Ze=19,Ge=2*qe+1,Ye=15,He=3,We=258,Ve=We+He+1,Qe=32,Ke=42,Xe=69,$e=73,Je=91,et=103,tt=113,nt=666,rt=1,it=2,ot=3,at=4,st=3,ut=function(e,t){return e.msg=fe[t],t},lt=function(e){return(e<<1)-(e>4?9:0)},ct=function(e){for(var t=e.length;--t>=0;)e[t]=0},dt=function(e,t,n){return(t<e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},ft=function(e,t){ve(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,pt(e.strm)},ht=function(e,t){e.pending_buf[e.pending++]=t},gt=function(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},mt=function(e,t,n,r){var i=e.avail_in;return i>r&&(i=r),0===i?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),1===e.state.wrap?e.adler=ce(e.adler,t,i,n):2===e.state.wrap&&(e.adler=pe(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},vt=function(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-Ve?e.strstart-(e.w_size-Ve):0,l=e.window,c=e.w_mask,d=e.prev,p=e.strstart+We,f=l[o+a-1],h=l[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(n=t)+a]===h&&l[n+a-1]===f&&l[n]===l[o]&&l[++n]===l[o+1]){o+=2,n++;do{}while(l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&oa){if(e.match_start=t,a=r,r>=s)break;f=l[o+a-1],h=l[o+a]}}}while((t=d[t&c])>u&&0!==--i);return a<=e.lookahead?a:e.lookahead},_t=function(e){var t,n,r,i,o,a=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=a+(a-Ve)){e.window.set(e.window.subarray(a,a+a),0),e.match_start-=a,e.strstart-=a,e.block_start-=a,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=a?r-a:0}while(--n);t=n=a;do{r=e.prev[--t],e.prev[t]=r>=a?r-a:0}while(--n);i+=a}if(0===e.strm.avail_in)break;if(n=mt(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=n,e.lookahead+e.insert>=He)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=dt(e,e.ins_h,e.window[o+1]);e.insert&&(e.ins_h=dt(e,e.ins_h,e.window[o+He-1]),e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert=He&&(e.ins_h=dt(e,e.ins_h,e.window[e.strstart+He-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-Ve&&(e.match_length=vt(e,n)),e.match_length>=He)if(r=_e(e,e.strstart-e.match_start,e.match_length-He),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=He){e.match_length--;do{e.strstart++,e.ins_h=dt(e,e.ins_h,e.window[e.strstart+He-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=dt(e,e.ins_h,e.window[e.strstart+1]);else r=_e(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(ft(e,!1),0===e.strm.avail_out))return rt}return e.insert=e.strstart=He&&(e.ins_h=dt(e,e.ins_h,e.window[e.strstart+He-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=He-1,0!==n&&e.prev_length4096)&&(e.match_length=He-1)),e.prev_length>=He&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-He,r=_e(e,e.strstart-1-e.prev_match,e.prev_length-He),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=dt(e,e.ins_h,e.window[e.strstart+He-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=He-1,e.strstart++,r&&(ft(e,!1),0===e.strm.avail_out))return rt}else if(e.match_available){if((r=_e(e,0,e.window[e.strstart-1]))&&ft(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return rt}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=_e(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart=He&&e.strstart>0&&(r=a[i=e.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=e.strstart+We;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=He?(n=_e(e,1,e.match_length-He),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=_e(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(ft(e,!1),0===e.strm.avail_out))return rt}return e.insert=0,t===we?(ft(e,!0),0===e.strm.avail_out?ot:at):e.last_lit&&(ft(e,!1),0===e.strm.avail_out)?rt:it},Et=function(e,t){for(var n;;){if(0===e.lookahead&&(_t(e),0===e.lookahead)){if(t===ye)return rt;break}if(e.match_length=0,n=_e(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(ft(e,!1),0===e.strm.avail_out))return rt}return e.insert=0,t===we?(ft(e,!0),0===e.strm.avail_out?ot:at):e.last_lit&&(ft(e,!1),0===e.strm.avail_out)?rt:it};function wt(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var xt=[new wt(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(_t(e),0===e.lookahead&&t===ye)return rt;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,ft(e,!1),0===e.strm.avail_out))return rt;if(e.strstart-e.block_start>=e.w_size-Ve&&(ft(e,!1),0===e.strm.avail_out))return rt}return e.insert=0,t===we?(ft(e,!0),0===e.strm.avail_out?ot:at):(e.strstart>e.block_start&&(ft(e,!1),e.strm.avail_out),rt)})),new wt(4,4,8,4,At),new wt(4,5,16,8,At),new wt(4,6,32,32,At),new wt(4,4,16,16,yt),new wt(8,16,32,32,yt),new wt(8,16,128,128,yt),new wt(8,32,128,256,yt),new wt(32,128,258,1024,yt),new wt(32,258,258,4096,yt)],It=function(e){e.window_size=2*e.w_size,ct(e.head),e.max_lazy_match=xt[e.level].max_lazy,e.good_match=xt[e.level].good_length,e.nice_match=xt[e.level].nice_length,e.max_chain_length=xt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=He-1,e.match_available=0,e.ins_h=0};function Mt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Pe,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(2*Ge),this.dyn_dtree=new Uint16Array(2*(2*Fe+1)),this.bl_tree=new Uint16Array(2*(2*Ze+1)),ct(this.dyn_ltree),ct(this.dyn_dtree),ct(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Ye+1),this.heap=new Uint16Array(2*qe+1),ct(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*qe+1),ct(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var St=function(e){if(!e||!e.state)return ut(e,Se);e.total_in=e.total_out=0,e.data_type=je;var t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?Ke:tt,e.adler=2===t.wrap?0:1,t.last_flush=ye,ge(t),Ie},Ct=function(e){var t=St(e);return t===Ie&&It(e.state),t},Nt=function(e,t,n,r,i,o){if(!e)return Se;var a=1;if(t===Te&&(t=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>Ue||n!==Pe||r<8||r>15||t<0||t>9||o<0||o>ke)return ut(e,Se);8===r&&(r=9);var s=new Mt;return e.state=s,s.strm=e,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<xe||t<0)return e?ut(e,Se):Se;var i=e.state;if(!e.output||!e.input&&0!==e.avail_in||i.status===nt&&t!==we)return ut(e,0===e.avail_out?Ne:Se);i.strm=e;var o=i.last_flush;if(i.last_flush=t,i.status===Ke)if(2===i.wrap)e.adler=0,ht(i,31),ht(i,139),ht(i,8),i.gzhead?(ht(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),ht(i,255&i.gzhead.time),ht(i,i.gzhead.time>>8&255),ht(i,i.gzhead.time>>16&255),ht(i,i.gzhead.time>>24&255),ht(i,9===i.level?2:i.strategy>=De||i.level<2?4:0),ht(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(ht(i,255&i.gzhead.extra.length),ht(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=pe(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Xe):(ht(i,0),ht(i,0),ht(i,0),ht(i,0),ht(i,0),ht(i,9===i.level?2:i.strategy>=De||i.level<2?4:0),ht(i,st),i.status=tt);else{var a=Pe+(i.w_bits-8<<4)<<8;a|=(i.strategy>=De||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(a|=Qe),a+=31-a%31,i.status=tt,gt(i,a),0!==i.strstart&&(gt(i,e.adler>>>16),gt(i,65535&e.adler)),e.adler=1}if(i.status===Xe)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>n&&(e.adler=pe(e.adler,i.pending_buf,i.pending-n,n)),pt(e),n=i.pending,i.pending!==i.pending_buf_size));)ht(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(e.adler=pe(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=$e)}else i.status=$e;if(i.status===$e)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=pe(e.adler,i.pending_buf,i.pending-n,n)),pt(e),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}r=i.gzindexn&&(e.adler=pe(e.adler,i.pending_buf,i.pending-n,n)),0===r&&(i.gzindex=0,i.status=Je)}else i.status=Je;if(i.status===Je)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=pe(e.adler,i.pending_buf,i.pending-n,n)),pt(e),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}r=i.gzindexn&&(e.adler=pe(e.adler,i.pending_buf,i.pending-n,n)),0===r&&(i.status=et)}else i.status=et;if(i.status===et&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&pt(e),i.pending+2<=i.pending_buf_size&&(ht(i,255&e.adler),ht(i,e.adler>>8&255),e.adler=0,i.status=tt)):i.status=tt),0!==i.pending){if(pt(e),0===e.avail_out)return i.last_flush=-1,Ie}else if(0===e.avail_in&<(t)<=lt(o)&&t!==we)return ut(e,Ne);if(i.status===nt&&0!==e.avail_in)return ut(e,Ne);if(0!==e.avail_in||0!==i.lookahead||t!==ye&&i.status!==nt){var s=i.strategy===De?Et(i,t):i.strategy===Oe?bt(i,t):xt[i.level].func(i,t);if(s!==ot&&s!==at||(i.status=nt),s===rt||s===ot)return 0===e.avail_out&&(i.last_flush=-1),Ie;if(s===it&&(t===be?Ae(i):t!==xe&&(me(i,0,0,!1),t===Ee&&(ct(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),pt(e),0===e.avail_out))return i.last_flush=-1,Ie}return t!==we?Ie:i.wrap<=0?Me:(2===i.wrap?(ht(i,255&e.adler),ht(i,e.adler>>8&255),ht(i,e.adler>>16&255),ht(i,e.adler>>24&255),ht(i,255&e.total_in),ht(i,e.total_in>>8&255),ht(i,e.total_in>>16&255),ht(i,e.total_in>>24&255)):(gt(i,e.adler>>>16),gt(i,65535&e.adler)),pt(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?Ie:Me)},Lt=function(e,t){var n=t.length;if(!e||!e.state)return Se;var r=e.state,i=r.wrap;if(2===i||1===i&&r.status!==Ke||r.lookahead)return Se;if(1===i&&(e.adler=ce(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){0===i&&(ct(r.head),r.strstart=0,r.block_start=0,r.insert=0);var o=new Uint8Array(r.w_size);o.set(t.subarray(n-r.w_size,n),0),t=o,n=r.w_size}var a=e.avail_in,s=e.next_in,u=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,_t(r);r.lookahead>=He;){var l=r.strstart,c=r.lookahead-(He-1);do{r.ins_h=dt(r,r.ins_h,r.window[l+He-1]),r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++}while(--c);r.strstart=l,r.lookahead=He-1,_t(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=He-1,r.match_available=0,e.next_in=s,e.input=u,e.avail_in=a,r.wrap=i,Ie},Dt=Tt,Ot={deflateInit:function(e,t){return Nt(e,t,Pe,ze,Be,Re)},deflateInit2:Nt,deflateReset:Ct,deflateResetKeep:St,deflateSetHeader:function(e,t){return e&&e.state?2!==e.state.wrap?Se:(e.state.gzhead=t,Ie):Se},deflate:Dt,deflateEnd:function(e){if(!e||!e.state)return Se;var t=e.state.status;return t!==Ke&&t!==Xe&&t!==$e&&t!==Je&&t!==et&&t!==tt&&t!==nt?ut(e,Se):(e.state=null,t===tt?ut(e,Ce):Ie)},deflateSetDictionary:Lt,deflateInfo:"pako deflate (from Nodeca project)"};function kt(e){for(var t=0,n=0,r=e.length;n=252?6:jt>=248?5:jt>=240?4:jt>=224?3:jt>=192?2:1;function Pt(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}Rt[254]=Rt[254]=1;var Ut=Pt,zt=Object.prototype.toString,Bt=he.Z_NO_FLUSH,qt=he.Z_SYNC_FLUSH,Ft=he.Z_FULL_FLUSH,Zt=he.Z_FINISH,Gt=he.Z_OK,Yt=he.Z_STREAM_END,Ht=he.Z_DEFAULT_COMPRESSION,Wt=he.Z_DEFAULT_STRATEGY,Vt=he.Z_DEFLATED;function Qt(){this.options={level:Ht,method:Vt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ut,this.strm.avail_out=0;var t=Ot.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(t!==Gt)throw new Error(fe[t]);if(e.header&&Ot.deflateSetHeader(this.strm,e.header),e.dictionary){var n;if(n="[object ArrayBuffer]"===zt.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(t=Ot.deflateSetDictionary(this.strm,n))!==Gt)throw new Error(fe[t]);this._dict_set=!0}}function Kt(e){if("function"===typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);var t,n,r,i,o,a=e.length,s=0;for(i=0;i>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t}return Qt.prototype.push=function(e,t){var n,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;for(r=t===~~t?t:!0===t?Zt:Bt,"[object ArrayBuffer]"===zt.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;)if(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(r===qt||r===Ft)&&i.avail_out<=6)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else{if((n=Ot.deflate(i,r))===Yt)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),n=Ot.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Gt;if(0!==i.avail_out){if(r>0&&i.next_out>0)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else if(0===i.avail_in)break}else this.onData(i.output)}return!0},Qt.prototype.onData=function(e){this.chunks.push(e)},Qt.prototype.onEnd=function(e){e===Gt&&(this.result=kt(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},{Deflate:Qt,constants:he,string2buf:Kt}}(),n=t.Deflate,r=t.constants,i=t.string2buf,o=new n,a=0;function s(e){var t=i(e);return o.push(t,r.Z_SYNC_FLUSH),a+=t.length,t.length}self.addEventListener("message",e((function(e){var t=e.data;switch(t.action){case"init":self.postMessage({type:"initialized"});break;case"write":var i=s(t.data);self.postMessage({type:"wrote",id:t.id,compressedBytesCount:o.chunks.reduce((function(e,t){return e+t.length}),0),additionalBytesCount:i});break;case"flush":i=t.data?s(t.data):0;o.push("",r.Z_FINISH),self.postMessage({type:"flushed",id:t.id,result:o.result,additionalBytesCount:i,rawBytesCount:a}),o=new n,a=0}})))}))()}var Ss={status:0};function Cs(e,t){switch(void 0===t&&(t=Is),Ss.status){case 0:Ss={status:1,callbacks:[e]},function(e){void 0===e&&(e=Is);try{var t=e();return Zt(t,"error",Ns),Zt(t,"message",(function(e){var n,r=e.data;"errored"===r.type?Ns(r.error):"initialized"===r.type&&(n=t,1===Ss.status&&(Ss.callbacks.forEach((function(e){return e(n)})),Ss={status:3,worker:n}))})),t.postMessage({action:"init"}),t}catch(n){Ns(n)}}(t);break;case 1:Ss.callbacks.push(e);break;case 2:e();break;case 3:e(Ss.worker)}}function Ns(e){var t;1===Ss.status?(p.error("Session Replay recording failed to start: an error occurred while creating the Worker:",e),e instanceof Event||e instanceof Error&&(E(t=e.message,"Content Security Policy")||E(t,"requires 'TrustedScriptURL'"))?p.error("Please make sure CSP is correctly configured https://docs.datadoghq.com/real_user_monitoring/faq/content_security_policy"):en(e),Ss.callbacks.forEach((function(e){return e()})),Ss={status:2}):en(e)}function Ts(){return"function"===typeof Array.from&&"function"===typeof CSSSupportsRule&&"function"===typeof URL.createObjectURL&&"forEach"in NodeList.prototype}function Ls(e,t,n,r){var i=t.findTrackedSession(),o=function(e,t){if(!Ts())return"browser-not-supported";if(!e)return"rum-not-tracked";if(!e.sessionReplayAllowed)return"incorrect-session-plan";if(!t)return"replay-not-started"}(i,r);return Jo(e,{viewContext:n.findView(),errorType:o,session:i})}var Ds=function(e,t){if(void 0===t&&(t=Cs),ze()||!Ts())return{start:q,stop:q,getReplayStats:function(){},onRumStart:q,isRecording:function(){return!1},getSessionReplayLink:function(){}};var n={status:0},r=function(){n={status:1}},i=function(){n={status:0}};return{start:function(){return r()},stop:function(){return i()},getReplayStats:vs,getSessionReplayLink:function(e,t,r){return Ls(e,t,r,0!==n.status)},onRumStart:function(o,a,s,u){o.subscribe(7,(function(){2!==n.status&&3!==n.status||(i(),n={status:1})})),o.subscribe(8,(function(){1===n.status&&r()})),r=function(){var r=s.findTrackedSession();r&&r.sessionReplayAllowed?2!==n.status&&3!==n.status&&(n={status:2},on("interactive",(function(){2===n.status&&t((function(t){if(2===n.status)if(t){var r=e(o,a,s,u,t).stop;n={status:3,stopRecording:r}}else n={status:0}}))}))):n={status:1}},i=function(){0!==n.status&&(3===n.status&&n.stopRecording(),n={status:0})},1===n.status&&r()},isRecording:function(){return 3===n.status}}}((function(e,t,n,r,i,o){var a=o||Lo(t.sessionReplayEndpointBuilder,ws,(function(t){e.notify(12,{error:t})})),s=xs(e,t.applicationId,n,r,a,i),u=s.addRecord,l=s.stop,c=ps({emit:u,configuration:t,lifeCycle:e}),d=c.stop,p=c.takeSubsequentFullSnapshot,f=c.flushMutations,h=e.subscribe(4,(function(){f(),u({timestamp:_e(),type:ea.ViewEnd})})).unsubscribe,g=e.subscribe(2,(function(e){p(e.startClocks.timeStamp)})).unsubscribe;return{stop:function(){h(),g(),d(),l()}}})),Os=function(e,t,n){var r=(void 0===n?{}:n).ignoreInitIfSyntheticsWillInjectRum,i=void 0===r||r,o=!1,a=re("global context"),s=re("user"),u=function(){},l=function(){},c=q,d=function(){},f=new ie,h=function(e,t){void 0===t&&(t=_e()),f.add((function(){return h(e,t)}))},g=function(e,t){void 0===t&&(t=ye()),f.add((function(){return g(e,t)}))},m=function(e,n){void 0===n&&(n=zt(a,s,t)),f.add((function(){return m(e,n)}))},v=function(e,n){void 0===n&&(n=zt(a,s,t)),f.add((function(){return v(e,n)}))},b=function(e,t){f.add((function(){return b(e,t)}))};function E(n,r,i){var o=e(n,r,t,a,s,i);d=function(){return t.getSessionReplayLink(r,o.session,o.viewContexts)},g=o.startView,m=o.addAction,v=o.addError,h=o.addTiming,b=o.addFeatureFlagEvaluation,u=o.getInternalContext,c=o.stopSession,f.drain(),t.onRumStart(o.lifeCycle,r,o.session,o.viewContexts)}var w=A((function(e){g("object"===typeof e?e:{name:e})})),x=function(e){var t=N({version:"4.42.2",onReady:function(e){e()}},e);return Object.defineProperty(t,"_setDebug",{get:function(){return _},enumerable:!1}),t}({init:A((function(e){if(l=function(){return G(e)},!i||!Pe()){if(ze())e=function(e){return N({},e,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100})}(e);else if(!function(e){if(!function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(Me()),n="test";Le(t,n,de,e);var r=De(t)===n;return Oe(t,e),r}catch(i){return p.error(i),!1}}(Tt(e)))return p.warn("Cookies are not authorized, we will not send any data."),!1;if("file:"===window.location.protocol)return p.error("Execution is not allowed in the current context."),!1;return!0}(e))return;if(function(e){if(o)return e.silentMultipleInit||p.error("DD_RUM is already initialized."),!1;return!0}(e)){var t=Pt(e);if(t){if(t.trackViewsManually){var n=f;f=new ie,g=function(n){E(e,t,n)},n.drain()}else E(e,t);o=!0}}}})),addRumGlobalContext:A(a.add),setGlobalContextProperty:A(a.setContextProperty),removeRumGlobalContext:A(a.remove),removeGlobalContextProperty:A(a.removeContextProperty),getRumGlobalContext:A(a.get),getGlobalContext:A(a.getContext),setRumGlobalContext:A(a.set),setGlobalContext:A(a.setContext),clearGlobalContext:A(a.clearContext),getInternalContext:A((function(e){return u(e)})),getInitConfiguration:A((function(){return l()})),addAction:A((function(e,t){m({name:X(e),context:X(t),startClocks:ye(),type:"custom"})})),addError:function(e,t){var n=rt();y((function(){v({error:e,handlingStack:n,context:X(t),startClocks:ye()})}))},addTiming:A((function(e,t){h(X(e),t)})),setUser:A((function(e){(function(e){var t="object"===F(e);return t||p.error("Unsupported user:",e),t})(e)&&s.setContext(it(e))})),getUser:A(s.getContext),setUserProperty:A((function(e,t){var n,r=it((n={},n[e]=t,n))[e];s.setContextProperty(e,r)})),removeUserProperty:A(s.removeContextProperty),removeUser:A(s.clearContext),clearUser:A(s.clearContext),startView:w,stopSession:A((function(){c()})),startSessionReplayRecording:A(t.start),stopSessionReplayRecording:A(t.stop),addFeatureFlagEvaluation:A((function(e,t){b(X(e),X(t))})),getSessionReplayLink:A((function(){return d()}))});return x}((function(e,t,n,r,i,o){var a=new tr;a.subscribe(11,(function(e){return Bt("rum",e)}));var s=function(e){var t=$t("browser-rum-sdk",e);if(ze()){var n=Ue();t.observable.subscribe((function(e){return n.send("internal_telemetry",e)}))}return t}(t);s.setContextProvider((function(){var e,n;return{application:{id:t.applicationId},session:{id:null===(e=d.findTrackedSession())||void 0===e?void 0:e.id},view:{id:null===(n=m.findView())||void 0===n?void 0:n.id},action:{id:y.findActionId()}}}));var u=function(e){a.notify(12,{error:e})},l=function(e,t){if(void 0===t&&(t=k),!at(Xe.FEATURE_FLAGS))return{findFeatureFlagEvaluations:function(){},getFeatureFlagBytesCount:function(){return 0},addFeatureFlagEvaluation:q,stop:q};var n=new ar(Po),r=0,i=!1;e.subscribe(4,(function(e){var t=e.endClocks;n.closeActive(t.relative)})),e.subscribe(2,(function(e){var t=e.startClocks;n.add({},t.relative),r=0}));var o=B((function(e){r=t(H(e)),i||(i=te(r,"feature flag evaluation"))}),Uo),a=o.throttled;return{findFeatureFlagEvaluations:function(e){return n.find(e)},getFeatureFlagBytesCount:function(){return n.find()?r:0},addFeatureFlagEvaluation:function(e,t){var r=n.find();r&&(r[e]=t,a(r))},stop:o.cancel}}(a),c=function(){var e=new qt((function(){var t=at(Xe.PAGEHIDE),n=Gt(window,["visibilitychange","freeze","pagehide"],(function(n){"pagehide"===n.type&&t?e.notify({reason:Yt.PAGEHIDE}):"visibilitychange"===n.type&&"hidden"===document.visibilityState?e.notify({reason:Yt.HIDDEN}):"freeze"===n.type&&e.notify({reason:Yt.FROZEN})}),{capture:!0}).stop,r=q;return t||(r=Zt(window,"beforeunload",(function(){e.notify({reason:Yt.UNLOADING})})).stop),function(){n(),r()}}));return e}();c.subscribe((function(e){a.notify(9,e)}));var d=ze()?function(){var e={id:"00000000-aaaa-0000-aaaa-000000000000",plan:1,sessionReplayAllowed:!1,longTaskAllowed:!0,resourceAllowed:!0};return{findTrackedSession:function(){return e},expire:q,expireObservable:new qt}}():vo(t,a);if(ze())!function(e){var t=Ue();e.subscribe(11,(function(e){t.send("rum",e)}))}(a);else{var p=ko(t,a,s.observable,u,c,d.expireObservable);!function(e,t,n,r,i,o,a){t.enabled&&oe(e.customerDataTelemetrySampleRate)&&(Ho(),Wo(),n.subscribe(11,(function(e){qo=!0,Go(Bo.globalContextBytes,ct(r.get())?0:r.getBytesCount()),Go(Bo.userContextBytes,ct(i.get())?0:i.getBytesCount());var t=o.findFeatureFlagEvaluations(),n=E(["view","error"],e.type)&&t&&!ct(t);Go(Bo.featureFlagBytes,n?o.getFeatureFlagBytesCount():0)})),a.subscribe((function(e){var t=e.bytesCount,n=e.messagesCount;qo&&(zo.batchCount+=1,Go(zo.batchBytesCount,t),Go(zo.batchMessagesCount,n),Yo(zo.globalContextBytes,Bo.globalContextBytes),Yo(zo.userContextBytes,Bo.userContextBytes),Yo(zo.featureFlagBytes,Bo.featureFlagBytes),Wo())})),U(Zo,Fo))}(t,s,a,r,i,l,p.flushObservable)}var f=function(){var e=rn(),t=new qt((function(){if(e){var n=new e(A((function(){return t.notify()})));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return n.disconnect()}}}));return t}(),h=jo(location),g=function(e,t,n,r,i,o,a,s){var u=function(e){var t=new ar(sr);return e.subscribe(2,(function(e){t.add(function(e){return{service:e.service,version:e.version,id:e.id,name:e.name,startClocks:e.startClocks}}(e),e.startClocks.relative)})),e.subscribe(4,(function(e){var n=e.endClocks;t.closeActive(n.relative)})),e.subscribe(8,(function(){t.reset()})),{findView:function(e){return t.find(e)},stop:function(){t.stop()}}}(e),l=function(e,t,n){var r,i=new ar(Ro);e.subscribe(4,(function(e){var t=e.endClocks;i.closeActive(t.relative)})),e.subscribe(2,(function(e){var t=e.startClocks,o=n.href;i.add(a({url:o,referrer:r||document.referrer}),t.relative),r=o}));var o=t.subscribe((function(e){var t=e.newLocation,n=i.find();if(n){var r=Ae();i.closeActive(r),i.add(a({url:t.href,referrer:n.referrer}),r)}}));function a(e){return{url:e.url,referrer:e.referrer}}return{findUrl:function(e){return i.find(e)},stop:function(){o.unsubscribe(),i.stop()}}}(e,i,n),c=Qn(),d=function(e,t,n,r){e.subscribe(1,(function(t){return e.notify(10,di(t,r))}));var i={findActionId:q};return n.trackUserInteractions&&(i=li(e,t,n).actionContexts),{addAction:function(t,n){e.notify(10,N({savedCommonContext:n},di(t,r)))},actionContexts:i}}(e,o,t,c),p=d.addAction,f=d.actionContexts;return Yn(t,e,r,u,l,f,a,s),{viewContexts:u,foregroundContexts:c,urlContexts:l,addAction:p,actionContexts:f,stop:function(){u.stop(),c.stop()}}}(a,t,location,d,h,f,(function(){return zt(r,i,n)}),u),m=g.viewContexts,v=g.foregroundContexts,_=g.urlContexts,y=g.actionContexts,b=g.addAction;!function(e){Xt.telemetryConfigurationEnabled&&tn({type:Vt.configuration,configuration:e})}(function(e){var t,n,r=function(e){var t,n,r=null!==(t=e.proxy)&&void 0!==t?t:e.proxyUrl;return{session_sample_rate:null!==(n=e.sessionSampleRate)&&void 0!==n?n:e.sampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,use_before_send:!!e.beforeSend,use_cross_site_session_cookie:e.useCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:void 0!==r?!!r:void 0,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,track_resources:e.trackResources,track_long_task:e.trackLongTasks}}(e);return N({premium_sample_rate:e.premiumSampleRate,replay_sample_rate:e.replaySampleRate,session_replay_sample_rate:e.sessionReplaySampleRate,trace_sample_rate:null!==(t=e.traceSampleRate)&&void 0!==t?t:e.tracingSampleRate,action_name_attribute:e.actionNameAttribute,use_allowed_tracing_origins:Array.isArray(e.allowedTracingOrigins)&&e.allowedTracingOrigins.length>0,use_allowed_tracing_urls:Array.isArray(e.allowedTracingUrls)&&e.allowedTracingUrls.length>0,selected_tracing_propagators:Ut(e),default_privacy_level:e.defaultPrivacyLevel,use_excluded_activity_urls:Array.isArray(e.excludedActivityUrls)&&e.excludedActivityUrls.length>0,track_frustrations:e.trackFrustrations,track_views_manually:e.trackViewsManually,track_user_interactions:null!==(n=e.trackUserInteractions)&&void 0!==n?n:e.trackInteractions},r)}(e)),function(e,t){e.subscribe(0,(function(n){for(var r=0,i=n;r=0;i--){var o=Ko[i].startTime;if(!(o>=r)&&(n.unshift(Ko[i]),o3&&void 0!==arguments[3]?arguments[3]:{},i="";if(n){var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3),i="; expires="+o.toUTCString()}var a=t;"object"===typeof t&&(a=encodeURIComponent(JSON.stringify(t)));var s={domain:".scribd.com",path:"/",secure:""};"undefined"!==typeof window&&window&&(window.location.href.match("staging.corp.scribd.com")?s.domain=".staging.corp.scribd.com":window.location.href.match("devkube.scribd.com")&&(s.domain=".devkube.scribd.com"));var u=Object.assign({},r,s);document.cookie=e+"="+(a||"")+i+"; domain="+u.domain+"; path="+u.path+"; secure="+u.secure}var qs=null;function Fs(e){Bs(e,qs)}function Zs(e){if("undefined"===typeof window)return null;for(var t=e+"=",n=document.cookie.split(";"),r=0;r3&&void 0!==arguments[3]?arguments[3]:{})}function Ys(){Fs(r.HR.DAY_ZERO_ENTRY_POINT)}function Hs(){return JSON.parse(Zs(r.HR.DAY_ZERO_ENTRY_POINT))||{}}function Ws(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vs(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return!!("undefined"!==typeof window&&window.Scribd&&window.Scribd.Sentry&&window.Scribd.Sentry.disabled)&&(console.error(e,t),!0)}function Js(){return"undefined"!==typeof window&&window.Sentry&&window.Sentry.captureException&&window.Sentry.captureMessage&&window.Sentry.configureScope&&window.Sentry.withScope}function eu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!$s(e,t))if(Js()){var n=Object.keys(t);n.length?window.Sentry.withScope((r=>{n.forEach((e=>{r.setExtra(e,t[e])})),window.Sentry.captureException(e)})):window.Sentry.captureException(e)}else!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Xs("errors");n?n.push({errorObject:e,extraInfo:t}):console.error(e,t)}(e,t)}function tu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!$s(e,t))if(Js()){var n=Object.keys(t);n.length?window.Sentry.withScope((r=>{n.forEach((e=>{r.setExtra(e,t[e])})),window.Sentry.captureMessage(e)})):window.Sentry.captureMessage(e)}else!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Xs("messages");n?n.push({message:e,extraInfo:t}):console.error(e,t)}(e,t)}function nu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.vT.UNCATEGORIZED,t=arguments.length>1?arguments[1]:void 0,n=function(){var{pathname:e}=window.location;return e.includes("/audiobook/")?r.pv.AUDIOBOOK:e.includes("/audiobooks/")||e.endsWith("/audiobooks")?r.pv.AUDIOBOOK_CATEGORY:e.includes("/bestsellers/")||e.endsWith("/bestsellers")?r.pv.BESTSELLERS:e.includes("/book/")?r.pv.BOOK:e.includes("/books/")||e.endsWith("/books")?r.pv.BOOK_CATEGORY:e.includes("/doc/")||e.includes("/document/")||e.includes("/presentation/")?r.pv.DOCUMENT:e.includes("/docs/")||e.endsWith("/docs")?r.pv.DOCUMENT_CATEGORY:e.includes("/fullscreen/")||e.includes("/embeds/")?r.pv.EMBED:"/"===e?r.pv.LOGGED_OUT_HOMEPAGE:e.endsWith("/home")?r.pv.LOGGED_IN_HOMEPAGE:e.includes("/article/")?r.pv.MAGAZINE_ARTICLE:e.endsWith("/magazines")?r.pv.MAGAZINE_CATEGORY:e.includes("/issue/")?r.pv.MAGAZINE_ISSUE:e.includes("/publication/")?r.pv.MAGAZINE_PUBLICATION:e.endsWith("/perks")?r.pv.PERKS_LANDING:e.includes("/podcast/")?r.pv.PODCAST:e.includes("/podcasts/")||e.endsWith("/podcasts")?r.pv.PODCAST_CATEGORY:e.includes("/podcast-show/")?r.pv.PODCAST_SHOW:e.endsWith("/promo")?r.pv.PROMO_LANDING:e.endsWith("/readfree")?r.pv.READ_FREE_LANDING:e.includes("/read/")?r.pv.READ_PREVIEW:e.includes("/sheetmusic/")||e.endsWith("/sheetmusic")?r.pv.SHEET_MUSIC_CATEGORY:e.endsWith("/join-sheet-music")?r.pv.SHEET_MUSIC_LANDING:e.endsWith("/slideshare")?r.pv.SLIDESHARE_LANDING:e.includes("/snapshot/")?r.pv.SNAPSHOT:e.endsWith("/snapshots")||e.includes("/snapshots/")?r.pv.SNAPSHOT_CATEGORY:e.endsWith("/subscribe")?r.pv.SUBSCRIBE_LANDING:e.endsWith("/subscribe-now")?r.pv.SUBSCRIBE_NOW_LANDING:e.endsWith("/what-is-scribd")?r.pv.WHAT_IS_SCRIBD_LANDING:(tu("checkoutEntryPointCookie: uncategorized entrypoint"),r.pv.UNCATEGORIZED)}(),i=Ks();Bs(r.HR.DAY_ZERO_ENTRY_POINT,Vs({buttonName:e,entryPoint:n,isMobile:i},t))}var ru="__CJ_day_zero_lightbox";class iu{setCookie(){Bs(ru,true,1)}clearCookie(){Fs(ru)}getCookieValue(){return Zs(ru)}}var ou="__CJ_used_blur_promo";class au{alterDownloadBehavior(){return!!this.getCookieValue()}setCookie(){!function(e,t,n){Bs(e,t,n||null,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})}(ou,true)}clearCookie(){Fs(ou)}getCookieValue(){return Zs(ou)}}function su(e){var{returnType:t=r.TH.STRING}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(e){var{returnType:t=r.TH.STRING,percent:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=0,o=0,a=0;switch(4===e.length?(i="0x"+e[1]+e[1],o="0x"+e[2]+e[2],a="0x"+e[3]+e[3]):7===e.length&&(i="0x"+e[1]+e[2],o="0x"+e[3]+e[4],a="0x"+e[5]+e[6]),n&&(i=+(i/255*100).toFixed(1),o=+(o/255*100).toFixed(1),a=+(a/255*100).toFixed(1)),t){case r.TH.ARRAY:return[+i,+o,+a];case r.TH.OBJECT:return{r:+i,g:+o,b:+a};case r.TH.STRING:default:return n?"rgb(".concat(+i,"%, ").concat(+o,"%, ").concat(+a,"%)"):"rgb(".concat(+i,", ").concat(+o,", ").concat(+a,")")}}(e,{returnType:r.TH.OBJECT}),{r:i,g:o,b:a}=n;i/=255,o/=255,a/=255;var s=Math.min(i,o,a),u=Math.max(i,o,a),l=u-s,c=0,d=0,p=0;switch(c=0===l?0:u===i?(o-a)/l%6:u===o?(a-i)/l+2:(i-o)/l+4,(c=Math.round(60*c))<0&&(c+=360),p=(u+s)/2,d=+(100*(d=0===l?0:l/(1-Math.abs(2*p-1)))).toFixed(1),p=+(100*p).toFixed(1),t){case r.TH.ARRAY:return[c,d,p];case r.TH.OBJECT:return{h:c,s:d,l:p};case r.TH.STRING:default:return"hsl(".concat(c,", ").concat(d,"%, ").concat(p,"%)")}}var uu=()=>{window.hj=window.hj||function(){for(var e=arguments.length,t=new Array(e),n=0;n{uu(),e.constructor!==Array&&console.error("Hotjar tags must be an array"),fu("Hotjar tag",e),window.hj("tagRecording",e)},gu="Invalid Date",mu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return"";var r=e.replace(/-/g,"/"),i=new Date(r),o=i.getTimezoneOffset(),a=new Date(i.getTime()-6e4*o);try{a=a.toLocaleDateString(t,n)}catch(u){a=a.toLocaleDateString()}if(a===gu){eu(new Error("Localized Invalid Date"));var s=new Date(e);return s===gu?e:s}return a},vu=()=>{};var _u=new class{constructor(){this.CSRF_TOKEN=null,"undefined"!==typeof window&&(this.xhr_queue=[],this.get_csrf_token())}get_csrf_token(){var e=this;return this.send("post",{url:"/csrf_token",body:{href:window.location.href}},((t,n,r)=>{t||(e.CSRF_TOKEN=JSON.parse(r).csrf_token,e.xhr_queue.length&&e.xhr_queue.forEach((t=>e.send(...t))))}),!0)}get_read_defaults(){return{headers:{"X-Requested-With":"XMLHttpRequest"}}}get_modify_defaults(){return{headers:s().pickBy({"Content-Type":"application/json","X-CSRF-Token":this.CSRF_TOKEN,"X-Requested-With":"XMLHttpRequest"},s().identity)}}send(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vu,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i="get"===e.toLowerCase(),o=i?this.get_read_defaults():this.get_modify_defaults();"object"===typeof t.body&&(t.headers&&t.headers["Content-Type"]&&t.headers["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1?t.body=Object.keys(t.body).map((e=>encodeURIComponent(e)+"="+encodeURIComponent(t.body[e]))).join("&"):t.json||(t.body=JSON.stringify(t.body)));return"undefined"!==typeof window?i||this.CSRF_TOKEN||r?l()(s().merge(o,{method:e},t),((e,t,r)=>{var i;e?i={xhr_api_error:e}:t.statusCode>=500&&(i={statusCode:t.statusCode,body:r}),i&&eu(new Error("XHR error"),{extra:i}),n(e,t,r)})):(this.xhr_queue.push(arguments),vu):vu}get(e,t){return this.send("get",e,t)}post(e,t){return this.send("post",e,t)}patch(e,t){return this.send("patch",e,t)}put(e,t){return this.send("put",e,t)}delete(e,t){return this.send("delete",e,t)}asPromise(e,t){var n=Vs({json:!0},t);return new Promise(((t,r)=>{this.send(e,n,((e,n,i)=>{var{statusCode:o}=n;return e?r(e):200!==o?r({message:"Received non-200 status code: ".concat(o),statusCode:o}):void t(Vs(Vs({},i),{},{statusCode:o}))}))}))}},Au=e=>new RegExp("[^".concat(e,"]"),"g"),yu=/[a-zA-Z]/,bu="\\w\\.\\-\\/",Eu="".concat(bu,":"),wu=Au(bu),xu=Au(Eu),Iu=["boolean","number"];function Mu(e){return"string"!==typeof e||!1===yu.test(e[0])?null:e.replace(wu,"_")}function Su(e){return"string"===typeof e?e.replace(xu,"_"):Iu.includes(typeof e)?e.toString():"undefined"===typeof e?"undefined":null===e?"null":null}var Cu="count",Nu="decrement",Tu="gauge",Lu="increment",Du="timing";function Ou(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};for(var[n,r]of Object.entries(e)){var i=Mu(n),o=Su(r);if(null===i||null===o)return null;t[i]=o}return t}(r);if(null===i)return eu(new Error("Datadog: Invalid metric tags"),{tags:r});var o={metric:t,tags:i,type:e};n&&(o.value=n),_u.post({body:o,dataType:"json",url:"/log/dd"})}class ku{static decrement(e,t){Ou(Nu,e,null,t)}static increment(e,t){Ou(Lu,e,null,t)}}Qs(ku,"count",Ou.bind(ku,Cu)),Qs(ku,"gauge",Ou.bind(ku,Tu)),Qs(ku,"timing",Ou.bind(ku,Du));var Ru=()=>"undefined"===typeof window||!1===!!window.Osano?null:window.Osano,ju={ACTION:{CONSENT_DIALOG_VISIBLE:"consent_dialog_visible",DISPLAY_CONSENT_DRAWER:"display_consent_drawer"},NAME:"feature",SERVICE:"osano_content_manager"},Pu="permissive",Uu="production",zu=()=>{var e,t=null===(e=Ru())||void 0===e?void 0:e.cm.mode;return t===Pu||t===Uu},Bu=e=>{var t,n;return!0===Zs(r.HR.OSANO_METRICS_TRACKED)||!1===(null===(t=Ru())||void 0===t?void 0:t.cm.dialogOpen)?null:(ku.increment(ju.NAME,{action:e||"undefined",service:ju.SERVICE,version:"v".concat(null===(n=Ru())||void 0===n?void 0:n.cm.cmpVersion)}),void Bs(r.HR.OSANO_METRICS_TRACKED,!0))},qu=e=>{var t,n;if("undefined"===typeof window)return null;e.preventDefault(),null===(t=Ru())||void 0===t||t.cm.showDrawer(),!0===(null===(n=Ru())||void 0===n?void 0:n.cm.drawerOpen)&&Bu(ju.ACTION.DISPLAY_CONSENT_DRAWER)};function Fu(e){Array.isArray(window.Scribd.ratsQueue)||(window.Scribd.ratsQueue=[]),window.Scribd.ratsQueue.push(e)}function Zu(){var e=window.$rat;return e||eu(new Error("Rat not initialized; events will not be tracked!")),!!e}function Gu(){var e;try{e=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}catch(t){eu(new Error("UUID: Not able to use crypto uuid")),e=fetch("https://www.uuidtools.com/api/generate/v4").then((e=>e.json())).then((e=>e[0])).catch((()=>(eu(new Error("UUID: External API failed")),null)))}return e}function Yu(){return window.Scribd&&window.Scribd.config&&window.Scribd.config.js_logging_enabled}var Hu=(e,t)=>{Yu()&&console.log("%cWebAnalytics: Log Standard Event (queue)","background: green; color: white; display: block; padding: 5px;",e,t);var n=void 0===e?null:e,r=void 0===t?null:t;return"string"!==typeof n&&null!==n&&(n=JSON.stringify(n)),"string"!==typeof r&&null!==r&&(r=JSON.stringify(r)),{name:n,value:r,timestamp:(new Date).toISOString()}};function Wu(){return this._uniqueBrowserTrackingCookie=this._uniqueBrowserTrackingCookie||Zs("scribd_ubtc"),this._uniqueBrowserTrackingCookie}var Vu=()=>(new Date).getTime()/1e3;function Qu(){this._pingSetup=!1,this._startFlushTimeout(),document.removeEventListener("mousemove",this._pingWebAnalytics),setTimeout(this._setupPing,1e3)}function Ku(){this.events=[],this.lastFlushed=Vu(),this._flushTimeoutId&&(window.clearTimeout(this._flushTimeoutId),this._flushTimeoutId=null)}var Xu="wa:debug",$u="".concat(Xu,":failed:request"),Ju="".concat(Xu,":failed:fetch");function el(){this.disabled()||this._pingSetup||(this._pingSetup=!0,document.addEventListener("mousemove",this._pingWebAnalytics))}function tl(){var e;this.disabled()||this.viewId&&(this.events.length>=10?this.flushEvents(this._setupPing):null===this._flushTimeoutId&&(this._flushTimeoutId=window.setTimeout((()=>{this.flushEvents(this._setupPing)}),(e=this.lastFlushed,3e4-1e3*(Vu()-e)))))}var nl=void 0;class rl{constructor(e,t){Qs(this,"logEvent",((e,t)=>{this.disabled()||(this.events.push(Hu(e,t)),e.startsWith(Xu)||this._startFlushTimeout())})),this.serverUrl=e,this.events=[],this._flushTimeoutId=null,t?(this.userId=t.user_id,this.docId=t.doc_id):(this.userId=null,this.docId=null),this._startFlushTimeout=tl.bind(this),this._setupPing=el.bind(this),this._getUniqueBrowserTrackingCookie=Wu.bind(this),this._pingWebAnalytics=Qu.bind(this),this._resetBuffers=Ku.bind(this)}static createInstance(e,t){return nl=new rl(e,t)}static getInstance(){return nl}addUnloadEvent(){this.events.push(Hu("dom.window.beforeunload"))}start(){this.viewId,Promise.resolve(Gu()).then((e=>{e||(this.logEvent("".concat(Xu,":no:viewId")),this.disable()),this.viewId=e})),this._setupPing(),this.lastFlushed=Vu(),this.handlePageInvisible=()=>{"visible"!==document.visibilityState&&(this.addUnloadEvent(),this.flushEventBufferOnly())},this.handlePageHide=()=>{this.addUnloadEvent(),this.flushEventBufferOnly()},document.addEventListener("visibilitychange",this.handlePageInvisible),window.addEventListener("pagehide",this.handlePageHide),this.logEvent("page:loaded")}flushEvents(e){0===this.events.length&&this.events.push(Hu("mouse:move")),this.flushEventBufferOnly(e)}flushEventBufferOnly(e){if(!this.disabled()&&this.viewId&&0!==this.events.length){Yu()&&console.log("%cWebAnalytics: Flush Events (send)","background: lightblue; color: darkblue; display: block; padding: 5px;",this.events);var t=this.events;this._resetBuffers();var n=this._getUniqueBrowserTrackingCookie();!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"{}",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;window.fetch(t,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:e,keepalive:!0}).then((t=>{if(200!==t.status&&204!==t.status){var i="WebAnalytics sendRequest fetch returned non 200 response: ".concat(t.status);Yu()&&console.log(i),eu(new Error(i),Vs(Vs({},window.JSON.parse(e)),{message:i})),r($u,{"response.status":t.status})}n&&n()})).catch((t=>{eu(t,Vs(Vs({},window.JSON.parse(e)),{message:"WebAnalytics sendRequest fetch failed in window.fetch.catch"})),r(Ju)}))}(JSON.stringify({doc_id:this.docId,events:t,location:location.href,product:"scribd",page_view_id:this.viewId,referrer:document.referrer||null,ubtc:n,user_id:this.userId}),this.serverUrl+"/api/v1/events",(()=>{!n&&Zs("scribd_ubtc")&&this.logEvent("".concat(Xu,":cookie:set")),e&&e()}),this.logEvent)}}disable(){this.logEvent("".concat(Xu,":disabled")),this._disabled=!0,this.handlePageInvisible&&document.removeEventListener("visibilitychange",this.handlePageInvisible),this.handlePageHide&&window.removeEventListener("pagehide",this.handlePageHide)}disabled(){return this._disabled}instance(){return this}}!function(){function e(t,n){function r(e,r){var i=e;n&&(i=n+"."+i),t.logEvent(i,r)}return r.logEvent=r,r.parent=t,r.instance=function(){return t.instance()},r.disable=function(){t.disable()},r.disabled=function(){return t.disabled()},r.s=function(t){return e(r,t)},r}}();function il(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re.language)),sl={},ul=(e,t,n)=>{if("locale"===t&&(e||0===e))return e.toLocaleString(c.Z.services.languageUtils.getLanguagePartFromCode(n))},ll=e=>{if(sl[e])return sl[e].translation;var t=n(5608),r=n(5065);return JSON.parse(t.readFileSync(r.resolve("/","../locales/".concat(e,"/translation.json"))))},cl=e=>"undefined"!==typeof window?window._translations:(sl[ol]={translation:ll(ol)},e!==ol&&(sl[e]={translation:ll(e)}),sl);function dl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ol,t=al.includes(e)?e:ol;c.Z.init({debug:!1,fallbackLng:ol,lng:t,locale:t,resources:cl(t),interpolation:{escapeValue:!1,format:ul},returnEmptyString:!1,returnNull:!1,saveMissing:!0}),"undefined"!==typeof window&&c.Z.on("missingKey",((e,t,n)=>{var r="i18next missing translation for key: ".concat(n," in language: ").concat(e);eu(new Error(r))}))}function pl(e,t){var n=t?t.id:null,r={id:n,isLoggedIn:!!n};Os.init(Vs({site:"datadoghq.com",trackInteractions:!0},e)),r.isLoggedIn&&r.id&&Os.setUser({id:r.id})}function fl(e,t,n){rl.createInstance(e,{user_id:t,doc_id:n}).start()}function hl(e){if("undefined"!==typeof window){var t=document.createElement("script");return e.path&&(t.src=e.path),e.crossorigin&&(t.crossOrigin=e.crossorigin),e.integrity&&(t.integrity=e.integrity),e.content&&(t.innerHTML=e.content),e.id&&(t.id=e.id),e.defer?t.defer=1:e.async&&(t.async=1),e.onload&&(t.onload=e.onload),(e.element||document.head).appendChild(t)}}function gl(){var e,t,n,r,i,o,a,s;window._fs_host="fullstory.com",window._fs_script="edge.fullstory.com/s/fs.js",window._fs_org="o-1M5Q7K-na1",window._fs_namespace="FS",e=window,t=document,n=window._fs_namespace,r="script",i="user",n in e?e.console&&e.console.log&&e.console.log('FullStory namespace conflict. Please set window["_fs_namespace"].'):((a=e[n]=function(e,t,n){a.q?a.q.push([e,t,n]):a._api(e,t,n)}).q=[],(o=t.createElement(r)).async=1,o.crossOrigin="anonymous",o.src="https://"+_fs_script,(s=t.getElementsByTagName(r)[0]).parentNode.insertBefore(o,s),a.identify=function(e,t,n){a(i,{uid:e},n),t&&a(i,t,n)},a.setUserVars=function(e,t){a(i,e,t)},a.event=function(e,t,n){a("event",{n:e,p:t},n)},a.anonymize=function(){a.identify(!1)},a.shutdown=function(){a("rec",!1)},a.restart=function(){a("rec",!0)},a.log=function(e,t){a("log",[e,t])},a.consent=function(e){a("consent",!arguments.length||e)},a.identifyAccount=function(e,t){o="account",(t=t||{}).acctId=e,a(o,t)},a.clearUserCookie=function(){},a.setVars=function(e,t){a("setVars",[e,t])},a._w={},s="XMLHttpRequest",a._w[s]=e[s],s="fetch",a._w[s]=e[s],e[s]&&(e[s]=function(){return a._w[s].apply(this,arguments)}),a._v="1.3.0")}var ml={ACTION:{GET_VARIANT:"get_session_variant",LOGIN:"login",SIGNUP:"signup",XHR_REQUEST:"xhr_request"},METRIC_NAME:"test",SERVICE:{OSANO:"osano"},SOURCE:"google_one_tap",STATUS:{DISMISSED:"dismissed",ERROR:{JSON:"json_error",XHR:"xhr_error"},SUCCESS:"success"}},vl="dismissed",_l="display",Al="skipped",yl={CONTROL:"control",VARIANT_A:"variant_a_no_checkout",VARIANT_B:"variant_b_with_checkout"},bl="__CJ_nwt",El=730,wl={};function xl(){var e=Zs(bl);return e?"object"!==typeof(e=JSON.parse(e))?{}:e:{}}function Il(e){if(e)return"nw".concat(e.id)}function Ml(e){var t=Il(e);return xl()[t]||!1}function Sl(){var e,t;return"object"!==typeof window?{}:(null===(e=window)||void 0===e||null===(t=e.Scribd)||void 0===t?void 0:t.NwayTestsWithWeights)||{}}function Cl(e,t){var n={},r={true:!0,false:!1,null:null};return s().each(e.replace(/\+/g," ").split("&"),(e=>{var i,o=e.split("="),a=decodeURIComponent(o[0]),u=n,l=0,c=a.split("]["),d=c.length-1;if(/\[/.test(c[0])&&/\]$/.test(c[d])?(c[d]=c[d].replace(/\]$/,""),d=(c=c.shift().split("[").concat(c)).length-1):d=0,2===o.length)if(i=decodeURIComponent(o[1]),t&&(i=i&&!isNaN(i)?+i:"undefined"===i?void 0:void 0!==r[i]?r[i]:i),d)for(;l<=d;l++)u=u[a=""===c[l]?u.length:c[l]]=le[0]));if(!(0,a.isEmpty)(r)){for(var i=(0,a.reduce)(r,((e,t)=>{var{weight:n}=t[1];return n+e}),0),o=(0,a.random)(0,i-1),s=null;o>=0;){o-=(s=r.shift())[1].weight}if(s)return{id:s[0],name:s[1].name,weight:s[1].weight}}}function Ol(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Ml(t);if(r&&!n){var i=t.choices[r];return i?(function(e,t){"undefined"!==typeof window&&il("ga_NwayRead",{action:e,label:t})}(e,i.name),Vs(Vs({},i),{},{id:r,isNewAssignment:!1})):wl}var o=null;return(o=r?{id:"".concat(r),name:t.choices[r].name,weight:t.choices[r].weight}:Dl(t.choices))?(Ll(t.id,o.id),Tl(e,t,o),Vs(Vs({},o),{},{isNewAssignment:!0})):wl}var kl={};var Rl=new Map;var jl={forceValue:function(e,t){if("undefined"!==typeof window&&window.Scribd&&window.Scribd.NwayTestsWithWeights){var n=window.Scribd.NwayTestsWithWeights[e];if(n){var r=Ml(n),i=function(e,t){var n;for(var r in e)if((n=e[r]).name===t)return{id:"".concat(r),name:n.name,weight:n.weight}}(n.choices,t);if(i)return"".concat(r)!=="".concat(i.id)&&(Ll(n.id,i.id),Tl(e,n,i)),t;console.warn("tried to force test ".concat(e,", but couldn't find choice ").concat(t))}else console.warn("trying to force test ".concat(e,", but it doesn't exist"))}},getExistingAssignment:Ml,getValue:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Nl(e);if(r)return r;var i=Sl()[e];if(i){if(n&&(o=i.id,void 0!==kl[o]))return kl[i.id];var o,a=Ol(e,i,t).name;return n&&((e,t)=>{kl[e]=t})(i.id,a),a}},getVariantInfo:function(e){var t=Nl(e);if(t)return{isNewAssignment:!1,name:t};var n=Sl()[e];if(!n)return wl;if(Rl.has(n.id))return Rl.get(n.id);var r=Ol(e,n);return Rl.set(n.id,r),r},pickValue:Dl};function Pl(e){ku.increment(ml.METRIC_NAME,Vs(Vs({},e),{},{source:ml.SOURCE}))}var Ul=/webpack\/(.*?)\/(\w+).\w+.js/;var zl=Object.freeze({__proto__:null,fullStoryTag:function(e){if(function(e,t){var n="_fs_sample_user";try{if(document.cookie.indexOf(n+"=true")>-1||document.cookie.indexOf(n+"=false")>-1)return document.cookie.indexOf(n+"=true")>-1;var r=Math.random()0?t:30,o=new Date;return o.setTime(o.getTime()+24*i*60*60*1e3),document.cookie=n+"="+r+"; expires="+o.toGMTString()+"; path=/",r}catch(a){return console.error("FullStory unavailable, unable to sample user"),!1}}(e))return hl({content:gl()})},googleAnalyticsTag:function(e){if("undefined"!==typeof window){var{accountId:t,facebookSetupContext:n,currentUser:r}=e;return window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date,ga("create",t,"auto"),ga("send","pageview"),ga("set","dimension1",r),ga("set","dimension2",n),ga("set","dimension3",document.location.host),hl({path:"https://www.google-analytics.com/analytics.js",defer:!0})}},googleOneTap:function(e){var{contentType:t,googleClientId:n,isLoggedIn:r,page:i}=e;if("undefined"===typeof window)return null;if(!0===r)return null;if(!0===Ks())return null;var o=jl.getValue("google_one_tap_2023_q2");if(!1===[yl.VARIANT_A,yl.VARIANT_B].includes(o))return Pl({action:ml.ACTION.GET_VARIANT,variant:"control"}),null;var a={contentType:t,page:i,variant:o},s=e=>{_u.post({url:"/open_id_connect/login",body:{signup_location:window.document.location.href,signup_mechanism:"google_one_tap",signup_source:"google_signup",token:e.credential}},((e,n)=>{var r=void 0;if(!0===!!e||200!==n.statusCode)return Pl({action:ml.ACTION.XHR_REQUEST,responseCode:n.statusCode||"null",status:ml.STATUS.ERROR.XHR,variant:o}),eu(e,{message:"googleOneTap.js - XHR error"});try{r=JSON.parse(n.body)}catch(s){return Pl({action:ml.ACTION.XHR_REQUEST,status:ml.STATUS.ERROR.JSON}),eu(s,{message:"googleOneTap.js - JSON.parse error"})}return!0===r.user.isLoggedIn&&!1===r.user.isNewUser&&(il("googleOneTap.".concat(ml.ACTION.LOGIN),a),Pl({action:ml.ACTION.LOGIN,contentType:t||"null",page:i,status:ml.STATUS.SUCCESS,variant:o})),window.location.reload()}))};return hl({path:"https://accounts.google.com/gsi/client",defer:!0,onload:()=>{window.google.accounts.id.initialize({callback:s,client_id:n,prompt_parent_id:"google_one_tap_prompt_container"}),window.google.accounts.id.prompt((e=>{if(e.isDisplayMoment()){var n=e.isDisplayed(),r=e.getNotDisplayedReason()||null;Pl({contentType:t||"null",isDisplayed:n.toString(),moment:_l,notDisplayedReason:r||"false",page:i,variant:o}),il("googleOneTap.notification.".concat(_l),Vs(Vs({},a),{},{isDisplayed:n,notDisplayedReason:r}))}if(e.isSkippedMoment()){var s=e.getSkippedReason();Pl({moment:Al,skippedReason:s}),il("googleOneTap.notification.".concat(Al),Vs(Vs({},a),{},{skippedReason:s}))}if(e.isDismissedMoment()){var u=e.getDismissedReason(),l="doc_page"===i&&"cancel_called"===u;Pl({dismissedReason:u,isDismissedDueToDocPageExitModal:l.toString(),moment:vl}),il("googleOneTap.notification.".concat(vl),Vs(Vs({},a),{},{dismissedReason:u,isDismissedDueToDocPageExitModal:l}))}}))}})},isGoogleOneTapActive:function(){var e;return"undefined"!==typeof window&&!(null===(e=window.google)||void 0===e||!e.accounts)},googleTagManagerHeadTag:function(){if("undefined"!==typeof window)return hl({content:function(e,t,n,r,i){e[r]=e[r]||[],e[r].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var o=t.getElementsByTagName(n)[0],a=t.createElement(n),s="dataLayer"!==r?"&l="+r:"";a.defer=!0,a.src="https://www.googletagmanager.com/gtm.js?id="+i+s,o.parentNode.insertBefore(a,o)}(window,document,"script","dataLayer","GTM-KXQQWDG")})},sentryTag:function(){if("undefined"!==typeof window){var e=window.Scribd&&window.Scribd.Sentry;if(e){var{disabled:t,dsn:n,environment:r,page:i,release:o}=e;if(!t){var a={async:!0,crossorigin:"anonymous",id:"sentry_rewriteframe_script_tag",path:"https://browser.sentry-cdn.com/7.19.0/rewriteframes.min.js",onload:()=>{window.Sentry.init({allowUrls:[/^https?:\/\/(\w+\.)*scribd\.com/,/^https?:\/\/.*\.scribdassets\.com/],dsn:n,environment:r,release:o,integrations:[new window.Sentry.Integrations.RewriteFrames({iteratee:e=>(e.filename&&(e.module=function(e){if(/embeds\/\d+\/content/.test(e))return"embeds/ID/content";if(/read\/\d+\/(\w|-)+/.test(e))return"read/ID/SLUG";if(/audiobook\/\d+\/(\w|-)+/.test(e))return"audiobook/ID/SLUG";if(/document\/\d+\/(\w|-)+/.test(e))return"document/ID/SLUG";if(/fullscreen\/\d+/.test(e))return"fullscreen/ID";if(/\w+\/pages\/\d+/.test(e))return"SHA/pages/N";if(Ul.test(e)){var[t,n]=e.match(Ul).splice(1,2);return"webpack/".concat(t,"/").concat(n,".SHA.js")}return null}(e)),e)})]}),function(e){Js()&&e&&window.Sentry.configureScope((t=>{t.setTag("page",e)}))}(i),Xs("errors").concat(Xs("messages")).forEach((e=>{var t=e.extraInfo;e.message&&tu(e.message,t),e.errorObject&&eu(e.errorObject,t)}))}};return hl({async:!0,crossorigin:"anonymous",id:"sentry_script_tag",integrity:"sha384-ztBHD5Kyf+YJqkbZijnUhyS5dYdQDCEfB2QjYao1rVJ1qBpQn+WMbafstDcVTHnB",path:"https://browser.sentry-cdn.com/7.19.0/bundle.min.js",onload:()=>{hl(a)}})}}}},setupGoogleButton:function(e){var{buttonText:t,googleClientId:n,handleSuccess:r,optIn:i,promptId:o,trackingData:a,setIsLoading:s,setShowError:u}=e;if("undefined"===typeof window)return null;var l=()=>{u(!1),il("account_creation:google_btn:click",a)},c=e=>{s(!0),_u.post({url:"/open_id_connect/login",body:{signup_location:window.document.location.href,signup_source:"google_signup",token:e.credential,optin:i}},((e,t)=>{var n=void 0;if(!0===!!e||200!==t.statusCode)return s(!1),u(!0),il("account_creation:google_btn:xhr_error",a),ku.increment("feature",{action:"xhr_request",source:"google_signin_button",status:"xhr_error"}),eu(e,{message:"google button - XHR error"});try{n=JSON.parse(t.body)}catch(i){return s(!1),u(!0),il("account_creation:google_btn:parse_error",a),ku.increment("feature",{action:"xhr_request",source:"google_signin_button",status:"json_error"}),eu(i,{message:"google button - JSON.parse error"})}!0===n.user.isLoggedIn&&!1===n.user.isNewUser&&(il("account_creation:google_btn:signin_success",a),ku.increment("feature",{action:"xhr_request",source:"google_signin_button",status:"success",isNewUser:"false"})),!0===n.user.isLoggedIn&&!0===n.user.isNewUser&&(il("account_creation:google_btn:signup_success",a),ku.increment("feature",{action:"xhr_request",source:"google_signin_button",status:"success",isNewUser:"true"}));return n.user&&n.user.id&&(t.userId=n.user.id),r({})}))};return hl({path:"https://accounts.google.com/gsi/client",defer:!1,onload:()=>{window.google.accounts.id.initialize({callback:c,client_id:n}),window.google.accounts.id.renderButton(document.getElementById(o),{click_listener:l,logo_alignment:"left",shape:"rectangular",size:"large",type:"standard",theme:"filled_blue",text:t,width:278})}})},siftScienceTag:function(e){if("undefined"!==typeof window){var{uniqueBrowserTrackingUUID:t,userId:n,siftScienceJsKey:r}=e,i=[["_setAccount","".concat(r)],["_setUserId","".concat(n)],["_setSessionId","".concat(t)],["_trackPageview"]];return(window._sift=window._sift||[]).push(...i),hl({path:"https://cdn.siftscience.com/s.js",defer:!0})}}});function Bl(e){if("string"===typeof e)return function(e){try{return atob(e)}catch(t){return Buffer.from(e,"base64").toString("binary")}}(e);if(Array.isArray(e)){var t=[...e];return t.forEach(((e,n)=>{t[n]=Bl(e)})),t}if("object"===typeof e){if(null===e)return null;var n=Vs({},e);return Object.entries(n).forEach((e=>{var[t,r]=e;n[t]=Bl(r)})),n}return e}function ql(e){for(var t=Rs()(e),n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{var e=this.getPageYOffset(),t=this.getScrollHeight(),n=Math.abs(this.lastPageYOffset-e),i=Math.abs(this.lastScrollHeight-t);if(Math.abs(n-i)>10){var o=e>this.lastPageYOffset?r.u1.DOWN:r.u1.UP;this.scrollCallback({currentPageYOffset:e,lastPageYOffset:this.lastPageYOffset,scrollDirection:o})}this.lastPageYOffset=e,this.lastScrollHeight=t})),Qs(this,"getScrollHeight",(()=>document.documentElement.scrollHeight)),Qs(this,"getPageYOffset",(()=>window.pageYOffset)),this.debouncedHandleScroll=(0,a.debounce)(this.handleScroll,50),this.scrollCallback=e,this.lastPageYOffset=this.getPageYOffset(),this.lastScrollHeight=this.getScrollHeight(),window.addEventListener("scroll",this.debouncedHandleScroll)}removeListener(){window.removeEventListener("scroll",this.debouncedHandleScroll)}}function Zl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e.length;if(0===e.length)return[];if(1===e.length)return[e];if(2===e.length)return[[e[0]],[e[1]]];var n=function(e,t){for(var n=e.reduce(((e,n)=>e+t(n)),0),r=0,i=0;ia){var s=r-o;return Math.abs(s-(n-s)){var{h:i}=su(e,{returnType:r.TH.OBJECT});return"hsl(".concat(i,", ").concat(n,"%, ").concat(t,"%)")},Vl=(e,t,n)=>e&&t&&n,Ql=e=>"var(--color-".concat(Hl[e%Hl.length],"-100)");function Kl(e,t,n,r){return Vl(e,t,n)?Wl(e,t,n):Ql(r)}function Xl(){return"undefined"===typeof window?null:(window.dataLayer||eu(new Error("GoogleTagManager: window.dataLayer is not present")),window.dataLayer)}function $l(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;ne+":not(.visually_hidden)")).join(", ");function tc(e){return!(void 0!==typeof Element&&e instanceof Element)||(!!e.offsetParent||"none"!==window.getComputedStyle(e,null).display&&(!e.parentNode||tc(e.parentNode)))}function nc(e){return e?Array.from(e.querySelectorAll(ec)).filter(tc):[]}function rc(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var n=Math.round(e/60);return n<60||t?c.Z.t("shared.content_lengths.minute_with_count",{count:n}):c.Z.t("shared.content_lengths.hour_with_count",{count:Math.floor(n/60)})}function ic(){if("undefined"!==typeof window){var e=Zs(r.HR.SEARCH_SESSION);return e||(e=encodeURI(JSON.stringify(Gu())),Bs(r.HR.SEARCH_SESSION,e)),e.replace(/[\"\\]/g,"")}}var oc=(e,t)=>"undefined"!==typeof e||"undefined"!==typeof t;var ac={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pause_break:19,caps_lock:20,esc:27,space:32,page_up:33,page_down:34,end:35,home:36,left_arrow:37,up_arrow:38,right_arrow:39,down_arrow:40,insert:45,delete:46,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,cmd:91,left_window_key:91,right_window_key:92,select_key:93,numpad_0:96,numpad_1:97,numpad_2:98,numpad_3:99,numpad_4:100,numpad_5:101,numpad_6:102,numpad_7:103,numpad_8:104,numpad_9:105,multiply:106,add:107,subtract:109,decimal_point:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,num_lock:144,scroll_lock:145,semi_colon:186,equal_sign:187,comma:188,dash:189,period:190,forward_slash:191,grave_accent:192,open_bracket:219,back_slash:220,close_bracket:221,single_quote:222,firefox_cmd:224};function sc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e3,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"scrollTop",o=null,a=e[i],s=t-a,u=t=>{o||(o=t);var l=t-o;e[i]=function(e,t,n,r){var i=e/r;return n*(i<.5?2*i*i:1-Math.pow(-2*i+2,2)/2)+t}(l,a,s,r),l{return!("undefined"===typeof window||!e.scrollTo)&&!((t=navigator.userAgent).indexOf("Safari/")>-1&&-1===t.indexOf("Chrome/"));var t}));var cc=function(e,t,n,r,i){var o,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=a?"auto":"smooth";lc(e)?(n&&function(e,t){var n,r,i;n=()=>{clearTimeout(i),i=setTimeout(r,100)},r=()=>{e.removeEventListener("scroll",n),t()},e.addEventListener("scroll",n),n()}(e,n),e.scrollTo({[uc[i]]:t,behavior:s})):a?(e[i]=t,n&&n()):sc(e,t,n,r||((o=Math.abs(t-e[i]))>1800?700:o>500?.25*o+250:.75*o),i)},dc=e=>window.location.assign(e),pc="sign_up";function fc(e,t){var{action:n}=t;n===pc?dc(e):window.location.reload()}var hc=31536e4;function gc(e){var{name:t,closePromoUrl:n,useCookie:r=!1}=e;return r&&Gs(t,1,hc),_u.asPromise("post",{url:n,json:!1,body:{name:t}})}function mc(e){var t=e?e.current:null;if(t){var n=window.getComputedStyle(t),r=parseInt(n.getPropertyValue("max-height"));return r?t.scrollHeight>r:(console.error("no max height set on container"),!1)}}function vc(e){if(e)return"function"===typeof e.scrollTo?e.scrollTo(0,0):void(e.scrollTop=0)}function _c(e){var{children:t,enableArrowKeys:n=!0,event:r,exitFunction:i=vu,tabCycle:o}=e;if(0!==t.length){var a=t[0],s=t[t.length-1],u=t.indexOf(document.activeElement),{down_arrow:l,esc:c,left_arrow:d,right_arrow:p,tab:f,up_arrow:h}=ac;if(![l,d,p,h].includes(r.keyCode)||!1!==n)switch(r.keyCode){case l:case p:r.preventDefault(),s===document.activeElement?a.focus():t[u+1].focus();break;case d:case h:r.preventDefault(),a===document.activeElement?s.focus():t[u-1].focus();break;case f:if(r.shiftKey)if(r.preventDefault(),a===document.activeElement){if(!o)return i(r);s.focus()}else t[u-1].focus();else{if(s!==document.activeElement){r.preventDefault(),t[u+1].focus();break}if(!o)return i(r);r.preventDefault(),a.focus()}break;case c:return i(r);default:return}}}var Ac={},yc=e=>(Ac[e]="undefined"===typeof Ac[e]?0:Ac[e]+1,"".concat(e,"_").concat(Ac[e]));function bc(e){return this?("undefined"===typeof this.uidCache&&(this.uidCache={}),this.uidCache[e]=this.uidCache[e]||yc(e),this.uidCache[e]):yc(e)}var Ec=/^[a-zA-Z0-9][a-zA-Z0-9._%+-]{0,63}@(?:(?=[a-zA-Z0-9-]{1,63}\.)[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*\.){1,8}[a-zA-Z]{2,63}$/,wc="",xc=e=>e.startsWith("data:")?e:wc+e},3078:(e,t,n)=>{("undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{}).SENTRY_RELEASE={id:"ea86785a38c9525077c33efec3a67a6f5ab62127"}},2779:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t{var r=n(6156),i=n(9704).each;function o(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}o.prototype={constuctor:o,addHandler:function(e){var t=new r(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;i(t,(function(n,r){if(n.equals(e))return n.destroy(),!t.splice(r,1)}))},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){i(this.handlers,(function(e){e.destroy()})),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";i(this.handlers,(function(t){t[e]()}))}},e.exports=o},2683:(e,t,n)=>{var r=n(9874),i=n(9704),o=i.each,a=i.isFunction,s=i.isArray;function u(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}u.prototype={constructor:u,register:function(e,t,n){var i=this.queries,u=n&&this.browserIsIncapable;return i[e]||(i[e]=new r(e,u)),a(t)&&(t={match:t}),s(t)||(t=[t]),o(t,(function(t){a(t)&&(t={match:t}),i[e].addHandler(t)})),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=u},6156:e=>{function t(e){this.options=e,!e.deferSetup&&this.setup()}t.prototype={constructor:t,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=t},9704:e=>{e.exports={isFunction:function(e){return"function"===typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var n=0,r=e.length;n{var r=n(2683);e.exports=new r},5048:(e,t,n)=>{var r;r="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},e.exports=r},809:(e,t,n)=>{"use strict";n.d(t,{lX:()=>w,q_:()=>N,ob:()=>g,PP:()=>L,Ep:()=>h,Hp:()=>m});var r=n(375);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r=0;p--){var f=a[p];"."===f?o(a,p):".."===f?(o(a,p),d++):d&&(o(a,p),d--)}if(!l)for(;d--;d)a.unshift("..");!l||""===a[0]||a[0]&&i(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const u=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var l=n(447);function c(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function g(e,t,n,i){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,r.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function m(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,i):n.push(i),d({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=g(e,t,p(),y.location);c.confirmTransitionTo(i,r,n,(function(e){e&&(y.entries[y.index]=i,d({action:r,location:i}))}))},go:A,goBack:function(){A(-1)},goForward:function(){A(1)},canGo:function(e){var t=y.index+e;return t>=0&&t{"use strict";var r=n(8570),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var i=f(n);i&&i!==h&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=u(t),g=u(n),m=0;m{t.L8=void 0;var r=u(n(7294)),i=u(n(3935)),o=u(n(7762)),a=n(5612),s=u(a);function u(e){return e&&e.__esModule?e:{default:e}}t.L8=function(e,t){return(0,s.default)({server:function(){return function(n){var i=o.default.renderToString(r.default.createElement(t,n));return(0,a.serialize)(e,i,n)}},client:function(){var n=(0,a.load)(e);return n&&n.forEach((function(e){var n=e.node,o=e.data,a=r.default.createElement(t,o);i.default.hydrate?i.default.hydrate(a,n):i.default.render(a,n)})),t}})}},5612:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=p;var i="\x3c!--",o="--\x3e",a=[["&","&"],[">",">"]],s="hypernova-key",u="hypernova-id";function l(e,t){var n=e.toLowerCase().replace(/[^0-9a-z_-]/g,""),r=t.replace(/&/g,"&").replace(/"/g,""");return"data-"+String(n)+'="'+String(r)+'"'}function c(e,t){var r,s=Object.keys(e).map((function(t){return l(t,e[t])}));return'